@regulaforensics/idv-document 3.9.483-nightly → 3.9.484-rc

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
@@ -102,7 +102,6 @@ declare type DocumentReaderProps = {
102
102
  };
103
103
  localizationKeys?: Record<string, string>;
104
104
  customization?: {
105
- fontFamily?: string;
106
105
  cameraFrameWidthOffset?: number;
107
106
  backgroundMaskAlpha?: number;
108
107
  backgroundMaskColor?: string;
package/dist/main.iife.js CHANGED
@@ -57,11 +57,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
57
57
  width: 100%;
58
58
  height: 100%;
59
59
  }
60
- `;function MB(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function NB(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var PB,FB=(PB=class extends Ne{constructor(...e){super(...e),this._performType=Jz.DATA,this.props=null,this._handleDocumentReader=e=>{var t,n,r,i;if((t=this.props)==null||(n=t.idvEventListener)==null||n.call(t,`IDV-DOCUMENT`,e.detail.action),e.detail.action===W.CAMERA_PROCESS_STARTED&&(r=this.props)!=null&&r.isProcessing&&this.props.isProcessing(!1),e.detail.action===W.PROCESS_FINISHED){var a,o,s,c,l;if(((a=e.detail.data)==null?void 0:a.status)===ap.ERROR){var u;let t={transactionId:``,cancel:!1,has_nfc:!1,errorCode:e.detail.data.reason};(u=this.props)==null||u.perform(t,this._performType)}let t=(o=e.detail.data)==null?void 0:o.status,n=t===ap.OK,r=t===ap.TIMEOUT;if(!(n||r)||!((s=e.detail.data)!=null&&s.response))return;(c=this.props)!=null&&c.isProcessing&&this.props.isProcessing(!0);let i=(l=this.props)==null||(l=l.moduleProps)==null?void 0:l.finalizePackageSettings;bB(()=>window.RegulaDocumentSDK.finalizePackage(),i==null?void 0:i.retryCount,i==null?void 0:i.retryDelay).then(e=>{var t;let n={transactionId:(e==null?void 0:e.transactionId)||``,cancel:!1,has_nfc:!1,errorCode:``};(t=this.props)==null||t.perform(n,this._performType)}).catch(e=>{var t;console.log(`finalizePackage error: `,e),(t=this.props)==null||t.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},this._performType)})}if(((i=e.detail)==null?void 0:i.action)===W.CLOSE||e.detail.action===W.CAMERA_PROCESS_CLOSED){var d;(d=this.props)==null||d.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},this._performType)}}}_prepareCustomizationStyles(e,t,n){let r=[];if(e!=null&&e.fontFamily&&r.push(s`
61
- document-reader::part(container) {
62
- font-family: ${o(e.fontFamily)};
63
- }
64
- `),e!=null&&e.backgroundMaskColor&&r.push(s`
60
+ `;function MB(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function NB(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var PB,FB=(PB=class extends Ne{constructor(...e){super(...e),this._performType=Jz.DATA,this.props=null,this._handleDocumentReader=e=>{var t,n,r,i;if((t=this.props)==null||(n=t.idvEventListener)==null||n.call(t,`IDV-DOCUMENT`,e.detail.action),e.detail.action===W.CAMERA_PROCESS_STARTED&&(r=this.props)!=null&&r.isProcessing&&this.props.isProcessing(!1),e.detail.action===W.PROCESS_FINISHED){var a,o,s,c,l;if(((a=e.detail.data)==null?void 0:a.status)===ap.ERROR){var u;let t={transactionId:``,cancel:!1,has_nfc:!1,errorCode:e.detail.data.reason};(u=this.props)==null||u.perform(t,this._performType)}let t=(o=e.detail.data)==null?void 0:o.status,n=t===ap.OK,r=t===ap.TIMEOUT;if(!(n||r)||!((s=e.detail.data)!=null&&s.response))return;(c=this.props)!=null&&c.isProcessing&&this.props.isProcessing(!0);let i=(l=this.props)==null||(l=l.moduleProps)==null?void 0:l.finalizePackageSettings;bB(()=>window.RegulaDocumentSDK.finalizePackage(),i==null?void 0:i.retryCount,i==null?void 0:i.retryDelay).then(e=>{var t;let n={transactionId:(e==null?void 0:e.transactionId)||``,cancel:!1,has_nfc:!1,errorCode:``};(t=this.props)==null||t.perform(n,this._performType)}).catch(e=>{var t;console.log(`finalizePackage error: `,e),(t=this.props)==null||t.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},this._performType)})}if(((i=e.detail)==null?void 0:i.action)===W.CLOSE||e.detail.action===W.CAMERA_PROCESS_CLOSED){var d;(d=this.props)==null||d.perform({transactionId:``,cancel:!0,has_nfc:!1,errorCode:``},this._performType)}}}_prepareCustomizationStyles(e,t,n){let r=[];if(e!=null&&e.backgroundMaskColor&&r.push(s`
65
61
  document-reader::part(frame-external-background) {
66
62
  fill: ${o(e.backgroundMaskColor)};
67
63
  }
package/dist/main.js CHANGED
@@ -21295,11 +21295,7 @@ var NB, PB = (NB = class extends Me {
21295
21295
  }
21296
21296
  _prepareCustomizationStyles(e, t, n) {
21297
21297
  let r = [];
21298
- if (e != null && e.fontFamily && r.push(o`
21299
- document-reader::part(container) {
21300
- font-family: ${a(e.fontFamily)};
21301
- }
21302
- `), e != null && e.backgroundMaskColor && r.push(o`
21298
+ if (e != null && e.backgroundMaskColor && r.push(o`
21303
21299
  document-reader::part(frame-external-background) {
21304
21300
  fill: ${a(e.backgroundMaskColor)};
21305
21301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-document",
3
- "version": "3.9.483-nightly",
3
+ "version": "3.9.484-rc",
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",