@corva/ui 0.23.0-2 → 0.23.0-6

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.
Files changed (34) hide show
  1. package/CLI/components/App/App.js +1 -1
  2. package/CLI/hocs/withAppDataProviderHOC.js +1 -1
  3. package/CLI/hocs/withReactRouterHOC.js +1 -1
  4. package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
  5. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  6. package/components/BICOffsetPickerDialog/index.js +1 -1
  7. package/components/Breadcrumbs/index.js +1 -1
  8. package/components/CollapsableSidebar.js +1 -1
  9. package/components/DevCenter/AppHeader/AppHeader.js +1 -1
  10. package/components/DevCenter/AppHeader/PadMode.js +1 -1
  11. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  12. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  13. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  14. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  15. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  16. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  17. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  18. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  19. package/components/FilesLoader/FilesLoader.js +1 -0
  20. package/components/FilesLoader/constants.js +1 -0
  21. package/components/FilesLoader/effects/useUploadingFile.js +1 -0
  22. package/components/FilesLoader/partials/FileIcon/FileIcon.js +1 -0
  23. package/components/FilesLoader/partials/UploadingFileState/UploadingFileState.js +1 -0
  24. package/components/Notifications/NotificationsContainer.js +1 -1
  25. package/components/PadModeSelect/PadModeSelect.js +1 -1
  26. package/components/SwitchControl/index.js +1 -1
  27. package/components/index.js +1 -1
  28. package/config/theme/accordionOverrides.js +1 -1
  29. package/package.json +1 -1
  30. package/utils/completion.js +1 -1
  31. package/utils/index.js +1 -1
  32. package/utils/intercom.js +0 -1
  33. package/utils/mixpanel.js +0 -1
  34. package/utils/wootric.js +0 -1
@@ -1 +1 @@
1
- import{get as t,set as a}from"lodash";import{COMPLETION_APPTYPE_MODES_DICT as e,COMPLETION_APP_TYPES as r}from"../constants/completion.js";var i=function(a,e){return a?"pad--".concat(t(a,["attributes","current_pad_id"])):e?"well--".concat(e.id):"common"},s=function(t,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.fracMultiWellApp,s={};return t?s={mode:e[i][0]}:a&&(s={mode:"custom",selectedAssets:[a.id]}),s},n=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce((function(e,i){var s=t(i,"relationships.app_streams.data",[]).find((function(t){return"frac"===t.attributes.source_type&&(r||"active"===t.attributes.status)}));return!s||e&&e.attributes.last_frac_at>s.attributes.last_active_at?e:a(i,"attributes.last_frac_at",s.attributes.last_active_at)}),null)},u=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce((function(e,i){var s=t(i,"relationships.app_streams.data",[]).find((function(t){return"wireline"===t.attributes.source_type&&(r||"active"===t.attributes.status)}));return!s||e&&e.attributes.last_wireline_at>s.attributes.last_active_at?e:a(i,"attributes.last_wireline_at",s.attributes.last_active_at)}),null)},c=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce((function(e,i){var s=t(i,"relationships.app_streams.data",[]).find((function(t){return"pumpdown"===t.attributes.source_type&&(r||"active"===t.attributes.status)}));return!s||e&&e.attributes.last_pumpdown_at>s.attributes.last_active_at?e:a(i,"attributes.last_pumpdown_at",s.attributes.last_active_at)}),null)};export{i as getAssetKey,s as getDefaultPadModeSetting,n as resolveActiveFracAsset,c as resolveActivePumpdownAsset,u as resolveActiveWirelineAsset};
1
+ import{set as t}from"lodash";import{COMPLETION_APPTYPE_MODES_DICT as a,COMPLETION_APP_TYPES as e}from"../constants/completion.js";var n=function(t,a){return t?"pad--".concat(t.current_pad_id):a?"well--".concat(a.id):"common"},r=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.fracMultiWellApp,c={};return t?c={mode:a[r][0]}:n&&(c={mode:"custom",selectedAssets:[n.id]}),c},c=function(a){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.reduce((function(a,n){var r=(n.app_streams||[]).find((function(t){return"frac"===t.source_type&&(e||"active"===t.status)}));return!r||a&&a.last_frac_at>r.last_active_at?a:t(n,"last_frac_at",r.last_active_at)}),null)},i=function(a){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.reduce((function(a,n){var r=(n.app_streams||[]).find((function(t){return"wireline"===t.source_type&&(e||"active"===t.status)}));return!r||a&&a.last_wireline_at>r.last_active_at?a:t(n,"last_wireline_at",r.last_active_at)}),null)},u=function(a){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.reduce((function(a,n){var r=(n.app_streams||[]).find((function(t){return"pumpdown"===t.source_type&&(e||"active"===t.status)}));return!r||a&&a.last_pumpdown_at>r.last_active_at?a:t(n,"last_pumpdown_at",r.last_active_at)}),null)};export{n as getAssetKey,r as getDefaultPadModeSetting,c as resolveActiveFracAsset,u as resolveActivePumpdownAsset,i as resolveActiveWirelineAsset};
package/utils/index.js CHANGED
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";export{default as AccuracyUtils}from"./AccuracyUtils.js";import{convertArray as t,convertValue as o,getAllUnitTypes as e,getDefaultImperialUnit as s,getDefaultUnits as i,getUnitDescription as a,getUnitDisplay as p,getUnitPlural as n,getUnitPreference as m,getUnitsByType as f,getUnitSingular as c,getUnitSystem as l,updateUserUnits as j,getUserUnits as x,subscribeForUserUnitsUpdates as u,convertImmutables as g,convertImmutablesByBatch as y,getUniqueUnitsByType as U}from"./convert.js";import*as b from"./convert.js";export{b as convert};import*as v from"./DrillstringUtils.js";export{v as drillstringUtils};import*as d from"./FluidCheckUtils.js";export{d as fluidCheckUtils};import*as O from"./chartSeries.js";export{O as chartSeries};import*as h from"./metrics/index.js";export{h as metricsUtils};import*as P from"./main.js";export{P as main};import*as w from"./sqlParser.js";export{w as sqlParser};import*as D from"./completion.js";export{D as completion};import*as S from"./mapUnits.js";export{S as mapUnits};import*as A from"./time.js";export{A as time};import*as C from"./components.js";import*as N from"./mapbox.js";import*as T from"./torqueAndHookloadUtils.js";export{T as torqueAndHookloadUtils};import*as k from"./StageDesignVActualUtils.js";export{k as StageDesignVActualUtils};import*as B from"./reports.js";export{B as reports};import*as E from"./mixpanel.js";export{E as mixpanel};import*as I from"./ga.js";export{I as ga};import*as K from"./nativeMessages.js";export{K as nativeMessages};import*as q from"./goals.js";export{q as goals};import*as F from"./notifications.js";export{F as notifications};import*as J from"./wootric.js";export{J as wootric};import*as V from"./intercom.js";export{V as intercom};import*as H from"./permissions.js";export{H as permissions};import*as M from"./alerts.js";export{M as alerts};import*as W from"./lasParser.js";export{W as lasParser};import*as z from"./audio.js";export{z as audio};import*as G from"./loadable.js";export{G as loadable};import*as L from"./rollbar.js";export{L as rollbar};import*as Q from"./devcenter.js";export{Q as devcenter};import*as R from"./mobileDetect.js";export{R as mobileDetect};import*as X from"./drillstring/index.js";export{X as drillstring};import*as Y from"./casing/index.js";export{Y as casing};import*as Z from"./csvExport.js";export{Z as csvExport};import*as $ from"./formatting.js";export{$ as formatting};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";function _(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var rr={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function tr(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?_(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),rr)}var or=t,er=o,sr=e,ir=s,ar=i,pr=a,nr=p,mr=n,fr=m,cr=f,lr=c,jr=l,xr=j,ur=x,gr=u,yr=g,Ur=y,br=U,vr=tr(N),dr=tr(C);export{dr as components,or as convertArray,yr as convertImmutables,Ur as convertImmutablesByBatch,er as convertValue,sr as getAllUnitTypes,ir as getDefaultImperialUnit,ar as getDefaultUnits,br as getUniqueUnitsByType,pr as getUnitDescription,nr as getUnitDisplay,mr as getUnitPlural,fr as getUnitPreference,lr as getUnitSingular,jr as getUnitSystem,cr as getUnitsByType,ur as getUserUnits,vr as mapbox,gr as subscribeForUserUnitsUpdates,xr as updateUserUnits};
1
+ import r from"@babel/runtime/helpers/defineProperty";export{default as AccuracyUtils}from"./AccuracyUtils.js";import{convertArray as t,convertValue as o,getAllUnitTypes as e,getDefaultImperialUnit as s,getDefaultUnits as i,getUnitDescription as a,getUnitDisplay as n,getUnitPlural as p,getUnitPreference as m,getUnitsByType as f,getUnitSingular as c,getUnitSystem as l,updateUserUnits as j,getUserUnits as u,subscribeForUserUnitsUpdates as x,convertImmutables as g,convertImmutablesByBatch as y,getUniqueUnitsByType as U}from"./convert.js";import*as b from"./convert.js";export{b as convert};import*as v from"./DrillstringUtils.js";export{v as drillstringUtils};import*as d from"./FluidCheckUtils.js";export{d as fluidCheckUtils};import*as O from"./chartSeries.js";export{O as chartSeries};import*as h from"./metrics/index.js";export{h as metricsUtils};import*as P from"./main.js";export{P as main};import*as w from"./sqlParser.js";export{w as sqlParser};import*as D from"./completion.js";export{D as completion};import*as S from"./mapUnits.js";export{S as mapUnits};import*as A from"./time.js";export{A as time};import*as C from"./components.js";import*as N from"./mapbox.js";import*as T from"./torqueAndHookloadUtils.js";export{T as torqueAndHookloadUtils};import*as k from"./StageDesignVActualUtils.js";export{k as StageDesignVActualUtils};import*as B from"./reports.js";export{B as reports};import*as E from"./ga.js";export{E as ga};import*as I from"./nativeMessages.js";export{I as nativeMessages};import*as K from"./goals.js";export{K as goals};import*as q from"./notifications.js";export{q as notifications};import*as F from"./permissions.js";export{F as permissions};import*as J from"./alerts.js";export{J as alerts};import*as V from"./lasParser.js";export{V as lasParser};import*as H from"./audio.js";export{H as audio};import*as M from"./loadable.js";export{M as loadable};import*as W from"./rollbar.js";export{W as rollbar};import*as z from"./devcenter.js";export{z as devcenter};import*as G from"./mobileDetect.js";export{G as mobileDetect};import*as L from"./drillstring/index.js";export{L as drillstring};import*as Q from"./casing/index.js";export{Q as casing};import*as R from"./csvExport.js";export{R as csvExport};import*as X from"./formatting.js";export{X as formatting};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";function Y(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var Z={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function $(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?Y(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Y(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),Z)}var _=t,rr=o,tr=e,or=s,er=i,sr=a,ir=n,ar=p,nr=m,pr=f,mr=c,fr=l,cr=j,lr=u,jr=x,ur=g,xr=y,gr=U,yr=$(N),Ur=$(C);export{Ur as components,_ as convertArray,ur as convertImmutables,xr as convertImmutablesByBatch,rr as convertValue,tr as getAllUnitTypes,or as getDefaultImperialUnit,er as getDefaultUnits,gr as getUniqueUnitsByType,sr as getUnitDescription,ir as getUnitDisplay,ar as getUnitPlural,nr as getUnitPreference,mr as getUnitSingular,fr as getUnitSystem,pr as getUnitsByType,lr as getUserUnits,yr as mapbox,jr as subscribeForUserUnitsUpdates,cr as updateUserUnits};
package/utils/intercom.js DELETED
@@ -1 +0,0 @@
1
- import t from"lodash/get";var e=process.env.REACT_APP_ENVIRONMENT;function n(){window.Intercom("show")}function o(){window.Intercom("shutdown")}function c(n){var o=n.id,c="beta"!==e&&"production"!==e?"".concat(e,"_").concat(o):o;window.Intercom("boot",{app_id:"g23togek",email:n.email,company:t(n,["company","name"]),name:"".concat(n.first_name," ").concat(n.last_name),created_at:n.created_at,user_id:c,hide_default_launcher:!t(n,["preference","show_intercom_icon"])})}function a(t){window.Intercom&&window.Intercom("update",{hide_default_launcher:!t})}function i(){!function(){var t=window,e=t.Intercom;if("function"==typeof e)e("reattach_activator"),e("update",intercomSettings);else{var n=function(){var t=o.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://widget.intercom.io/widget/".concat("g23togek");var e=o.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)},o=document,c=function t(){t.c(arguments)};c.q=[],c.c=function(t){c.q.push(t)},t.Intercom=c,t.attachEvent?t.attachEvent("onload",n):t.addEventListener("load",n,!1)}}()}export{a as displayIntercomIcon,i as launchIntercom,n as openIntercom,c as startIntercomSession,o as stopIntercomSession};
package/utils/mixpanel.js DELETED
@@ -1 +0,0 @@
1
- import{isReportsPage as r}from"./reports.js";var o=("production"===process.env.REACT_APP_ENVIRONMENT||"beta"===process.env.REACT_APP_ENVIRONMENT)&&!r;export{o as isLoggingToMixpanel};
package/utils/wootric.js DELETED
@@ -1 +0,0 @@
1
- function t(){window.wootric("run")}function o(o){var e,n;"production"!==process.env.REACT_APP_ENVIRONMENT&&"beta"!==process.env.REACT_APP_ENVIRONMENT||(!function(t){var o=t.email,e=Math.trunc(Date.parse(t.created_at)/1e3);"qa"===process.env.REACT_APP_ENVIRONMENT&&(window.wootric_survey_immediately=!0),window.wootricSettings={email:o,created_at:e,account_token:"NPS-078f9110"}}(o),e=t,(n=document.createElement("script")).setAttribute("src","https://cdn.wootric.com/wootric-sdk.js"),n.onload=e,document.body.appendChild(n))}function e(){var t="#wootric-modal #wootric-close { background: #FF0000 !important; color: white !important; width: 90px !important; } #wootric-modal #wootric-close:hover { background-color: #FF0000 !important; } #close-icon { stroke: #ffffff !important; } #wootric-dismiss { display: inline-block !important; font-weight: 320 !important; font-size: 16px !important; margin-left: -4px !important; }",o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(o)}var n={launchWootric:o,appendWootricStyle:e};export default n;export{e as appendWootricStyle,o as launchWootric};