idmission-web-sdk 2.2.28 → 2.2.29

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.
@@ -1,2 +1,3 @@
1
- export declare function isMobile(nav?: Navigator): any;
1
+ export declare function isMobile(): boolean | undefined;
2
+ export declare function evaluateIsMobile(nav?: Navigator): any;
2
3
  //# sourceMappingURL=isMobile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMobile.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/isMobile.ts"],"names":[],"mappings":"AAIA,wBAAgB,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,OA+BvC"}
1
+ {"version":3,"file":"isMobile.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/isMobile.ts"],"names":[],"mappings":"AAMA,wBAAgB,QAAQ,wBAIvB;AAED,wBAAgB,gBAAgB,CAAC,GAAG,CAAC,EAAE,SAAS,OA+B/C"}
@@ -232,7 +232,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
232
232
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
233
233
  };
234
234
 
235
- var webSdkVersion = '2.2.28';
235
+ var webSdkVersion = '2.2.29';
236
236
 
237
237
  function getPlatform() {
238
238
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -4060,7 +4060,13 @@ function FocusModelProvider(_a) {
4060
4060
  function _isNavigatorDefined() {
4061
4061
  return typeof navigator !== 'undefined' && navigator != null;
4062
4062
  }
4063
- function isMobile(nav) {
4063
+ var isMobileCache;
4064
+ function isMobile() {
4065
+ if (isMobileCache !== undefined) return isMobileCache;
4066
+ isMobileCache = evaluateIsMobile();
4067
+ return isMobileCache;
4068
+ }
4069
+ function evaluateIsMobile(nav) {
4064
4070
  if (nav || _isNavigatorDefined()) {
4065
4071
  if (!nav) {
4066
4072
  nav = navigator;