@corva/ui 3.69.0-7 → 3.69.0-9

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,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o=function(e){return e?Object.fromEntries(Object.entries(e).map((function(e){var r=n.default(e,2),t=r[0],o=r[1];return[t,"function"==typeof o?function(){for(var e,r,n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return null===(e=window.xprops)||void 0===e||null===(r=e[t])||void 0===r?void 0:r.call.apply(r,[e].concat(o))}:o]}))):e};exports.useXProps=function(){var e=r.useState((function(){return o(window.xprops)})),t=n.default(e,2),u=t[0],i=t[1];return r.useEffect((function(){window.xpropsOnProps=function(e){i(o(e))}}),[]),u};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@babel/runtime/helpers/slicedToArray"),e=require("react");function n(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var t=n(r),o=function(r){return r?Object.fromEntries(Object.entries(r).map((function(r){var e=t.default(r,2),n=e[0],o=e[1];return[n,"function"==typeof o?function(){for(var r,e,t=arguments.length,o=new Array(t),u=0;u<t;u++)o[u]=arguments[u];return null===(r=window.xprops)||void 0===r||null===(e=r[n])||void 0===e?void 0:e.call.apply(e,[r].concat(o))}:o]}))):r};exports.useXProps=function(){var r=e.useRef(window.xprops),n=e.useState((function(){return o(window.xprops)})),u=t.default(n,2),i=u[0],p=u[1];return e.useEffect((function(){var e=function(e){r.current=e,p(o(e))};window.xpropsOnProps=e,r.current!==window.xprops&&e(window.xprops)}),[]),i};
2
2
  //# sourceMappingURL=useXProps.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("mobile-detect"),t=require("query-string"),i=require("../clients/utils.js"),o=require("../constants/mobile.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=r(e),a=r(t),n=new s.default(window.navigator.userAgent),l=a.default.parse(window.top.location.search),u=l.native,d=l.tablet,c=!!n.mobile(),p=!!n.tablet(),b=!!u,f=b&&!!d,v=!!n.phone(),x=!!sessionStorage.getItem(o.MOBILE_AUTH_TOKEN_STORAGE_KEY)||!!i.getAuthorizationToken();exports.isInsideNewMobileApp=x,exports.isMobileDetected=c,exports.isNativeDetected=b,exports.isNativeTabletDetected=f,exports.isPhoneDetected=v,exports.isTabletDetected=p;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("mobile-detect"),t=require("query-string"),i=require("../clients/utils.js"),o=require("../constants/mobile.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=r(e),a=r(t),n=new s.default(window.navigator.userAgent),l=a.default.parse(window.top.location.search),u=a.default.parse(window.parent.location.search),d=l.native||u.native,c=l.tablet||u.tablet,p=!!n.mobile(),b=!!n.tablet(),f=!!d,v=f&&!!c,w=!!n.phone(),x=!!sessionStorage.getItem(o.MOBILE_AUTH_TOKEN_STORAGE_KEY)||!!i.getAuthorizationToken();exports.isInsideNewMobileApp=x,exports.isMobileDetected=p,exports.isNativeDetected=f,exports.isNativeTabletDetected=v,exports.isPhoneDetected=w,exports.isTabletDetected=b;
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":"4RAMMA,EAAK,IAAIC,EAAY,QAACC,OAAOC,UAAUC,WAClBC,EAAAA,EAAW,QAACC,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,EAA6BA,kCAAOC,EAAqBA"}
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":"4RAMMA,EAAK,IAAIC,EAAY,QAACC,OAAOC,UAAUC,WAEvCC,EAAWC,EAAW,QAACC,MAAML,OAAOM,IAAIC,SAASC,QACjDC,EAAcL,EAAW,QAACC,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,EAA6BA,kCAAOC,EAAqBA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useXProps.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useXProps.test.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/IsolatedDevCenterAppContainer/effects/__tests__/useXProps.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"useXProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/IsolatedDevCenterAppContainer/effects/useXProps.ts"],"names":[],"mappings":"AAiBA,wBAAgB,SAAS;;cAUxB"}
1
+ {"version":3,"file":"useXProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/IsolatedDevCenterAppContainer/effects/useXProps.ts"],"names":[],"mappings":"AAiBA,wBAAgB,SAAS;;cAkBxB"}
@@ -1,2 +1,2 @@
1
- import r from"@babel/runtime/helpers/slicedToArray";import{useState as n,useEffect as o}from"react";var t=function(n){return n?Object.fromEntries(Object.entries(n).map((function(n){var o=r(n,2),t=o[0],e=o[1];return[t,"function"==typeof e?function(){for(var r,n,o=arguments.length,e=new Array(o),i=0;i<o;i++)e[i]=arguments[i];return null===(r=window.xprops)||void 0===r||null===(n=r[t])||void 0===n?void 0:n.call.apply(n,[r].concat(e))}:e]}))):n};function e(){var e=n((function(){return t(window.xprops)})),i=r(e,2),u=i[0],c=i[1];return o((function(){window.xpropsOnProps=function(r){c(t(r))}}),[]),u}export{e as useXProps};
1
+ import r from"@babel/runtime/helpers/slicedToArray";import{useRef as n,useState as o,useEffect as t}from"react";var i=function(n){return n?Object.fromEntries(Object.entries(n).map((function(n){var o=r(n,2),t=o[0],i=o[1];return[t,"function"==typeof i?function(){for(var r,n,o=arguments.length,i=new Array(o),e=0;e<o;e++)i[e]=arguments[e];return null===(r=window.xprops)||void 0===r||null===(n=r[t])||void 0===n?void 0:n.call.apply(n,[r].concat(i))}:i]}))):n};function e(){var e=n(window.xprops),p=o((function(){return i(window.xprops)})),u=r(p,2),c=u[0],a=u[1];return t((function(){var r=function(r){e.current=r,a(i(r))};window.xpropsOnProps=r,e.current!==window.xprops&&r(window.xprops)}),[]),c}export{e as useXProps};
2
2
  //# sourceMappingURL=useXProps.js.map
@@ -231,7 +231,7 @@ const validateDsn = (dsn) => {
231
231
 
232
232
  const MCP_SERVER_VERSION = '1.4.0';
233
233
 
234
- var version = "3.69.0-7";
234
+ var version = "3.69.0-9";
235
235
 
236
236
  const CORVA_UI_VERSION = version;
237
237
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.69.0-7",
3
+ "version": "3.69.0-9",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "keywords": [