@regulaforensics/idv-interfaces 3.5.318-nightly → 3.5.320-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
@@ -44,7 +44,7 @@ export declare type FailedAssets = {
44
44
  blockingAssets: Set<string>;
45
45
  };
46
46
 
47
- export declare const getLanguageFromLocale: (locale?: string) => string;
47
+ export declare const getLayoutDirectionFromLocale: (locale?: string) => DirectionType;
48
48
 
49
49
  export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
50
50
  isProcessing?: (isProcessing: boolean) => void;
@@ -77,7 +77,7 @@ declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
77
77
 
78
78
  export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown> = IdvModuleStaticMethods & (new (...args: any[]) => BaseModule<TModuleProps, TModulesConfig>);
79
79
 
80
- export declare function parseClientJSON<T>(json: T): T;
80
+ export declare function parseWebSpecificFields<T>(json: T): T;
81
81
 
82
82
  export declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
83
83
 
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
- var l = Object.defineProperty;
1
+ var p = Object.defineProperty;
2
2
  var m = Object.getOwnPropertySymbols;
3
3
  var u = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
- var y = (r, e, t) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, s = (r, e) => {
4
+ var y = (r, e, t) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, s = (r, e) => {
5
5
  for (var t in e || (e = {}))
6
6
  u.call(e, t) && y(r, t, e[t]);
7
7
  if (m)
@@ -15,13 +15,13 @@ class o {
15
15
  errorCodeKey: t,
16
16
  message: i,
17
17
  underlyingError: n,
18
- underlyingBaseError: g,
19
- domain: h,
18
+ underlyingBaseError: c,
19
+ domain: g,
20
20
  module: f,
21
- errorEnumName: c,
22
- shortDomainCode: p
21
+ errorEnumName: h,
22
+ shortDomainCode: l
23
23
  }) {
24
- this.errorCode = e, this.errorCodeKey = t, this.message = i, this.underlyingError = n, this.underlyingBaseError = g, this.module = f, this.domain = h, this.errorEnumName = c, this.shortDomainCode = p;
24
+ this.errorCode = e, this.errorCodeKey = t, this.message = i, this.underlyingError = n, this.underlyingBaseError = c, this.module = f, this.domain = g, this.errorEnumName = h, this.shortDomainCode = l;
25
25
  }
26
26
  static getErrorKey(e, t) {
27
27
  const i = Object.keys(t).find((n) => t[n] === e);
@@ -56,9 +56,9 @@ class o {
56
56
  return this.underlyingBaseError instanceof o && (e += `-${this.underlyingBaseError.fullChain}`), e;
57
57
  }
58
58
  }
59
- class b extends HTMLElement {
59
+ class N extends HTMLElement {
60
60
  }
61
- function N(r, e) {
61
+ function B(r, e) {
62
62
  if (e.displayName ? console.log(`Register module: ${e.displayName}`) : console.error('Missed "displayName" when register module'), e.getSupportedTemplates && typeof e.getSupportedTemplates == "function") {
63
63
  const t = e.getSupportedTemplates();
64
64
  console.log(`${e == null ? void 0 : e.displayName} supported templates: ${t.join(", ")}`);
@@ -90,30 +90,31 @@ function d(r) {
90
90
  }
91
91
  return r;
92
92
  }
93
- function B(r) {
93
+ function T(r) {
94
94
  return Object.fromEntries(Object.entries(r).filter(([, e]) => e !== void 0));
95
95
  }
96
96
  const O = {
97
97
  FORM: "form",
98
98
  DATA: "data"
99
99
  };
100
- function T(r) {
100
+ function R(r) {
101
101
  return new Promise((e) => setTimeout(e, r));
102
102
  }
103
103
  var $ = /* @__PURE__ */ ((r) => (r.RTL = "rtl", r.LTR = "ltr", r))($ || {});
104
- const R = ["ar", "he"], A = (r) => {
105
- var e;
106
- return r ? (e = r.substring(0, 2)) == null ? void 0 : e.toLowerCase() : "";
104
+ const b = ["ar", "he"], A = (r) => {
105
+ var t;
106
+ const e = r ? (t = r.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
107
+ return b.includes(e) ? "rtl" : "ltr";
107
108
  };
108
109
  export {
109
110
  o as BaseError,
110
- b as BaseModule,
111
+ N as BaseModule,
111
112
  $ as DirectionType,
112
113
  O as PerformTypes,
113
- R as RTL_LANGUAGES,
114
- B as cleanObjectFromUndefined,
115
- A as getLanguageFromLocale,
116
- d as parseClientJSON,
117
- N as registerModule,
118
- T as wait
114
+ b as RTL_LANGUAGES,
115
+ T as cleanObjectFromUndefined,
116
+ A as getLayoutDirectionFromLocale,
117
+ d as parseWebSpecificFields,
118
+ B as registerModule,
119
+ R as wait
119
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-interfaces",
3
- "version": "3.5.318-nightly",
3
+ "version": "3.5.320-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.js",