@corva/ui 0.67.0-1 → 0.67.0-2

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
- "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/regenerator"),t=require("jsona"),n=require("../constants/segment.js"),a=require("../clients/jsonApi/index.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=s(e),i=s(r),o=s(t),l=function(e){var r;return null===(r=e.find((function(e){return"Wellhub"===e.name&&"settings"===e.icon})))||void 0===r?void 0:r.slug};function c(){return c=u.default(i.default.mark((function e(){var r,t,s,u,c,d=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=d.length>0&&void 0!==d[0]?d[0]:[],t=l(r)){e.next=15;break}return s=new o.default,e.prev=4,e.next=7,a.getDashboards({layout:"tabs",segment:n.SEGMENTS.DRILLING,type:"asset_dashboard",visibility:"visible"});case 7:u=e.sent,c=s.deserialize(u),t=l(c),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:return e.abrupt("return",t);case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),c.apply(this,arguments)}module.exports=function(){return c.apply(this,arguments)};
1
+ "use strict";var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/regenerator"),t=require("jsona"),n=require("../constants/segment.js"),a=require("../clients/jsonApi/index.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=u(e),i=u(r),o=u(t),l=function(e){var r;return null===(r=e.find((function(e){return"tabs"===e.layout})))||void 0===r?void 0:r.slug};function c(){return c=s.default(i.default.mark((function e(){var r,t,u,s,c,d=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=d.length>0&&void 0!==d[0]?d[0]:[],t=l(r)){e.next=15;break}return u=new o.default,e.prev=4,e.next=7,a.getDashboards({layout:"tabs",segment:n.SEGMENTS.DRILLING,type:"asset_dashboard",visibility:"visible"});case 7:s=e.sent,c=u.deserialize(s),t=l(c),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:return e.abrupt("return",t);case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),c.apply(this,arguments)}module.exports=function(){return c.apply(this,arguments)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.67.0-1",
3
+ "version": "0.67.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import t from"jsona";import{SEGMENTS as n}from"../constants/segment.js";import{getDashboards as i}from"../clients/jsonApi/index.js";var o=function(e){var r;return null===(r=e.find((function(e){return"Wellhub"===e.name&&"settings"===e.icon})))||void 0===r?void 0:r.slug};function s(){return a.apply(this,arguments)}function a(){return a=e(r.mark((function e(){var s,a,u,c,l,p=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=p.length>0&&void 0!==p[0]?p[0]:[],a=o(s)){e.next=15;break}return u=new t,e.prev=4,e.next=7,i({layout:"tabs",segment:n.DRILLING,type:"asset_dashboard",visibility:"visible"});case 7:c=e.sent,l=u.deserialize(c),a=o(l),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:return e.abrupt("return",a);case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),a.apply(this,arguments)}export{s as default};
1
+ import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import t from"jsona";import{SEGMENTS as n}from"../constants/segment.js";import{getDashboards as a}from"../clients/jsonApi/index.js";var o=function(e){var r;return null===(r=e.find((function(e){return"tabs"===e.layout})))||void 0===r?void 0:r.slug};function s(){return i.apply(this,arguments)}function i(){return i=e(r.mark((function e(){var s,i,u,c,l,p=arguments;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=p.length>0&&void 0!==p[0]?p[0]:[],i=o(s)){e.next=15;break}return u=new t,e.prev=4,e.next=7,a({layout:"tabs",segment:n.DRILLING,type:"asset_dashboard",visibility:"visible"});case 7:c=e.sent,l=u.deserialize(c),i=o(l),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:return e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),i.apply(this,arguments)}export{s as default};