@corva/ui 3.69.0-7 → 3.69.0-8

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 +1 @@
1
- {"version":3,"file":"mobileDetect.d.ts","sourceRoot":"","sources":["../../src/utils/mobileDetect.js"],"names":[],"mappings":"AASA,uCAA8C;AAC9C,uCAA8C;AAC9C,uCAAyC;AACzC,6CAAmE;AAEnE,sCAA4C;AAE5C,2CACuF"}
1
+ {"version":3,"file":"mobileDetect.d.ts","sourceRoot":"","sources":["../../src/utils/mobileDetect.js"],"names":[],"mappings":"AAaA,uCAA8C;AAC9C,uCAA8C;AAC9C,uCAAyC;AACzC,6CAAmE;AAEnE,sCAA4C;AAE5C,2CACuF"}
@@ -1,2 +1,2 @@
1
- import t from"mobile-detect";import o from"query-string";import{getAuthorizationToken as e}from"../clients/utils.js";import{MOBILE_AUTH_TOKEN_STORAGE_KEY as r}from"../constants/mobile.js";var i=new t(window.navigator.userAgent),n=o.parse(window.top.location.search),s=n.native,m=n.tablet,a=!!i.mobile(),l=!!i.tablet(),p=!!s,b=p&&!!m,c=!!i.phone(),g=!!sessionStorage.getItem(r)||!!e();export{g as isInsideNewMobileApp,a as isMobileDetected,p as isNativeDetected,b as isNativeTabletDetected,c as isPhoneDetected,l as isTabletDetected};
1
+ import t from"mobile-detect";import e from"query-string";import{getAuthorizationToken as o}from"../clients/utils.js";import{MOBILE_AUTH_TOKEN_STORAGE_KEY as r}from"../constants/mobile.js";var i=new t(window.navigator.userAgent),a=e.parse(window.top.location.search),n=e.parse(window.parent.location.search),s=a.native||n.native,m=a.tablet||n.tablet,l=!!i.mobile(),p=!!i.tablet(),c=!!s,w=c&&!!m,b=!!i.phone(),g=!!sessionStorage.getItem(r)||!!o();export{g as isInsideNewMobileApp,l as isMobileDetected,c as isNativeDetected,w as isNativeTabletDetected,b as isPhoneDetected,p as isTabletDetected};
2
2
  //# sourceMappingURL=mobileDetect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobileDetect.js","sources":["../../src/utils/mobileDetect.js"],"sourcesContent":["import MobileDetect from 'mobile-detect';\nimport queryString from 'query-string';\n\nimport { getAuthorizationToken } from '~/clients/utils';\nimport { MOBILE_AUTH_TOKEN_STORAGE_KEY } from '~/constants/mobile';\n\nconst md = new MobileDetect(window.navigator.userAgent);\nconst { native, tablet } = queryString.parse(window.top.location.search);\n\nexport const isMobileDetected = !!md.mobile();\nexport const isTabletDetected = !!md.tablet();\nexport const isNativeDetected = !!native;\nexport const isNativeTabletDetected = isNativeDetected && !!tablet;\n\nexport const isPhoneDetected = !!md.phone();\n\nexport const isInsideNewMobileApp =\n !!sessionStorage.getItem(MOBILE_AUTH_TOKEN_STORAGE_KEY) || !!getAuthorizationToken();\n"],"names":["md","MobileDetect","window","navigator","userAgent","queryString","parse","top","location","search","native","tablet","isMobileDetected","mobile","isTabletDetected","isNativeDetected","isNativeTabletDetected","isPhoneDetected","phone","isInsideNewMobileApp","sessionStorage","getItem","MOBILE_AUTH_TOKEN_STORAGE_KEY","getAuthorizationToken"],"mappings":"4LAMA,IAAMA,EAAK,IAAIC,EAAaC,OAAOC,UAAUC,WAClBC,EAAAA,EAAYC,MAAMJ,OAAOK,IAAIC,SAASC,QAAzDC,IAAAA,OAAQC,IAAAA,OAEHC,IAAqBZ,EAAGa,SACxBC,IAAqBd,EAAGW,SACxBI,IAAqBL,EACrBM,EAAyBD,KAAsBJ,EAE/CM,IAAoBjB,EAAGkB,QAEvBC,IACTC,eAAeC,QAAQC,MAAoCC"}
1
+ {"version":3,"file":"mobileDetect.js","sources":["../../src/utils/mobileDetect.js"],"sourcesContent":["import MobileDetect from 'mobile-detect';\nimport queryString from 'query-string';\n\nimport { getAuthorizationToken } from '~/clients/utils';\nimport { MOBILE_AUTH_TOKEN_STORAGE_KEY } from '~/constants/mobile';\n\nconst md = new MobileDetect(window.navigator.userAgent);\n\nconst topQuery = queryString.parse(window.top.location.search);\nconst parentQuery = queryString.parse(window.parent.location.search);\nconst native = topQuery.native || parentQuery.native;\nconst tablet = topQuery.tablet || parentQuery.tablet;\n\nexport const isMobileDetected = !!md.mobile();\nexport const isTabletDetected = !!md.tablet();\nexport const isNativeDetected = !!native;\nexport const isNativeTabletDetected = isNativeDetected && !!tablet;\n\nexport const isPhoneDetected = !!md.phone();\n\nexport const isInsideNewMobileApp =\n !!sessionStorage.getItem(MOBILE_AUTH_TOKEN_STORAGE_KEY) || !!getAuthorizationToken();\n"],"names":["md","MobileDetect","window","navigator","userAgent","topQuery","queryString","parse","top","location","search","parentQuery","parent","native","tablet","isMobileDetected","mobile","isTabletDetected","isNativeDetected","isNativeTabletDetected","isPhoneDetected","phone","isInsideNewMobileApp","sessionStorage","getItem","MOBILE_AUTH_TOKEN_STORAGE_KEY","getAuthorizationToken"],"mappings":"4LAMA,IAAMA,EAAK,IAAIC,EAAaC,OAAOC,UAAUC,WAEvCC,EAAWC,EAAYC,MAAML,OAAOM,IAAIC,SAASC,QACjDC,EAAcL,EAAYC,MAAML,OAAOU,OAAOH,SAASC,QACvDG,EAASR,EAASQ,QAAUF,EAAYE,OACxCC,EAAST,EAASS,QAAUH,EAAYG,OAEjCC,IAAqBf,EAAGgB,SACxBC,IAAqBjB,EAAGc,SACxBI,IAAqBL,EACrBM,EAAyBD,KAAsBJ,EAE/CM,IAAoBpB,EAAGqB,QAEvBC,IACTC,eAAeC,QAAQC,MAAoCC"}