@regulaforensics/idv-interfaces 4.0.514-nightly → 4.0.656-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
@@ -66,6 +66,7 @@ export declare interface IdvModuleStaticMethods {
66
66
  initialize(modulesConfig: Record<string, unknown>): void;
67
67
  deinitialize(): void;
68
68
  getIdentifier(): string;
69
+ cancel(): void;
69
70
  }
70
71
 
71
72
  export declare type ImageBase = {
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
1
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
2
2
  function e(t) {
3
3
  "@babel/helpers - typeof";
4
4
  return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -7,8 +7,7 @@ function e(t) {
7
7
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
8
  }, e(t);
9
9
  }
10
- //#endregion
11
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
10
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
12
11
  function t(t, n) {
13
12
  if (e(t) != "object" || !t) return t;
14
13
  var r = t[Symbol.toPrimitive];
@@ -19,14 +18,12 @@ function t(t, n) {
19
18
  }
20
19
  return (n === "string" ? String : Number)(t);
21
20
  }
22
- //#endregion
23
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
21
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
24
22
  function n(n) {
25
23
  var r = t(n, "string");
26
24
  return e(r) == "symbol" ? r : r + "";
27
25
  }
28
- //#endregion
29
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
26
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
30
27
  function r(e, t, r) {
31
28
  return (t = n(t)) in e ? Object.defineProperty(e, t, {
32
29
  value: r,
@@ -35,8 +32,7 @@ function r(e, t, r) {
35
32
  writable: !0
36
33
  }) : e[t] = r, e;
37
34
  }
38
- //#endregion
39
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectSpread2.js
35
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/objectSpread2.js
40
36
  function i(e, t) {
41
37
  var n = Object.keys(e);
42
38
  if (Object.getOwnPropertySymbols) {
@@ -58,8 +54,7 @@ function a(e) {
58
54
  }
59
55
  return e;
60
56
  }
61
- //#endregion
62
- //#region src/index.ts
57
+ // src/index.ts
63
58
  var o = class e {
64
59
  constructor({ errorCode: e, errorCodeKey: t, message: n, underlyingError: r, underlyingBaseError: i, domain: a, module: o, errorEnumName: s, shortDomainCode: c }) {
65
60
  this.errorCode = e, this.errorCodeKey = t, this.message = n, this.underlyingError = r, this.underlyingBaseError = i, this.module = o, this.domain = a, this.errorEnumName = s, this.shortDomainCode = c;
@@ -100,7 +95,7 @@ function c(e, t) {
100
95
  let e = t.getSupportedTemplates();
101
96
  console.log(`${t == null ? void 0 : t.displayName} supported templates: ${e.join(", ")}`);
102
97
  } else console.error("Missed \"getSupportedTemplates\" method when register module");
103
- if (t.initialize && typeof t.initialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "initialize" method was not implemented`), t.deinitialize && typeof t.deinitialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "deinitialize" method was not implemented`), t.isReady && typeof t.isReady == "function" || console.error(`${t == null ? void 0 : t.displayName} "isReady" method was not implemented`), t.getIdentifier && typeof t.getIdentifier == "function") {
98
+ if (t.initialize && typeof t.initialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "initialize" method was not implemented`), t.deinitialize && typeof t.deinitialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "deinitialize" method was not implemented`), t.cancel && typeof t.cancel == "function" || console.error(`${t == null ? void 0 : t.displayName} "cancel" method was not implemented`), t.isReady && typeof t.isReady == "function" || console.error(`${t == null ? void 0 : t.displayName} "isReady" method was not implemented`), t.getIdentifier && typeof t.getIdentifier == "function") {
104
99
  let e = t.getIdentifier();
105
100
  console.log(`Module id: ${e}`);
106
101
  } else console.error("Missed \"getIdentifier\" when register module");
@@ -144,5 +139,4 @@ var m = /* @__PURE__ */ function(e) {
144
139
  i = i.failurePolicy === "placeholderImage" && i.placeholderImage || null;
145
140
  }
146
141
  };
147
- //#endregion
148
142
  export { o as BaseError, s as BaseModule, m as DirectionType, f as PerformTypes, h as RTL_LANGUAGES, d as cleanObjectFromUndefined, g as getLayoutDirectionFromLocale, u as parseWebSpecificFields, c as registerModule, v as resolveRenderableImageSrc, p as wait };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-interfaces",
3
- "version": "4.0.514-nightly",
3
+ "version": "4.0.656-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.js",