@regulaforensics/idv-interfaces 4.0.672-nightly → 4.0.673-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 +1 -3
- package/dist/main.js +12 -25
- package/package.json +1 -6
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
|
|
58
|
+
idvEventListener: (module: string, data: any) => void;
|
|
59
59
|
nonce?: string;
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -84,8 +84,6 @@ export declare type ImageLike = ImageBase & {
|
|
|
84
84
|
placeholderImage?: ImageLike;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
export declare const isUrl: (value: unknown) => value is string;
|
|
88
|
-
|
|
89
87
|
export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown> = IdvModuleStaticMethods & (new (...args: any[]) => BaseModule<TModuleProps, TModulesConfig>);
|
|
90
88
|
|
|
91
89
|
export declare function parseWebSpecificFields<T>(json: T): T;
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
11
|
-
//#region \0@oxc-project+runtime@0.154.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
|
-
|
|
23
|
-
//#region \0@oxc-project+runtime@0.154.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
|
-
|
|
29
|
-
//#region \0@oxc-project+runtime@0.154.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
|
-
|
|
39
|
-
//#region \0@oxc-project+runtime@0.154.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
|
-
|
|
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;
|
|
@@ -128,28 +123,20 @@ var f = {
|
|
|
128
123
|
function p(e) {
|
|
129
124
|
return new Promise((t) => setTimeout(t, e));
|
|
130
125
|
}
|
|
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) {
|
|
126
|
+
var m = /* @__PURE__ */ function(e) {
|
|
139
127
|
return e.RTL = "rtl", e.LTR = "ltr", e;
|
|
140
|
-
}({}),
|
|
128
|
+
}({}), h = ["ar", "he"], g = (e) => {
|
|
141
129
|
var t;
|
|
142
130
|
let n = e ? (t = e.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
|
|
143
|
-
return
|
|
144
|
-
},
|
|
131
|
+
return h.includes(n) ? "rtl" : "ltr";
|
|
132
|
+
}, _ = (e, t) => e.base64 && !(t != null && t.base64.has(e.base64)) ? e.base64 : e.imageURL && !(t != null && t.imageURL.has(e.imageURL)) ? e.imageURL : "", v = (e, t, n) => {
|
|
145
133
|
var r;
|
|
146
134
|
if (!t) return;
|
|
147
135
|
let i = (r = e == null ? void 0 : e.idvAsset) == null ? null : r;
|
|
148
136
|
for (; i;) {
|
|
149
|
-
let e =
|
|
137
|
+
let e = _(i, n);
|
|
150
138
|
if (e) return e;
|
|
151
139
|
i = i.failurePolicy === "placeholderImage" && i.placeholderImage || null;
|
|
152
140
|
}
|
|
153
141
|
};
|
|
154
|
-
|
|
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 };
|
|
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.
|
|
3
|
+
"version": "4.0.673-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",
|
|
@@ -16,11 +16,6 @@
|
|
|
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
|
-
},
|
|
24
19
|
"homepage": "https://storybook-idv.regulaforensics.com/",
|
|
25
20
|
"scripts": {
|
|
26
21
|
"build": "vite build",
|