@regulaforensics/idv-interfaces 4.0.665-nightly → 4.0.667-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
@@ -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
@@ -128,21 +128,28 @@ var f = {
128
128
  function p(e) {
129
129
  return new Promise((t) => setTimeout(t, e));
130
130
  }
131
- var m = /* @__PURE__ */ function(e) {
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) {
132
139
  return e.RTL = "rtl", e.LTR = "ltr", e;
133
- }({}), h = ["ar", "he"], g = (e) => {
140
+ }({}), g = ["ar", "he"], _ = (e) => {
134
141
  var t;
135
142
  let n = e ? (t = e.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
136
- return h.includes(n) ? "rtl" : "ltr";
137
- }, _ = (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) => {
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) => {
138
145
  var r;
139
146
  if (!t) return;
140
147
  let i = (r = e == null ? void 0 : e.idvAsset) == null ? null : r;
141
148
  for (; i;) {
142
- let e = _(i, n);
149
+ let e = v(i, n);
143
150
  if (e) return e;
144
151
  i = i.failurePolicy === "placeholderImage" && i.placeholderImage || null;
145
152
  }
146
153
  };
147
154
  //#endregion
148
- 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 };
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.665-nightly",
3
+ "version": "4.0.667-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",