@authme/identity-verification 2.4.7 → 2.4.8

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.
@@ -281,6 +281,24 @@
281
281
  "verify.menu.country.JP": "Japan",
282
282
  "verify.menu.country.other": "Other countries",
283
283
  "verify.menu.country.TWN": "Taiwan",
284
+ "verify.menu.country.ZAF": "南非大公國",
285
+ "verify.menu.country.USA": "美國",
286
+ "verify.menu.country.CHN": "中國",
287
+ "verify.menu.country.PHL": "菲律賓",
288
+ "verify.menu.country.GBR": "英國",
289
+ "verify.menu.country.KOR": "韓國",
290
+ "verify.menu.country.HKG": "香港",
291
+ "verify.menu.country.FRA": "法國",
292
+ "verify.menu.country.ESP": "西班牙",
293
+ "verify.menu.country.MEX": "墨西哥",
294
+ "verify.menu.country.ITA": "義大利",
295
+ "verify.menu.country.IND": "印度",
296
+ "verify.menu.country.COL": "哥倫比亞",
297
+ "verify.menu.country.RUS": "俄羅斯",
298
+ "verify.menu.country.DEU": "德國",
299
+ "verify.menu.country.TUR": "土耳其",
300
+ "verify.menu.country.CAN": "加拿大",
301
+ "verify.menu.country.AUS": "澳大利亞",
284
302
  "verify.menu.footer.content": "Powered by Authme",
285
303
  "verify.menu.title": "Document Verification",
286
304
  "verify.ocrSuccess": "Identifying...",
@@ -296,4 +314,4 @@
296
314
  "verify.switchCamera": "Is the document image blurry? Tap to switch the camera.",
297
315
  "verify.understandBtn": "I got it",
298
316
  "verify.uploading": "Uploading"
299
- }
317
+ }
@@ -281,6 +281,24 @@
281
281
  "verify.menu.country.JP": "日本",
282
282
  "verify.menu.country.other": "他の国",
283
283
  "verify.menu.country.TWN": "台湾",
284
+ "verify.menu.country.ZAF": "南非大公國",
285
+ "verify.menu.country.USA": "美國",
286
+ "verify.menu.country.CHN": "中國",
287
+ "verify.menu.country.PHL": "菲律賓",
288
+ "verify.menu.country.GBR": "英國",
289
+ "verify.menu.country.KOR": "韓國",
290
+ "verify.menu.country.HKG": "香港",
291
+ "verify.menu.country.FRA": "法國",
292
+ "verify.menu.country.ESP": "西班牙",
293
+ "verify.menu.country.MEX": "墨西哥",
294
+ "verify.menu.country.ITA": "義大利",
295
+ "verify.menu.country.IND": "印度",
296
+ "verify.menu.country.COL": "哥倫比亞",
297
+ "verify.menu.country.RUS": "俄羅斯",
298
+ "verify.menu.country.DEU": "德國",
299
+ "verify.menu.country.TUR": "土耳其",
300
+ "verify.menu.country.CAN": "加拿大",
301
+ "verify.menu.country.AUS": "澳大利亞",
284
302
  "verify.menu.footer.content": "Authme によって提供されています",
285
303
  "verify.menu.title": "ID認識",
286
304
  "verify.ocrSuccess": "検出に成功しました。識別中です...",
@@ -296,4 +314,4 @@
296
314
  "verify.switchCamera": "身分証がぼやけていませんか?\nクリックしてレンズを切り替えましょう",
297
315
  "verify.understandBtn": "わかりました",
298
316
  "verify.uploading": "アップロード中"
299
- }
317
+ }
@@ -287,6 +287,18 @@
287
287
  "verify.menu.country.PHL": "菲律賓",
288
288
  "verify.menu.country.GBR": "英國",
289
289
  "verify.menu.country.KOR": "韓國",
290
+ "verify.menu.country.HKG": "香港",
291
+ "verify.menu.country.FRA": "法國",
292
+ "verify.menu.country.ESP": "西班牙",
293
+ "verify.menu.country.MEX": "墨西哥",
294
+ "verify.menu.country.ITA": "義大利",
295
+ "verify.menu.country.IND": "印度",
296
+ "verify.menu.country.COL": "哥倫比亞",
297
+ "verify.menu.country.RUS": "俄羅斯",
298
+ "verify.menu.country.DEU": "德國",
299
+ "verify.menu.country.TUR": "土耳其",
300
+ "verify.menu.country.CAN": "加拿大",
301
+ "verify.menu.country.AUS": "澳大利亞",
290
302
  "verify.menu.footer.content": "powered by Authme",
291
303
  "verify.menu.title": "證件辨識",
292
304
  "verify.ocrSuccess": "偵測成功,辨識中…",
package/index.cjs CHANGED
@@ -90,6 +90,7 @@ const defaultExtraDocumentConfig = {
90
90
  requestInfoHandler: () => ({}),
91
91
  showCloseButton: true,
92
92
  continue: true,
93
+ border: undefined,
93
94
  extraText: {
94
95
  title: 'extra.title"',
95
96
  frontSide: 'extra.frontSide"',
@@ -25987,7 +25988,8 @@ const renderExtraUI = config => {
25987
25988
  endBtn,
25988
25989
  completeBtn,
25989
25990
  continueBtn,
25990
- image
25991
+ image,
25992
+ cardborderContainer
25991
25993
  };
25992
25994
  };
25993
25995
 
@@ -26020,11 +26022,17 @@ function startExtra(config) {
26020
26022
  completeBtn,
26021
26023
  endBtn,
26022
26024
  continueBtn,
26023
- image
26025
+ image,
26026
+ cardborderContainer
26024
26027
  } = renderExtraUI({
26025
26028
  videoContainer,
26026
26029
  container
26027
26030
  });
26031
+ if (config.extraConfig.border == 'none') {
26032
+ util.hideElement(cardborderContainer);
26033
+ } else {
26034
+ util.showElement(cardborderContainer);
26035
+ }
26028
26036
  const canvas = document.createElement('canvas');
26029
26037
  // Register Event
26030
26038
  const requestCamera$ = rxjs.of(true).pipe(rxjs.tap(() => {
@@ -26045,9 +26053,19 @@ function startExtra(config) {
26045
26053
  rxjs.fromEvent(window, 'resize').pipe(rxjs.throttleTime(100), rxjs.switchMap(() => util.getCanvasSize(video)), rxjs.takeUntil(unsubscribe$)).subscribe();
26046
26054
  rxjs.fromEvent(closeIcon, 'click').pipe(rxjs.switchMap(() => reset()), rxjs.takeUntil(unsubscribe$)).subscribe();
26047
26055
  rxjs.fromEvent(pictureIcon, 'click').pipe(rxjs.switchMap(() => util.getCanvasSize(video)), rxjs.switchMap(canvasSizeInfo => rxjs.from(checkConfirmImage(canvasSizeInfo)).pipe(rxjs.switchMap(needRetry => needRetry ? rxjs.of(true) : rxjs.from(config.confirmImage(canvasSizeInfo.canvasWidth, canvasSizeInfo.canvasHeight, imageData, canvas)).pipe(rxjs.map(confirmResp => !confirmResp))), rxjs.tap(() => {
26056
+ if (config.extraConfig.border == 'none') {
26057
+ util.hideElement(cardborderContainer);
26058
+ } else {
26059
+ util.showElement(cardborderContainer);
26060
+ }
26048
26061
  showVideoElement();
26049
26062
  util.hideElement(confirmImageContainer);
26050
26063
  }))), rxjs.switchMap(needRetry => needRetry ? rxjs.of(true) : config.extraConfig.continue === false ? reset() : rxjs.from(takeOtherImage()).pipe(rxjs.switchMap(needContinue => needContinue ? rxjs.of(true) : rxjs.of(false)), rxjs.tap(() => {
26064
+ if (config.extraConfig.border == 'none') {
26065
+ util.hideElement(cardborderContainer);
26066
+ } else {
26067
+ util.showElement(cardborderContainer);
26068
+ }
26051
26069
  showVideoElement();
26052
26070
  util.hideElement(checkOtherImageContainer);
26053
26071
  }), rxjs.switchMap(needContinue => needContinue ? rxjs.of(true) : reset()))), rxjs.takeUntil(unsubscribe$)).subscribe();
@@ -27680,7 +27698,7 @@ class AuthmeIdentityVerification extends engine.AuthmeFunctionModule {
27680
27698
  getCardTypeAndCountry(userConfig) {
27681
27699
  var _a, _b;
27682
27700
  return __awaiter(this, void 0, void 0, function* () {
27683
- const defaultCountries = [idRecognition.CountryCode.TWN, idRecognition.CountryCode.TWN, idRecognition.CountryCode.JPN, idRecognition.CountryCode.ZAF, idRecognition.CountryCode.USA, idRecognition.CountryCode.CHN, idRecognition.CountryCode.PHL, idRecognition.CountryCode.GBR, idRecognition.CountryCode.KOR];
27701
+ const defaultCountries = [idRecognition.CountryCode.TWN, idRecognition.CountryCode.JPN, idRecognition.CountryCode.ZAF, idRecognition.CountryCode.USA, idRecognition.CountryCode.CHN, idRecognition.CountryCode.PHL, idRecognition.CountryCode.GBR, idRecognition.CountryCode.KOR, idRecognition.CountryCode.HKG, idRecognition.CountryCode.FRA, idRecognition.CountryCode.ESP, idRecognition.CountryCode.MEX, idRecognition.CountryCode.ITA, idRecognition.CountryCode.IND, idRecognition.CountryCode.COL, idRecognition.CountryCode.RUS, idRecognition.CountryCode.DEU, idRecognition.CountryCode.TUR, idRecognition.CountryCode.CAN, idRecognition.CountryCode.AUS];
27684
27702
  const defaultCountry = userConfig.defaultCountry !== undefined && defaultCountries.includes(userConfig.defaultCountry) ? userConfig.defaultCountry : defaultCountries[0];
27685
27703
  return renderCardTypeAndCountryConfig({
27686
27704
  supportCountries: (_a = userConfig.supportCountries) !== null && _a !== void 0 ? _a : defaultCountries,
@@ -27773,8 +27791,8 @@ class AuthmeIdentityVerification extends engine.AuthmeFunctionModule {
27773
27791
  }
27774
27792
 
27775
27793
  var name = "authme/sdk";
27776
- var version$1 = "2.4.7";
27777
- var date = "2023-12-14T08:29:41+0000";
27794
+ var version$1 = "2.4.8";
27795
+ var date = "2023-12-20T07:24:47+0000";
27778
27796
  var packageInfo = {
27779
27797
  name: name,
27780
27798
  version: version$1,
package/index.js CHANGED
@@ -82,6 +82,7 @@ const defaultExtraDocumentConfig = {
82
82
  requestInfoHandler: () => ({}),
83
83
  showCloseButton: true,
84
84
  continue: true,
85
+ border: undefined,
85
86
  extraText: {
86
87
  title: 'extra.title"',
87
88
  frontSide: 'extra.frontSide"',
@@ -25979,7 +25980,8 @@ const renderExtraUI = config => {
25979
25980
  endBtn,
25980
25981
  completeBtn,
25981
25982
  continueBtn,
25982
- image
25983
+ image,
25984
+ cardborderContainer
25983
25985
  };
25984
25986
  };
25985
25987
 
@@ -26012,11 +26014,17 @@ function startExtra(config) {
26012
26014
  completeBtn,
26013
26015
  endBtn,
26014
26016
  continueBtn,
26015
- image
26017
+ image,
26018
+ cardborderContainer
26016
26019
  } = renderExtraUI({
26017
26020
  videoContainer,
26018
26021
  container
26019
26022
  });
26023
+ if (config.extraConfig.border == 'none') {
26024
+ hideElement(cardborderContainer);
26025
+ } else {
26026
+ showElement(cardborderContainer);
26027
+ }
26020
26028
  const canvas = document.createElement('canvas');
26021
26029
  // Register Event
26022
26030
  const requestCamera$ = of(true).pipe(tap(() => {
@@ -26037,9 +26045,19 @@ function startExtra(config) {
26037
26045
  fromEvent(window, 'resize').pipe(throttleTime(100), switchMap(() => getCanvasSize(video)), takeUntil(unsubscribe$)).subscribe();
26038
26046
  fromEvent(closeIcon, 'click').pipe(switchMap(() => reset()), takeUntil(unsubscribe$)).subscribe();
26039
26047
  fromEvent(pictureIcon, 'click').pipe(switchMap(() => getCanvasSize(video)), switchMap(canvasSizeInfo => from(checkConfirmImage(canvasSizeInfo)).pipe(switchMap(needRetry => needRetry ? of(true) : from(config.confirmImage(canvasSizeInfo.canvasWidth, canvasSizeInfo.canvasHeight, imageData, canvas)).pipe(map(confirmResp => !confirmResp))), tap(() => {
26048
+ if (config.extraConfig.border == 'none') {
26049
+ hideElement(cardborderContainer);
26050
+ } else {
26051
+ showElement(cardborderContainer);
26052
+ }
26040
26053
  showVideoElement();
26041
26054
  hideElement(confirmImageContainer);
26042
26055
  }))), switchMap(needRetry => needRetry ? of(true) : config.extraConfig.continue === false ? reset() : from(takeOtherImage()).pipe(switchMap(needContinue => needContinue ? of(true) : of(false)), tap(() => {
26056
+ if (config.extraConfig.border == 'none') {
26057
+ hideElement(cardborderContainer);
26058
+ } else {
26059
+ showElement(cardborderContainer);
26060
+ }
26043
26061
  showVideoElement();
26044
26062
  hideElement(checkOtherImageContainer);
26045
26063
  }), switchMap(needContinue => needContinue ? of(true) : reset()))), takeUntil(unsubscribe$)).subscribe();
@@ -27672,7 +27690,7 @@ class AuthmeIdentityVerification extends AuthmeFunctionModule {
27672
27690
  getCardTypeAndCountry(userConfig) {
27673
27691
  var _a, _b;
27674
27692
  return __awaiter(this, void 0, void 0, function* () {
27675
- const defaultCountries = [CountryCode.TWN, CountryCode.TWN, CountryCode.JPN, CountryCode.ZAF, CountryCode.USA, CountryCode.CHN, CountryCode.PHL, CountryCode.GBR, CountryCode.KOR];
27693
+ const defaultCountries = [CountryCode.TWN, CountryCode.JPN, CountryCode.ZAF, CountryCode.USA, CountryCode.CHN, CountryCode.PHL, CountryCode.GBR, CountryCode.KOR, CountryCode.HKG, CountryCode.FRA, CountryCode.ESP, CountryCode.MEX, CountryCode.ITA, CountryCode.IND, CountryCode.COL, CountryCode.RUS, CountryCode.DEU, CountryCode.TUR, CountryCode.CAN, CountryCode.AUS];
27676
27694
  const defaultCountry = userConfig.defaultCountry !== undefined && defaultCountries.includes(userConfig.defaultCountry) ? userConfig.defaultCountry : defaultCountries[0];
27677
27695
  return renderCardTypeAndCountryConfig({
27678
27696
  supportCountries: (_a = userConfig.supportCountries) !== null && _a !== void 0 ? _a : defaultCountries,
@@ -27765,8 +27783,8 @@ class AuthmeIdentityVerification extends AuthmeFunctionModule {
27765
27783
  }
27766
27784
 
27767
27785
  var name = "authme/sdk";
27768
- var version$1 = "2.4.7";
27769
- var date = "2023-12-14T08:29:41+0000";
27786
+ var version$1 = "2.4.8";
27787
+ var date = "2023-12-20T07:24:47+0000";
27770
27788
  var packageInfo = {
27771
27789
  name: name,
27772
27790
  version: version$1,
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@authme/identity-verification",
3
- "version": "2.4.7",
3
+ "version": "2.4.8",
4
4
  "peerDependencies": {
5
5
  "core-js": "^3.6.0",
6
6
  "lottie-web": "^5.9.2",
7
7
  "rxjs": "^7.4.0",
8
- "@authme/core": "2.4.7",
9
- "@authme/engine": "2.4.7",
10
- "@authme/id-recognition": "2.4.7",
11
- "@authme/util": "2.4.7",
12
- "@authme/liveness": "2.4.7"
8
+ "@authme/core": "2.4.8",
9
+ "@authme/engine": "2.4.8",
10
+ "@authme/id-recognition": "2.4.8",
11
+ "@authme/util": "2.4.8",
12
+ "@authme/liveness": "2.4.8"
13
13
  },
14
14
  "module": "./index.js",
15
15
  "main": "./index.cjs",
@@ -26,6 +26,7 @@ export interface ExtraDocumentConfig {
26
26
  };
27
27
  showCloseButton: boolean;
28
28
  continue?: boolean;
29
+ border?: string;
29
30
  extraText: {
30
31
  title: string;
31
32
  frontSide: string;
@@ -12,4 +12,5 @@ export declare const renderExtraUI: (config: {
12
12
  completeBtn: HTMLButtonElement;
13
13
  continueBtn: HTMLButtonElement;
14
14
  image: HTMLCanvasElement;
15
+ cardborderContainer: HTMLDivElement;
15
16
  };