From 3931f3ec12963672c89b6e5221a750225f25051b Mon Sep 17 00:00:00 2001 From: tams sokari Date: Sun, 26 Nov 2023 16:46:24 +0100 Subject: [PATCH] refactor: extract totp-consent to components package (#143) * refactor: move combobox component to components package * ci: deploy preview on PRs to all branches * deps: add `@smileid/components` as dependency of `@smileid/embed` * refactor: extract `end-user-consent` component to `components` package * refactor: extract totp-consent to components package * refactor: use `` as the markup * refactor: rename `totp-consent` in tests --- package-lock.json | 5 ++++- .../end-user-consent/src/EndUserConsent.js | 6 +++--- packages/components/package.json | 12 +++++++++--- .../totp-consent/src/TotpConsent.js} | 10 ++++++++-- packages/components/totp-consent/src/index.js | 3 +++ packages/embed/cypress/support/commands.js | 2 +- packages/embed/src/js/basic-kyc.js | 4 +--- packages/embed/src/js/biometric-kyc.js | 4 +--- packages/embed/src/js/ekyc.js | 3 +-- 9 files changed, 31 insertions(+), 18 deletions(-) rename packages/{embed/src/js/components/TotpConsentApp.js => components/totp-consent/src/TotpConsent.js} (99%) create mode 100644 packages/components/totp-consent/src/index.js diff --git a/package-lock.json b/package-lock.json index 21e2537b..cb801e5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10439,7 +10439,10 @@ }, "packages/components": { "name": "@smileid/components", - "version": "1.0.0" + "version": "1.0.0", + "dependencies": { + "validate.js": "^0.13.1" + } }, "packages/embed": { "name": "@smileid/embed", diff --git a/packages/components/end-user-consent/src/EndUserConsent.js b/packages/components/end-user-consent/src/EndUserConsent.js index 5e75cf7a..6aaab625 100644 --- a/packages/components/end-user-consent/src/EndUserConsent.js +++ b/packages/components/end-user-consent/src/EndUserConsent.js @@ -480,7 +480,7 @@ function templateString() { - +