@regulaforensics/idv-document 3.2.268-nightly → 3.2.270-nightly

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/index.d.ts CHANGED
@@ -85,7 +85,6 @@ declare type DocumentReaderProps = {
85
85
  startScreen?: boolean;
86
86
  multipleFileInput?: boolean;
87
87
  cameraId?: string;
88
- nonce?: string;
89
88
  mirrorType?: MirrorType;
90
89
  mobileDelegate?: boolean;
91
90
  finalizeOnTimeout?: boolean;
@@ -144,6 +143,7 @@ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
144
143
  modulesConfig?: TModulesConfig;
145
144
  perform: (data: any, type?: PerformType) => void;
146
145
  idvEventListener: (module: string, data: any) => void;
146
+ nonce?: string;
147
147
  };
148
148
 
149
149
  declare type PerformType = (typeof performType)[keyof typeof performType] | undefined;
package/dist/main.iife.js CHANGED
@@ -197,7 +197,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
197
197
  document-reader::part(webcamera-video) {
198
198
  background-color: ${Da(e.cameraPreviewBackgroundColor)};
199
199
  }
200
- `),t}_prepareSettings({copyright:e,customization:t,functionality:r,locale:a}){var c,d,f,p;const o={copyright:e,skipButton:r==null?void 0:r.showSkipNextPageButton,captureButton:r==null?void 0:r.showCaptureButton,captureButtonDelay:r==null?void 0:r.showCaptureButtonDelayFromStart,cameraFrameOffsetWidth:t==null?void 0:t.cameraFrameWidthOffset,cameraFrameActiveColor:t==null?void 0:t.cameraFrameActiveColor,cameraFrameDefaultColor:t==null?void 0:t.cameraFrameDefaultColor,closeButton:r==null?void 0:r.showCloseButton,changeCameraButton:r==null?void 0:r.showCameraSwitchButton,videoCaptureMotionControl:r==null?void 0:r.videoCaptureMotionControl,statusIcon:t==null?void 0:t.showStatusMessages,cameraFrameBorderWidth:t==null?void 0:t.cameraFrameBorderWidth,cameraFrameLineLength:t==null?void 0:t.cameraFrameLineLength,nextPageAnimationEndDelay:t==null?void 0:t.nextPageAnimationEndDelay,nextPageAnimationStartDelay:t==null?void 0:t.nextPageAnimationStartDelay,statusPositionMultiplier:t==null?void 0:t.statusPositionMultiplier,cameraFrameLandscapeAspectRatio:t==null?void 0:t.cameraFrameLandscapeAspectRatio,cameraFramePortraitAspectRatio:t==null?void 0:t.cameraFramePortraitAspectRatio,cameraFrameCornerRadius:t==null?void 0:t.cameraFrameCornerRadius,cameraFrameVerticalPositionMultiplier:t==null?void 0:t.cameraFramePositionMultiplier,cameraFrameHorizontalPositionMultiplier:t==null?void 0:t.cameraFramePositionMultiplier,internalScenario:r==null?void 0:r.internalScenario,multipageProcessing:r==null?void 0:r.multipageProcessing,multipleFileInput:r==null?void 0:r.multipleFileInput,cameraId:r==null?void 0:r.cameraId,nonce:r==null?void 0:r.nonce,mirrorType:r==null?void 0:r.mirrorType,mobileDelegate:r==null?void 0:r.mobileDelegate,finalizeOnTimeout:r==null?void 0:r.finalizeOnTimeout,maxImageSize:r==null?void 0:r.maxImageSize,maxResolutionSize:r==null?void 0:r.maxResolutionSize,cameraMode:r==null?void 0:r.cameraMode,videoRecord:r==null?void 0:r.recordScanningProcess,activityIndicatorLandscapePositionMultiplier:t==null?void 0:t.activityIndicatorLandscapePositionMultiplier,activityIndicatorPortraitPositionMultiplier:t==null?void 0:t.activityIndicatorPortraitPositionMultiplier,cameraFrameLineCap:t==null?void 0:t.cameraFrameLineCap,fromCameraButton:t==null?void 0:t.fromCameraButton,uploadFileButton:t==null?void 0:t.uploadFileButton,mirrorButton:t==null?void 0:t.mirrorButton},l=Wue(o),u=Zr(Zr(Zr(Zr(Zr({},!!a&&typeof a=="string"&&{locale:a.slice(0,2).toLowerCase()}),typeof(r==null?void 0:r.captureMode)=="number"&&r.captureMode in BE&&{captureMode:BE[r.captureMode]}),typeof(t==null?void 0:t.cameraFrameShapeType)=="number"&&t.cameraFrameShapeType in GE&&{cameraFrameShapeType:GE[t.cameraFrameShapeType]}),(typeof((c=r==null?void 0:r.videoOutputSettings)==null?void 0:c.AVVideoWidthKey)=="number"||typeof((d=r==null?void 0:r.videoOutputSettings)==null?void 0:d.AVVideoHeightKey)=="number")&&{resolution:Zr(Zr({},typeof((f=r==null?void 0:r.videoOutputSettings)==null?void 0:f.AVVideoWidthKey)=="number"&&{width:r.videoOutputSettings.AVVideoWidthKey}),typeof((p=r==null?void 0:r.videoOutputSettings)==null?void 0:p.AVVideoHeightKey)=="number"&&{height:r.videoOutputSettings.AVVideoHeightKey})}),typeof(r==null?void 0:r.cameraFrame)=="number"&&r.cameraFrame in WE&&{cameraFrame:WE[r.cameraFrame]});return Zr(Zr({},l),u)}_setDocReaderProps(){var b;if(!this.props||!this._component)return;const e=cl(this.props.moduleProps),{processParam:t,functionality:r,customization:a,sessionId:o,copyright:l,serviceToken:u,locale:c}=e,d=eH(t),f=(b=d==null?void 0:d.backendProcessing)==null?void 0:b.serviceURL;if(!f||!tH(f)){const g=new hi({errorCode:di.CONFIGURATION_FAILED,message:"serviceURL is not defined or is invalid."}),v=new Fa({errorCode:Za.SCAN_ERROR,underlyingBaseError:g});this.props.perform(v)}u&&(d!=null&&d.backendProcessing)&&(d.backendProcessing.httpHeaders={Authorization:`Connection ${u}`});const p={processParam:Zr({},d)};o&&(p.tag=o),window.RegulaDocumentSDK.recognizerProcessParam=p,window.RegulaDocumentSDK.imageProcessParam={processParam:{scenario:p1.MrzAndLocate}},RE(this.shadowRoot,[...this.shadowRoot.adoptedStyleSheets,...this._prepareCustomizationStyles(a)]),this._component.settings=this._prepareSettings({copyright:l,customization:a,functionality:r,locale:c})}updated(e){e.has("props")&&this._setDocReaderProps()}render(){var e,t;return fi`<document-reader
200
+ `),t}_prepareSettings({copyright:e,customization:t,functionality:r,locale:a}){var c,d,f,p,b;const o={copyright:e,skipButton:r==null?void 0:r.showSkipNextPageButton,captureButton:r==null?void 0:r.showCaptureButton,captureButtonDelay:r==null?void 0:r.showCaptureButtonDelayFromStart,cameraFrameOffsetWidth:t==null?void 0:t.cameraFrameWidthOffset,cameraFrameActiveColor:t==null?void 0:t.cameraFrameActiveColor,cameraFrameDefaultColor:t==null?void 0:t.cameraFrameDefaultColor,closeButton:r==null?void 0:r.showCloseButton,changeCameraButton:r==null?void 0:r.showCameraSwitchButton,videoCaptureMotionControl:r==null?void 0:r.videoCaptureMotionControl,statusIcon:t==null?void 0:t.showStatusMessages,cameraFrameBorderWidth:t==null?void 0:t.cameraFrameBorderWidth,cameraFrameLineLength:t==null?void 0:t.cameraFrameLineLength,nextPageAnimationEndDelay:t==null?void 0:t.nextPageAnimationEndDelay,nextPageAnimationStartDelay:t==null?void 0:t.nextPageAnimationStartDelay,statusPositionMultiplier:t==null?void 0:t.statusPositionMultiplier,cameraFrameLandscapeAspectRatio:t==null?void 0:t.cameraFrameLandscapeAspectRatio,cameraFramePortraitAspectRatio:t==null?void 0:t.cameraFramePortraitAspectRatio,cameraFrameCornerRadius:t==null?void 0:t.cameraFrameCornerRadius,cameraFrameVerticalPositionMultiplier:t==null?void 0:t.cameraFramePositionMultiplier,cameraFrameHorizontalPositionMultiplier:t==null?void 0:t.cameraFramePositionMultiplier,internalScenario:r==null?void 0:r.internalScenario,multipageProcessing:r==null?void 0:r.multipageProcessing,multipleFileInput:r==null?void 0:r.multipleFileInput,cameraId:r==null?void 0:r.cameraId,mirrorType:r==null?void 0:r.mirrorType,mobileDelegate:r==null?void 0:r.mobileDelegate,finalizeOnTimeout:r==null?void 0:r.finalizeOnTimeout,maxImageSize:r==null?void 0:r.maxImageSize,maxResolutionSize:r==null?void 0:r.maxResolutionSize,cameraMode:r==null?void 0:r.cameraMode,videoRecord:r==null?void 0:r.recordScanningProcess,activityIndicatorLandscapePositionMultiplier:t==null?void 0:t.activityIndicatorLandscapePositionMultiplier,activityIndicatorPortraitPositionMultiplier:t==null?void 0:t.activityIndicatorPortraitPositionMultiplier,cameraFrameLineCap:t==null?void 0:t.cameraFrameLineCap,fromCameraButton:t==null?void 0:t.fromCameraButton,uploadFileButton:t==null?void 0:t.uploadFileButton,mirrorButton:t==null?void 0:t.mirrorButton,nonce:(c=this.props)==null?void 0:c.nonce},l=Wue(o),u=Zr(Zr(Zr(Zr(Zr({},!!a&&typeof a=="string"&&{locale:a.slice(0,2).toLowerCase()}),typeof(r==null?void 0:r.captureMode)=="number"&&r.captureMode in BE&&{captureMode:BE[r.captureMode]}),typeof(t==null?void 0:t.cameraFrameShapeType)=="number"&&t.cameraFrameShapeType in GE&&{cameraFrameShapeType:GE[t.cameraFrameShapeType]}),(typeof((d=r==null?void 0:r.videoOutputSettings)==null?void 0:d.AVVideoWidthKey)=="number"||typeof((f=r==null?void 0:r.videoOutputSettings)==null?void 0:f.AVVideoHeightKey)=="number")&&{resolution:Zr(Zr({},typeof((p=r==null?void 0:r.videoOutputSettings)==null?void 0:p.AVVideoWidthKey)=="number"&&{width:r.videoOutputSettings.AVVideoWidthKey}),typeof((b=r==null?void 0:r.videoOutputSettings)==null?void 0:b.AVVideoHeightKey)=="number"&&{height:r.videoOutputSettings.AVVideoHeightKey})}),typeof(r==null?void 0:r.cameraFrame)=="number"&&r.cameraFrame in WE&&{cameraFrame:WE[r.cameraFrame]});return Zr(Zr({},l),u)}_setDocReaderProps(){var b;if(!this.props||!this._component)return;const e=cl(this.props.moduleProps),{processParam:t,functionality:r,customization:a,sessionId:o,copyright:l,serviceToken:u,locale:c}=e,d=eH(t),f=(b=d==null?void 0:d.backendProcessing)==null?void 0:b.serviceURL;if(!f||!tH(f)){const g=new hi({errorCode:di.CONFIGURATION_FAILED,message:"serviceURL is not defined or is invalid."}),v=new Fa({errorCode:Za.SCAN_ERROR,underlyingBaseError:g});this.props.perform(v)}u&&(d!=null&&d.backendProcessing)&&(d.backendProcessing.httpHeaders={Authorization:`Connection ${u}`});const p={processParam:Zr({},d)};o&&(p.tag=o),window.RegulaDocumentSDK.recognizerProcessParam=p,window.RegulaDocumentSDK.imageProcessParam={processParam:{scenario:p1.MrzAndLocate}},RE(this.shadowRoot,[...this.shadowRoot.adoptedStyleSheets,...this._prepareCustomizationStyles(a)]),this._component.settings=this._prepareSettings({copyright:l,customization:a,functionality:r,locale:c})}updated(e){e.has("props")&&this._setDocReaderProps()}render(){var e,t;return fi`<document-reader
201
201
  new-layout
202
202
  start-screen=${XE((t=(e=this.props)==null?void 0:e.moduleProps.functionality)==null?void 0:t.startScreen)}
203
203
  @document-reader="${this._handleDocumentReader}"
package/dist/main.js CHANGED
@@ -24623,7 +24623,7 @@ let ml = class extends Yi {
24623
24623
  functionality: r,
24624
24624
  locale: a
24625
24625
  }) {
24626
- var c, d, f, p;
24626
+ var c, d, f, p, b;
24627
24627
  const o = {
24628
24628
  copyright: e,
24629
24629
  skipButton: r == null ? void 0 : r.showSkipNextPageButton,
@@ -24652,7 +24652,6 @@ let ml = class extends Yi {
24652
24652
  multipageProcessing: r == null ? void 0 : r.multipageProcessing,
24653
24653
  multipleFileInput: r == null ? void 0 : r.multipleFileInput,
24654
24654
  cameraId: r == null ? void 0 : r.cameraId,
24655
- nonce: r == null ? void 0 : r.nonce,
24656
24655
  mirrorType: r == null ? void 0 : r.mirrorType,
24657
24656
  mobileDelegate: r == null ? void 0 : r.mobileDelegate,
24658
24657
  finalizeOnTimeout: r == null ? void 0 : r.finalizeOnTimeout,
@@ -24665,17 +24664,18 @@ let ml = class extends Yi {
24665
24664
  cameraFrameLineCap: t == null ? void 0 : t.cameraFrameLineCap,
24666
24665
  fromCameraButton: t == null ? void 0 : t.fromCameraButton,
24667
24666
  uploadFileButton: t == null ? void 0 : t.uploadFileButton,
24668
- mirrorButton: t == null ? void 0 : t.mirrorButton
24667
+ mirrorButton: t == null ? void 0 : t.mirrorButton,
24668
+ nonce: (c = this.props) == null ? void 0 : c.nonce
24669
24669
  }, l = _3e(o), u = Or(Or(Or(Or(Or({}, !!a && typeof a == "string" && {
24670
24670
  locale: a.slice(0, 2).toLowerCase()
24671
24671
  }), typeof (r == null ? void 0 : r.captureMode) == "number" && r.captureMode in GC && {
24672
24672
  captureMode: GC[r.captureMode]
24673
24673
  }), typeof (t == null ? void 0 : t.cameraFrameShapeType) == "number" && t.cameraFrameShapeType in WC && {
24674
24674
  cameraFrameShapeType: WC[t.cameraFrameShapeType]
24675
- }), (typeof ((c = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : c.AVVideoWidthKey) == "number" || typeof ((d = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : d.AVVideoHeightKey) == "number") && {
24676
- resolution: Or(Or({}, typeof ((f = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : f.AVVideoWidthKey) == "number" && {
24675
+ }), (typeof ((d = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : d.AVVideoWidthKey) == "number" || typeof ((f = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : f.AVVideoHeightKey) == "number") && {
24676
+ resolution: Or(Or({}, typeof ((p = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : p.AVVideoWidthKey) == "number" && {
24677
24677
  width: r.videoOutputSettings.AVVideoWidthKey
24678
- }), typeof ((p = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : p.AVVideoHeightKey) == "number" && {
24678
+ }), typeof ((b = r == null ? void 0 : r.videoOutputSettings) == null ? void 0 : b.AVVideoHeightKey) == "number" && {
24679
24679
  height: r.videoOutputSettings.AVVideoHeightKey
24680
24680
  })
24681
24681
  }), typeof (r == null ? void 0 : r.cameraFrame) == "number" && r.cameraFrame in $C && {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-document",
3
- "version": "3.2.268-nightly",
3
+ "version": "3.2.270-nightly",
4
4
  "description": "Regula framework agnostic web components to work with document idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.iife.js",