@regulaforensics/idv-interfaces 3.6.346-nightly → 3.6.347-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 +0 -10
- package/dist/main.js +40 -50
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -46,10 +46,6 @@ export declare type FailedAssets = {
|
|
|
46
46
|
|
|
47
47
|
export declare const getLayoutDirectionFromLocale: (locale?: string) => DirectionType;
|
|
48
48
|
|
|
49
|
-
export declare type IdvAsset = {
|
|
50
|
-
idvAsset: ImageLike;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
49
|
export declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
54
50
|
isProcessing?: (isProcessing: boolean) => void;
|
|
55
51
|
moduleProps: TModuleProps;
|
|
@@ -79,10 +75,6 @@ export declare type ImageBase = {
|
|
|
79
75
|
|
|
80
76
|
declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
|
|
81
77
|
|
|
82
|
-
export declare type ImageLike = ImageBase & {
|
|
83
|
-
placeholderImage?: ImageLike;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
78
|
export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown> = IdvModuleStaticMethods & (new (...args: any[]) => BaseModule<TModuleProps, TModulesConfig>);
|
|
87
79
|
|
|
88
80
|
export declare function parseWebSpecificFields<T>(json: T): T;
|
|
@@ -96,8 +88,6 @@ export declare const PerformTypes: {
|
|
|
96
88
|
|
|
97
89
|
export declare function registerModule<TModuleProps = unknown, TModulesConfig = unknown>(name: string, ModuleClass: ModuleClass<TModuleProps, TModulesConfig>): void;
|
|
98
90
|
|
|
99
|
-
export declare const resolveRenderableImageSrc: (idvAsset?: IdvAsset, preloadAssetsRequired?: boolean, failedAssets?: FailedAssets) => string | undefined;
|
|
100
|
-
|
|
101
91
|
export declare const RTL_LANGUAGES: string[];
|
|
102
92
|
|
|
103
93
|
export declare function wait(ms: number): Promise<unknown>;
|
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var m = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
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
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
E.call(e, t) &&
|
|
6
|
+
u.call(e, t) && y(r, t, e[t]);
|
|
7
|
+
if (m)
|
|
8
|
+
for (var t of m(e))
|
|
9
|
+
E.call(e, t) && y(r, t, e[t]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
12
|
class o {
|
|
@@ -15,13 +15,13 @@ class o {
|
|
|
15
15
|
errorCodeKey: t,
|
|
16
16
|
message: i,
|
|
17
17
|
underlyingError: n,
|
|
18
|
-
underlyingBaseError:
|
|
19
|
-
domain:
|
|
20
|
-
module:
|
|
21
|
-
errorEnumName:
|
|
22
|
-
shortDomainCode:
|
|
18
|
+
underlyingBaseError: c,
|
|
19
|
+
domain: g,
|
|
20
|
+
module: f,
|
|
21
|
+
errorEnumName: h,
|
|
22
|
+
shortDomainCode: l
|
|
23
23
|
}) {
|
|
24
|
-
this.errorCode = e, this.errorCodeKey = t, this.message = i, this.underlyingError = n, this.underlyingBaseError =
|
|
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
|
|
59
|
+
class N extends HTMLElement {
|
|
60
60
|
}
|
|
61
|
-
function
|
|
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(", ")}`);
|
|
@@ -71,60 +71,50 @@ function L(r, e) {
|
|
|
71
71
|
console.error('Missed "getIdentifier" when register module');
|
|
72
72
|
customElements.get(e.getIdentifier()) ? console.log(`Module ${r} has already registered`) : customElements.define(r, e), console.log("-------");
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
function
|
|
74
|
+
const a = (r) => typeof r == "object" && r !== null && !Array.isArray(r);
|
|
75
|
+
function d(r) {
|
|
76
76
|
if (Array.isArray(r))
|
|
77
|
-
return r.map(
|
|
78
|
-
if (
|
|
79
|
-
const e =
|
|
77
|
+
return r.map(d);
|
|
78
|
+
if (a(r)) {
|
|
79
|
+
const e = s({}, r);
|
|
80
80
|
if (delete e.ios, delete e.android, delete e.web, "web" in r)
|
|
81
|
-
if (
|
|
82
|
-
const i =
|
|
83
|
-
return
|
|
81
|
+
if (a(r.web)) {
|
|
82
|
+
const i = d(e);
|
|
83
|
+
return s(s({}, i), r.web);
|
|
84
84
|
} else
|
|
85
85
|
return r.web;
|
|
86
86
|
const t = {};
|
|
87
87
|
for (const [i, n] of Object.entries(e))
|
|
88
|
-
t[i] =
|
|
88
|
+
t[i] = d(n);
|
|
89
89
|
return t;
|
|
90
90
|
}
|
|
91
91
|
return r;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function T(r) {
|
|
94
94
|
return Object.fromEntries(Object.entries(r).filter(([, e]) => e !== void 0));
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const O = {
|
|
97
97
|
FORM: "form",
|
|
98
98
|
DATA: "data"
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function R(r) {
|
|
101
101
|
return new Promise((e) => setTimeout(e, r));
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
const
|
|
103
|
+
var $ = /* @__PURE__ */ ((r) => (r.RTL = "rtl", r.LTR = "ltr", r))($ || {});
|
|
104
|
+
const b = ["ar", "he"], A = (r) => {
|
|
105
105
|
var t;
|
|
106
106
|
const e = r ? (t = r.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
|
|
107
|
-
return
|
|
108
|
-
}, $ = (r, e) => r.base64 && !(e != null && e.base64.has(r.base64)) ? r.base64 : r.imageURL && !(e != null && e.imageURL.has(r.imageURL)) ? r.imageURL : "", S = (r, e, t) => {
|
|
109
|
-
var n;
|
|
110
|
-
if (!e) return;
|
|
111
|
-
let i = (n = r == null ? void 0 : r.idvAsset) != null ? n : null;
|
|
112
|
-
for (; i; ) {
|
|
113
|
-
const a = $(i, t);
|
|
114
|
-
if (a) return a;
|
|
115
|
-
i = i.failurePolicy === "placeholderImage" && i.placeholderImage || null;
|
|
116
|
-
}
|
|
107
|
+
return b.includes(e) ? "rtl" : "ltr";
|
|
117
108
|
};
|
|
118
109
|
export {
|
|
119
110
|
o as BaseError,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
T as wait
|
|
111
|
+
N as BaseModule,
|
|
112
|
+
$ as DirectionType,
|
|
113
|
+
O as PerformTypes,
|
|
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
|
|
130
120
|
};
|
package/package.json
CHANGED