@eid-easy/eideasy-widget 2.58.0 → 2.59.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/CHANGELOG-LATEST.md +2 -2
- package/CHANGELOG.md +9 -0
- package/dist/full/eideasy-widget.common.js +45 -17
- package/dist/full/eideasy-widget.common.js.map +1 -1
- package/dist/full/eideasy-widget.umd.js +33 -5
- package/dist/full/eideasy-widget.umd.js.map +1 -1
- package/dist/full/eideasy-widget.umd.min.js +4 -4
- package/dist/full/eideasy-widget.umd.min.js.map +1 -1
- package/dist/index.html +2 -1
- package/package.json +4 -4
|
@@ -41521,12 +41521,12 @@ if (typeof window !== 'undefined') {
|
|
|
41521
41521
|
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
|
|
41522
41522
|
var vue_runtime_esm = __webpack_require__("2b0e");
|
|
41523
41523
|
|
|
41524
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fa6efac-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=
|
|
41524
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fa6efac-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=a9ff3fda&
|
|
41525
41525
|
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)}
|
|
41526
41526
|
var staticRenderFns = []
|
|
41527
41527
|
|
|
41528
41528
|
|
|
41529
|
-
// CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=
|
|
41529
|
+
// CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=a9ff3fda&
|
|
41530
41530
|
|
|
41531
41531
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
|
|
41532
41532
|
var es_array_for_each = __webpack_require__("4160");
|
|
@@ -50255,6 +50255,12 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50255
50255
|
//import featureFlags from './featureFlags';
|
|
50256
50256
|
|
|
50257
50257
|
|
|
50258
|
+
// CONCATENATED MODULE: ./src/otpFlowNames.js
|
|
50259
|
+
var otpFlowNames = {
|
|
50260
|
+
START_AT_METHOD_SELECTION: 'start-at-method-selection',
|
|
50261
|
+
START_AT_OTP_VIEW: 'start-at-otp-view'
|
|
50262
|
+
};
|
|
50263
|
+
/* harmony default export */ var src_otpFlowNames = (otpFlowNames);
|
|
50258
50264
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js&
|
|
50259
50265
|
|
|
50260
50266
|
|
|
@@ -50266,6 +50272,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50266
50272
|
|
|
50267
50273
|
|
|
50268
50274
|
|
|
50275
|
+
|
|
50269
50276
|
/* harmony default export */ var Appvue_type_script_lang_js_ = ({
|
|
50270
50277
|
name: 'App',
|
|
50271
50278
|
components: {
|
|
@@ -50384,6 +50391,10 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50384
50391
|
requireHandwrittenSignature: {
|
|
50385
50392
|
type: Boolean,
|
|
50386
50393
|
default: false
|
|
50394
|
+
},
|
|
50395
|
+
otpFlow: {
|
|
50396
|
+
type: String,
|
|
50397
|
+
default: null
|
|
50387
50398
|
}
|
|
50388
50399
|
},
|
|
50389
50400
|
computed: {
|
|
@@ -50392,6 +50403,9 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50392
50403
|
},
|
|
50393
50404
|
identificationMethods: function identificationMethods() {
|
|
50394
50405
|
return this.$root.$options.storeGetters.identificationMethods();
|
|
50406
|
+
},
|
|
50407
|
+
shouldStartAtOtpView: function shouldStartAtOtpView() {
|
|
50408
|
+
return (this.otpPhone || this.otpEmail) && this.isOtpSent && this.otpFlow !== src_otpFlowNames.START_AT_METHOD_SELECTION;
|
|
50395
50409
|
}
|
|
50396
50410
|
},
|
|
50397
50411
|
watch: {
|
|
@@ -50441,6 +50455,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50441
50455
|
this.updateShowCountrySelect(this.showCountrySelect);
|
|
50442
50456
|
this.updateMode(this.mode);
|
|
50443
50457
|
this.updateRequireHandwrittenSignature(this.requireHandwrittenSignature);
|
|
50458
|
+
this.updateOtpFlow(this.otpFlow);
|
|
50444
50459
|
|
|
50445
50460
|
if (this.emailToken) {
|
|
50446
50461
|
this.updateInputValues({
|
|
@@ -50470,7 +50485,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50470
50485
|
|
|
50471
50486
|
if (this.selectedMethod) {
|
|
50472
50487
|
selectedMethod = this.selectedMethod;
|
|
50473
|
-
} else if (
|
|
50488
|
+
} else if (this.shouldStartAtOtpView) {
|
|
50474
50489
|
selectedMethod = eideasy_browser_client["methodActionTypes"].OTP_EMAIL;
|
|
50475
50490
|
} // Only use the user's previously selected country if there's
|
|
50476
50491
|
// no preselected method. Preselected method is most often used in cases
|
|
@@ -50496,7 +50511,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50496
50511
|
if (Array.isArray(supportedCountries) && !supportedCountries.includes(countryToSelect)) {
|
|
50497
50512
|
countryToSelect = supportedCountries[0].toUpperCase();
|
|
50498
50513
|
}
|
|
50499
|
-
} else if (
|
|
50514
|
+
} else if (this.shouldStartAtOtpView) {
|
|
50500
50515
|
this.selectMethod(eideasy_browser_client["methodActionTypes"].OTP_EMAIL);
|
|
50501
50516
|
}
|
|
50502
50517
|
|
|
@@ -50552,6 +50567,9 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50552
50567
|
}
|
|
50553
50568
|
|
|
50554
50569
|
return country;
|
|
50570
|
+
},
|
|
50571
|
+
updateOtpFlow: function updateOtpFlow(value) {
|
|
50572
|
+
return this.$root.$options.storeActions.updateOtpFlow(value);
|
|
50555
50573
|
}
|
|
50556
50574
|
}
|
|
50557
50575
|
});
|
|
@@ -53406,7 +53424,8 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53406
53424
|
showCountrySelect: true,
|
|
53407
53425
|
showBackButton: true,
|
|
53408
53426
|
mode: null,
|
|
53409
|
-
requireHandwrittenSignature: false
|
|
53427
|
+
requireHandwrittenSignature: false,
|
|
53428
|
+
otpFlow: null
|
|
53410
53429
|
});
|
|
53411
53430
|
|
|
53412
53431
|
var filterMethodsByCountry = function filterMethodsByCountry(methods, country) {
|
|
@@ -53513,6 +53532,9 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53513
53532
|
},
|
|
53514
53533
|
requireHandwrittenSignature: function requireHandwrittenSignature() {
|
|
53515
53534
|
return store.requireHandwrittenSignature;
|
|
53535
|
+
},
|
|
53536
|
+
otpFlow: function otpFlow() {
|
|
53537
|
+
return store.otpFlow;
|
|
53516
53538
|
}
|
|
53517
53539
|
};
|
|
53518
53540
|
var mutations = {
|
|
@@ -53575,6 +53597,9 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53575
53597
|
},
|
|
53576
53598
|
setRequireHandwrittenSignature: function setRequireHandwrittenSignature(value) {
|
|
53577
53599
|
store.requireHandwrittenSignature = value;
|
|
53600
|
+
},
|
|
53601
|
+
setOtpFlow: function setOtpFlow(value) {
|
|
53602
|
+
store.otpFlow = value;
|
|
53578
53603
|
}
|
|
53579
53604
|
};
|
|
53580
53605
|
var actions = {
|
|
@@ -53721,6 +53746,9 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53721
53746
|
},
|
|
53722
53747
|
updateRequireHandwrittenSignature: function updateRequireHandwrittenSignature(newValue) {
|
|
53723
53748
|
mutations.setRequireHandwrittenSignature(newValue);
|
|
53749
|
+
},
|
|
53750
|
+
updateOtpFlow: function updateOtpFlow(newValue) {
|
|
53751
|
+
mutations.setOtpFlow(newValue);
|
|
53724
53752
|
}
|
|
53725
53753
|
};
|
|
53726
53754
|
return {
|