@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
package/CHANGELOG-LATEST.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# [2.
|
|
1
|
+
# [2.58.0](https://github.com/eideasy/eideasy-widget/compare/v2.57.0...v2.58.0) (2022-11-25)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Add SwissID signing method ([#151](https://github.com/eideasy/eideasy-widget/issues/151)) ([8ae2288](https://github.com/eideasy/eideasy-widget/commit/8ae2288b5fe6254f08a46ff722b08f7bcd9d3df5))
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# [2.59.0](https://github.com/eideasy/eideasy-widget/compare/v2.58.0...v2.59.0) (2022-12-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* allow to specify otpFlow ([#152](https://github.com/eideasy/eideasy-widget/issues/152)) ([b81a342](https://github.com/eideasy/eideasy-widget/commit/b81a342cb58f032cf04dd745395612cb8d5f6fab))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
# [2.58.0](https://github.com/eideasy/eideasy-widget/compare/v2.57.0...v2.58.0) (2022-11-25)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -25621,7 +25621,7 @@ module.exports = {
|
|
|
25621
25621
|
}, attrs)
|
|
25622
25622
|
}, rest), children.concat([_c('defs', [_c('linearGradient', {
|
|
25623
25623
|
attrs: {
|
|
25624
|
-
"id": "id-
|
|
25624
|
+
"id": "id-3a",
|
|
25625
25625
|
"x1": "45.313%",
|
|
25626
25626
|
"x2": "33.822%",
|
|
25627
25627
|
"y1": "69.296%",
|
|
@@ -25639,7 +25639,7 @@ module.exports = {
|
|
|
25639
25639
|
}
|
|
25640
25640
|
})]), _c('linearGradient', {
|
|
25641
25641
|
attrs: {
|
|
25642
|
-
"id": "id-
|
|
25642
|
+
"id": "id-5c",
|
|
25643
25643
|
"x1": "17.248%",
|
|
25644
25644
|
"x2": "58.688%",
|
|
25645
25645
|
"y1": "34.281%",
|
|
@@ -25657,7 +25657,7 @@ module.exports = {
|
|
|
25657
25657
|
}
|
|
25658
25658
|
})]), _c('path', {
|
|
25659
25659
|
attrs: {
|
|
25660
|
-
"id": "id-
|
|
25660
|
+
"id": "id-4b",
|
|
25661
25661
|
"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"
|
|
25662
25662
|
}
|
|
25663
25663
|
})]), _c('g', {
|
|
@@ -25672,12 +25672,12 @@ module.exports = {
|
|
|
25672
25672
|
}
|
|
25673
25673
|
}), _c('use', {
|
|
25674
25674
|
attrs: {
|
|
25675
|
-
"fill": "url(#id-
|
|
25676
|
-
"xlink:href": "#id-
|
|
25675
|
+
"fill": "url(#id-3a)",
|
|
25676
|
+
"xlink:href": "#id-4b"
|
|
25677
25677
|
}
|
|
25678
25678
|
}), _c('path', {
|
|
25679
25679
|
attrs: {
|
|
25680
|
-
"fill": "url(#id-
|
|
25680
|
+
"fill": "url(#id-5c)",
|
|
25681
25681
|
"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"
|
|
25682
25682
|
}
|
|
25683
25683
|
}), _c('g', {
|
|
@@ -33986,7 +33986,7 @@ module.exports = {
|
|
|
33986
33986
|
}, attrs)
|
|
33987
33987
|
}, rest), children.concat([_c('defs', [_c('linearGradient', {
|
|
33988
33988
|
attrs: {
|
|
33989
|
-
"id": "id-
|
|
33989
|
+
"id": "id-0a",
|
|
33990
33990
|
"x1": "124.883",
|
|
33991
33991
|
"y1": "17.983",
|
|
33992
33992
|
"x2": "117.483",
|
|
@@ -34015,7 +34015,7 @@ module.exports = {
|
|
|
34015
34015
|
}
|
|
34016
34016
|
})]), _c('linearGradient', {
|
|
34017
34017
|
attrs: {
|
|
34018
|
-
"id": "id-
|
|
34018
|
+
"id": "id-1b",
|
|
34019
34019
|
"x1": "116.71",
|
|
34020
34020
|
"y1": "31.343",
|
|
34021
34021
|
"x2": "102.594",
|
|
@@ -34044,7 +34044,7 @@ module.exports = {
|
|
|
34044
34044
|
}
|
|
34045
34045
|
})]), _c('linearGradient', {
|
|
34046
34046
|
attrs: {
|
|
34047
|
-
"id": "id-
|
|
34047
|
+
"id": "id-2c",
|
|
34048
34048
|
"x1": "106.335",
|
|
34049
34049
|
"y1": "23.516",
|
|
34050
34050
|
"x2": "140.192",
|
|
@@ -34068,18 +34068,18 @@ module.exports = {
|
|
|
34068
34068
|
}
|
|
34069
34069
|
}), _c('path', {
|
|
34070
34070
|
attrs: {
|
|
34071
|
-
"fill": "url(#id-
|
|
34071
|
+
"fill": "url(#id-0a)",
|
|
34072
34072
|
"d": "M126.585 16.359l-6.919 4.057V1.094l6.919 6.917v8.348z"
|
|
34073
34073
|
}
|
|
34074
34074
|
}), _c('path', {
|
|
34075
34075
|
attrs: {
|
|
34076
|
-
"fill": "url(#id-
|
|
34076
|
+
"fill": "url(#id-1b)",
|
|
34077
34077
|
"d": "M106.335 11.382h6.634v23.101h-6.634z"
|
|
34078
34078
|
}
|
|
34079
34079
|
}), _c('path', {
|
|
34080
34080
|
attrs: {
|
|
34081
34081
|
"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",
|
|
34082
|
-
"fill": "url(#id-
|
|
34082
|
+
"fill": "url(#id-2c)"
|
|
34083
34083
|
}
|
|
34084
34084
|
}), _c('path', {
|
|
34085
34085
|
attrs: {
|
|
@@ -41512,12 +41512,12 @@ if (typeof window !== 'undefined') {
|
|
|
41512
41512
|
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
|
|
41513
41513
|
var vue_runtime_esm = __webpack_require__("2b0e");
|
|
41514
41514
|
|
|
41515
|
-
// 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=
|
|
41515
|
+
// 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&
|
|
41516
41516
|
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)}
|
|
41517
41517
|
var staticRenderFns = []
|
|
41518
41518
|
|
|
41519
41519
|
|
|
41520
|
-
// CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=
|
|
41520
|
+
// CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=a9ff3fda&
|
|
41521
41521
|
|
|
41522
41522
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
|
|
41523
41523
|
var es_array_for_each = __webpack_require__("4160");
|
|
@@ -50246,6 +50246,12 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50246
50246
|
//import featureFlags from './featureFlags';
|
|
50247
50247
|
|
|
50248
50248
|
|
|
50249
|
+
// CONCATENATED MODULE: ./src/otpFlowNames.js
|
|
50250
|
+
var otpFlowNames = {
|
|
50251
|
+
START_AT_METHOD_SELECTION: 'start-at-method-selection',
|
|
50252
|
+
START_AT_OTP_VIEW: 'start-at-otp-view'
|
|
50253
|
+
};
|
|
50254
|
+
/* harmony default export */ var src_otpFlowNames = (otpFlowNames);
|
|
50249
50255
|
// 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&
|
|
50250
50256
|
|
|
50251
50257
|
|
|
@@ -50257,6 +50263,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50257
50263
|
|
|
50258
50264
|
|
|
50259
50265
|
|
|
50266
|
+
|
|
50260
50267
|
/* harmony default export */ var Appvue_type_script_lang_js_ = ({
|
|
50261
50268
|
name: 'App',
|
|
50262
50269
|
components: {
|
|
@@ -50375,6 +50382,10 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50375
50382
|
requireHandwrittenSignature: {
|
|
50376
50383
|
type: Boolean,
|
|
50377
50384
|
default: false
|
|
50385
|
+
},
|
|
50386
|
+
otpFlow: {
|
|
50387
|
+
type: String,
|
|
50388
|
+
default: null
|
|
50378
50389
|
}
|
|
50379
50390
|
},
|
|
50380
50391
|
computed: {
|
|
@@ -50383,6 +50394,9 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50383
50394
|
},
|
|
50384
50395
|
identificationMethods: function identificationMethods() {
|
|
50385
50396
|
return this.$root.$options.storeGetters.identificationMethods();
|
|
50397
|
+
},
|
|
50398
|
+
shouldStartAtOtpView: function shouldStartAtOtpView() {
|
|
50399
|
+
return (this.otpPhone || this.otpEmail) && this.isOtpSent && this.otpFlow !== src_otpFlowNames.START_AT_METHOD_SELECTION;
|
|
50386
50400
|
}
|
|
50387
50401
|
},
|
|
50388
50402
|
watch: {
|
|
@@ -50432,6 +50446,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50432
50446
|
this.updateShowCountrySelect(this.showCountrySelect);
|
|
50433
50447
|
this.updateMode(this.mode);
|
|
50434
50448
|
this.updateRequireHandwrittenSignature(this.requireHandwrittenSignature);
|
|
50449
|
+
this.updateOtpFlow(this.otpFlow);
|
|
50435
50450
|
|
|
50436
50451
|
if (this.emailToken) {
|
|
50437
50452
|
this.updateInputValues({
|
|
@@ -50461,7 +50476,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50461
50476
|
|
|
50462
50477
|
if (this.selectedMethod) {
|
|
50463
50478
|
selectedMethod = this.selectedMethod;
|
|
50464
|
-
} else if (
|
|
50479
|
+
} else if (this.shouldStartAtOtpView) {
|
|
50465
50480
|
selectedMethod = eideasy_browser_client["methodActionTypes"].OTP_EMAIL;
|
|
50466
50481
|
} // Only use the user's previously selected country if there's
|
|
50467
50482
|
// no preselected method. Preselected method is most often used in cases
|
|
@@ -50487,7 +50502,7 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50487
50502
|
if (Array.isArray(supportedCountries) && !supportedCountries.includes(countryToSelect)) {
|
|
50488
50503
|
countryToSelect = supportedCountries[0].toUpperCase();
|
|
50489
50504
|
}
|
|
50490
|
-
} else if (
|
|
50505
|
+
} else if (this.shouldStartAtOtpView) {
|
|
50491
50506
|
this.selectMethod(eideasy_browser_client["methodActionTypes"].OTP_EMAIL);
|
|
50492
50507
|
}
|
|
50493
50508
|
|
|
@@ -50543,6 +50558,9 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
|
|
|
50543
50558
|
}
|
|
50544
50559
|
|
|
50545
50560
|
return country;
|
|
50561
|
+
},
|
|
50562
|
+
updateOtpFlow: function updateOtpFlow(value) {
|
|
50563
|
+
return this.$root.$options.storeActions.updateOtpFlow(value);
|
|
50546
50564
|
}
|
|
50547
50565
|
}
|
|
50548
50566
|
});
|
|
@@ -53397,7 +53415,8 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53397
53415
|
showCountrySelect: true,
|
|
53398
53416
|
showBackButton: true,
|
|
53399
53417
|
mode: null,
|
|
53400
|
-
requireHandwrittenSignature: false
|
|
53418
|
+
requireHandwrittenSignature: false,
|
|
53419
|
+
otpFlow: null
|
|
53401
53420
|
});
|
|
53402
53421
|
|
|
53403
53422
|
var filterMethodsByCountry = function filterMethodsByCountry(methods, country) {
|
|
@@ -53504,6 +53523,9 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53504
53523
|
},
|
|
53505
53524
|
requireHandwrittenSignature: function requireHandwrittenSignature() {
|
|
53506
53525
|
return store.requireHandwrittenSignature;
|
|
53526
|
+
},
|
|
53527
|
+
otpFlow: function otpFlow() {
|
|
53528
|
+
return store.otpFlow;
|
|
53507
53529
|
}
|
|
53508
53530
|
};
|
|
53509
53531
|
var mutations = {
|
|
@@ -53566,6 +53588,9 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53566
53588
|
},
|
|
53567
53589
|
setRequireHandwrittenSignature: function setRequireHandwrittenSignature(value) {
|
|
53568
53590
|
store.requireHandwrittenSignature = value;
|
|
53591
|
+
},
|
|
53592
|
+
setOtpFlow: function setOtpFlow(value) {
|
|
53593
|
+
store.otpFlow = value;
|
|
53569
53594
|
}
|
|
53570
53595
|
};
|
|
53571
53596
|
var actions = {
|
|
@@ -53712,6 +53737,9 @@ var createStore_createStore = function createStore(_ref) {
|
|
|
53712
53737
|
},
|
|
53713
53738
|
updateRequireHandwrittenSignature: function updateRequireHandwrittenSignature(newValue) {
|
|
53714
53739
|
mutations.setRequireHandwrittenSignature(newValue);
|
|
53740
|
+
},
|
|
53741
|
+
updateOtpFlow: function updateOtpFlow(newValue) {
|
|
53742
|
+
mutations.setOtpFlow(newValue);
|
|
53715
53743
|
}
|
|
53716
53744
|
};
|
|
53717
53745
|
return {
|