idmission-web-sdk 0.0.53 → 0.0.54

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.
@@ -9554,10 +9554,11 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
9554
9554
  return /*#__PURE__*/React__default['default'].createElement(PageContainer, {
9555
9555
  className: "flex"
9556
9556
  }, state.captureState !== CaptureState.COMPLETE && /*#__PURE__*/React__default['default'].createElement(CameraVideoTag, null), overlayDismissed && function () {
9557
+ var docCount = Object.keys(state.capturedDocuments).length;
9557
9558
  switch (state.requestedDocumentType) {
9558
9559
  case DocumentType.ID_CARD_FRONT:
9559
9560
  return /*#__PURE__*/React__default['default'].createElement(IdCapture, {
9560
- key: Object.keys(state.capturedDocuments).length,
9561
+ key: "capture".concat(docCount),
9561
9562
  requiredDocumentType: state.requestedDocumentType,
9562
9563
  autoCaptureEnabled: autoCaptureEnabled,
9563
9564
  autoCaptureScoreThreshold: idCardAutoCaptureScoreThreshold,
@@ -9578,7 +9579,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
9578
9579
  });
9579
9580
  case DocumentType.ID_CARD_BACK:
9580
9581
  return /*#__PURE__*/React__default['default'].createElement(IdCapture, {
9581
- key: Object.keys(state.capturedDocuments).length,
9582
+ key: "capture".concat(docCount),
9582
9583
  requiredDocumentType: state.requestedDocumentType,
9583
9584
  autoCaptureEnabled: autoCaptureEnabled,
9584
9585
  autoCaptureScoreThreshold: idCardAutoCaptureScoreThreshold,
@@ -9598,7 +9599,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
9598
9599
  });
9599
9600
  case DocumentType.PASSPORT:
9600
9601
  return /*#__PURE__*/React__default['default'].createElement(IdCapture, {
9601
- key: Object.keys(state.capturedDocuments).length,
9602
+ key: "capture".concat(docCount),
9602
9603
  requiredDocumentType: state.requestedDocumentType,
9603
9604
  autoCaptureEnabled: autoCaptureEnabled,
9604
9605
  autoCaptureScoreThreshold: passportAutoCaptureScoreThreshold,
@@ -10261,7 +10262,7 @@ var templateObject_1$2, templateObject_2$1, templateObject_3$1;
10261
10262
  var initialState$2 = {
10262
10263
  frame: null,
10263
10264
  face: null,
10264
- requestState: 'NOT_READY',
10265
+ requestState: 'CAPTURING',
10265
10266
  requestError: null,
10266
10267
  imageUrl: null,
10267
10268
  faceLive: false,
@@ -10275,10 +10276,10 @@ var reducer$2 = function reducer(state, action) {
10275
10276
  switch (action.type) {
10276
10277
  case 'livenessReady':
10277
10278
  {
10278
- var allowedStates = ['NOT_READY', 'FAILED', 'ERROR'];
10279
+ var allowedStates = ['CAPTURING', 'FAILED', 'ERROR'];
10279
10280
  if (allowedStates.includes(state.requestState)) {
10280
10281
  return tslib.__assign(tslib.__assign({}, state), {
10281
- requestState: 'READY',
10282
+ requestState: 'CAPTURED',
10282
10283
  frame: action.payload.frame,
10283
10284
  face: action.payload.face
10284
10285
  });
@@ -10371,7 +10372,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
10371
10372
  }, [onCapture]);
10372
10373
  var frame = state.frame,
10373
10374
  face = state.face;
10374
- var isReady = state.requestState === 'READY';
10375
+ var isReady = state.requestState === 'CAPTURED';
10375
10376
  var isPassed = state.requestState === 'PASSED';
10376
10377
  React.useEffect(function () {
10377
10378
  if (!frame || !face || !isReady) return;
@@ -10711,7 +10712,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10711
10712
  switch (captureState) {
10712
10713
  case 'CAPTURING':
10713
10714
  return /*#__PURE__*/React__default['default'].createElement(FaceLivenessCapture, {
10714
- key: "capture",
10715
+ key: "capture".concat(attempt),
10715
10716
  onCapture: onCapture,
10716
10717
  onSuccess: onSuccessCallback,
10717
10718
  onTimeout: onTimeoutCallback,
@@ -12892,7 +12893,7 @@ var CustomerVerificationWizard = function CustomerVerificationWizard(_a) {
12892
12893
  switch (captureState) {
12893
12894
  case 'CAPTURING':
12894
12895
  return /*#__PURE__*/React__default['default'].createElement(CustomerVerificationCapture, {
12895
- key: attempt,
12896
+ key: "capture".concat(attempt),
12896
12897
  onCustomerMatched: onCustomerMatchedCallback,
12897
12898
  onCustomerNotMatched: onCustomerNotMatchedCallback,
12898
12899
  onCaptureGuidanceTimeout: onCaptureGuidanceTimeoutCallback,
@@ -13329,7 +13330,7 @@ var CustomerIdentificationWizard = function CustomerIdentificationWizard(_a) {
13329
13330
  switch (captureState) {
13330
13331
  case 'CAPTURING':
13331
13332
  return /*#__PURE__*/React__default['default'].createElement(CustomerIdentificationCapture, {
13332
- key: attempt,
13333
+ key: "capture".concat(attempt),
13333
13334
  onCustomerMatched: onCustomerMatchedCallback,
13334
13335
  onCustomerNotMatched: onCustomerNotMatchedCallback,
13335
13336
  onCaptureGuidanceTimeout: onCaptureGuidanceTimeoutCallback,