idmission-web-sdk 2.2.166 → 2.2.168

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/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.2.166';
207
+ var webSdkVersion = '2.2.168';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -3528,6 +3528,7 @@ var es = {
3528
3528
  'English - en': 'Spanish - es',
3529
3529
  'Use your device camera to capture your ID': 'Hay que utilizar la cámara del dispositivo para capturar la identificación',
3530
3530
  'Use your iPhone as a webcam': 'Hay que usar el iPhone como cámara web',
3531
+ 'Authenticating...': 'Autenticando...',
3531
3532
  'Models warming up...': 'Preparando modelos...',
3532
3533
  'Camera initializing...': 'Inicializando la cámara...',
3533
3534
  'Camera access blocked': 'Acceso bloqueado a la cámara',
@@ -3655,6 +3656,7 @@ var de = {
3655
3656
  'English - en': 'German - de',
3656
3657
  'Use your device camera to capture your ID': 'Ihre Gerätekamera zur Aufnahme Ihres Ausweises verwenden',
3657
3658
  'Use your iPhone as a webcam': 'Ihr iPhone als Webcam verwenden',
3659
+ 'Authenticating...': 'Authentifizieren...',
3658
3660
  'Models warming up...': 'Modelle wärmen sich auf...',
3659
3661
  'Camera initializing...': 'Kamera wird initialisiert ...',
3660
3662
  'Camera access blocked': 'Kamerazugriff blockiert',
@@ -3782,6 +3784,7 @@ var fr = {
3782
3784
  'English - en': 'French - fr',
3783
3785
  'Use your device camera to capture your ID': 'Utilisez la caméra de votre appareil pour capturer votre ID',
3784
3786
  'Use your iPhone as a webcam': 'Utiliser votre iPhone comme Webcam',
3787
+ 'Authenticating...': 'Authentification en cours...',
3785
3788
  'Models warming up...': "Les modèles s'échauffent...",
3786
3789
  'Camera initializing...': 'Initialisation de la caméra...',
3787
3790
  'Camera access blocked': 'Accès à la caméra bloqué',
@@ -3909,6 +3912,7 @@ var it = {
3909
3912
  'English - en': 'Italian - it',
3910
3913
  'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
3911
3914
  'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
3915
+ 'Authenticating...': 'Autenticazione in corso...',
3912
3916
  'Models warming up...': 'Riscaldamento modelli...',
3913
3917
  'Camera initializing...': 'Inizializzazione fotocamera...',
3914
3918
  'Camera access blocked': 'Accesso alla fotocamera bloccato',
@@ -4036,6 +4040,7 @@ var ja = {
4036
4040
  'English - en': 'Japanese - ja',
4037
4041
  'Use your device camera to capture your ID': 'デバイスのカメラを使用して身分証を撮影してください',
4038
4042
  'Use your iPhone as a webcam': 'iPhoneをウェブカムとして使用',
4043
+ 'Authenticating...': '認証中…',
4039
4044
  'Models warming up...': 'モデルをウォームアップ中…',
4040
4045
  'Camera initializing...': 'カメラを初期化中…',
4041
4046
  'Camera access blocked': 'カメラへのアクセスがブロックされました',
@@ -4163,6 +4168,7 @@ var pt = {
4163
4168
  'English - en': 'Portuguese (Brazil) - pt',
4164
4169
  'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
4165
4170
  'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
4171
+ 'Authenticating...': 'Autenticando...',
4166
4172
  'Models warming up...': 'Modelos aquecendo...',
4167
4173
  'Camera initializing...': 'Câmera inicializando...',
4168
4174
  'Camera access blocked': 'Acesso à câmera bloqueado',
@@ -4290,6 +4296,7 @@ var ru = {
4290
4296
  'English - en': 'Russian - ru',
4291
4297
  'Use your device camera to capture your ID': 'Используйте камеру вашего устройства для съемки удостоверения личности',
4292
4298
  'Use your iPhone as a webcam': 'Используйте iPhone в качестве веб-камеры',
4299
+ 'Authenticating...': 'Аутентификация...',
4293
4300
  'Models warming up...': 'Модели разогреваются…',
4294
4301
  'Camera initializing...': 'Камера инициализируется…',
4295
4302
  'Camera access blocked': 'Доступ к камере заблокирован',
@@ -4417,6 +4424,7 @@ var zh = {
4417
4424
  'English - en': 'Chinese (Traditional) - zh',
4418
4425
  'Use your device camera to capture your ID': '使用裝置相機拍攝證件',
4419
4426
  'Use your iPhone as a webcam': '將 iPhone 當作網路攝影機使用',
4427
+ 'Authenticating...': '正在驗證...',
4420
4428
  'Models warming up...': '正在暖機...',
4421
4429
  'Camera initializing...': '相機正在初始化...',
4422
4430
  'Camera access blocked': '相機存取遭封鎖',
@@ -7269,7 +7277,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7269
7277
  cameraInitializingText: 'Camera initializing...',
7270
7278
  cameraInitializedText: 'Camera ready',
7271
7279
  continueText: "Let's Go!",
7272
- sessionCheckingText: 'Checking session...'
7280
+ sessionCheckingText: 'Authenticating...'
7273
7281
  });
7274
7282
  var ready = sessionReady && modelsReady && cameraReady;
7275
7283
  useEffect(function () {
@@ -8864,7 +8872,10 @@ var DocumentCaptureStateProvider = function DocumentCaptureStateProvider(_a) {
8864
8872
  });
8865
8873
  });
8866
8874
  }, [uploadDocument]);
8875
+ var sessionCheckState = useAuthContext()[0].sessionCheckState;
8876
+ var sessionReady = sessionCheckState === 'PASSED';
8867
8877
  useEffect(function () {
8878
+ if (!sessionReady) return;
8868
8879
  var resolvedDocuments = (documents === null || documents === void 0 ? void 0 : documents.length) ? documents.map(function (d) {
8869
8880
  return _assign(_assign({
8870
8881
  title: 'Document Capture',
@@ -8891,7 +8902,7 @@ var DocumentCaptureStateProvider = function DocumentCaptureStateProvider(_a) {
8891
8902
  void uploadCapturedDocument(d.content, d.content.type);
8892
8903
  }
8893
8904
  });
8894
- }, [aspectRatio, cameraFeedMode, documents, instructions, uploadCapturedDocument]);
8905
+ }, [aspectRatio, cameraFeedMode, documents, instructions, sessionReady, uploadCapturedDocument]);
8895
8906
  useEffect(function () {
8896
8907
  dispatch({
8897
8908
  type: 'setHooks',
@@ -12296,7 +12307,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12296
12307
  downloadingText: 'Downloading...',
12297
12308
  modelsWarmingUpText: 'Loading guided capture experience...',
12298
12309
  modelsReadyText: 'Guided capture experience ready',
12299
- sessionCheckingText: 'Checking session...'
12310
+ sessionCheckingText: 'Authenticating...'
12300
12311
  });
12301
12312
  var _j = useState(0),
12302
12313
  headingTextIndex = _j[0],