@regulaforensics/idv-interfaces 4.0.676-rc → 4.0.677-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 +3 -1
- package/dist/main.js +25 -12
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
|
55
55
|
moduleProps: TModuleProps;
|
|
56
56
|
modulesConfig?: TModulesConfig;
|
|
57
57
|
perform: (data: any, type?: PerformType) => void;
|
|
58
|
-
idvEventListener: (module: string, data: any) => void;
|
|
58
|
+
idvEventListener: (module: string, data: any, logLevel?: 'INFO' | 'DEBUG') => void;
|
|
59
59
|
nonce?: string;
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -84,6 +84,8 @@ export declare type ImageLike = ImageBase & {
|
|
|
84
84
|
placeholderImage?: ImageLike;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
+
export declare const isUrl: (value: unknown) => value is string;
|
|
88
|
+
|
|
87
89
|
export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown> = IdvModuleStaticMethods & (new (...args: any[]) => BaseModule<TModuleProps, TModulesConfig>);
|
|
88
90
|
|
|
89
91
|
export declare function parseWebSpecificFields<T>(json: T): T;
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region \0@oxc-project+runtime@0.154.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,7 +7,8 @@ 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
|
-
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
11
12
|
function t(t, n) {
|
|
12
13
|
if (e(t) != "object" || !t) return t;
|
|
13
14
|
var r = t[Symbol.toPrimitive];
|
|
@@ -18,12 +19,14 @@ function t(t, n) {
|
|
|
18
19
|
}
|
|
19
20
|
return (n === "string" ? String : Number)(t);
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
22
24
|
function n(n) {
|
|
23
25
|
var r = t(n, "string");
|
|
24
26
|
return e(r) == "symbol" ? r : r + "";
|
|
25
27
|
}
|
|
26
|
-
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
27
30
|
function r(e, t, r) {
|
|
28
31
|
return (t = n(t)) in e ? Object.defineProperty(e, t, {
|
|
29
32
|
value: r,
|
|
@@ -32,7 +35,8 @@ function r(e, t, r) {
|
|
|
32
35
|
writable: !0
|
|
33
36
|
}) : e[t] = r, e;
|
|
34
37
|
}
|
|
35
|
-
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
|
|
36
40
|
function i(e, t) {
|
|
37
41
|
var n = Object.keys(e);
|
|
38
42
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -54,7 +58,8 @@ function a(e) {
|
|
|
54
58
|
}
|
|
55
59
|
return e;
|
|
56
60
|
}
|
|
57
|
-
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/index.ts
|
|
58
63
|
var o = class e {
|
|
59
64
|
constructor({ errorCode: e, errorCodeKey: t, message: n, underlyingError: r, underlyingBaseError: i, domain: a, module: o, errorEnumName: s, shortDomainCode: c }) {
|
|
60
65
|
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;
|
|
@@ -123,20 +128,28 @@ var f = {
|
|
|
123
128
|
function p(e) {
|
|
124
129
|
return new Promise((t) => setTimeout(t, e));
|
|
125
130
|
}
|
|
126
|
-
var m =
|
|
131
|
+
var m = (e) => {
|
|
132
|
+
if (typeof e != "string") return !1;
|
|
133
|
+
try {
|
|
134
|
+
return new URL(e), !0;
|
|
135
|
+
} catch (e) {
|
|
136
|
+
return !1;
|
|
137
|
+
}
|
|
138
|
+
}, h = /* @__PURE__ */ function(e) {
|
|
127
139
|
return e.RTL = "rtl", e.LTR = "ltr", e;
|
|
128
|
-
}({}),
|
|
140
|
+
}({}), g = ["ar", "he"], _ = (e) => {
|
|
129
141
|
var t;
|
|
130
142
|
let n = e ? (t = e.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
|
|
131
|
-
return
|
|
132
|
-
},
|
|
143
|
+
return g.includes(n) ? "rtl" : "ltr";
|
|
144
|
+
}, v = (e, t) => e.base64 && !(t != null && t.base64.has(e.base64)) ? e.base64 : e.imageURL && !(t != null && t.imageURL.has(e.imageURL)) ? e.imageURL : "", y = (e, t, n) => {
|
|
133
145
|
var r;
|
|
134
146
|
if (!t) return;
|
|
135
147
|
let i = (r = e == null ? void 0 : e.idvAsset) == null ? null : r;
|
|
136
148
|
for (; i;) {
|
|
137
|
-
let e =
|
|
149
|
+
let e = v(i, n);
|
|
138
150
|
if (e) return e;
|
|
139
151
|
i = i.failurePolicy === "placeholderImage" && i.placeholderImage || null;
|
|
140
152
|
}
|
|
141
153
|
};
|
|
142
|
-
|
|
154
|
+
//#endregion
|
|
155
|
+
export { o as BaseError, s as BaseModule, h as DirectionType, f as PerformTypes, g as RTL_LANGUAGES, d as cleanObjectFromUndefined, _ as getLayoutDirectionFromLocale, m as isUrl, u as parseWebSpecificFields, c as registerModule, y 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.
|
|
3
|
+
"version": "4.0.677-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",
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
],
|
|
17
17
|
"author": "Regula Forensics, Inc.",
|
|
18
18
|
"license": "MIT",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/regulaforensics/idv-web-component.git",
|
|
22
|
+
"directory": "packages/interfaces-idv"
|
|
23
|
+
},
|
|
19
24
|
"homepage": "https://storybook-idv.regulaforensics.com/",
|
|
20
25
|
"scripts": {
|
|
21
26
|
"build": "vite build",
|