@corva/dc-platform-shared 0.1.7-dc-4514 → 0.1.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.
- package/CLI/hocs/withDevCenterRouterHOC.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
- package/CLI/screens/LoginScreen/components/AuthStep.js +1 -1
- package/cjs/devcenter/webpack/constants.js +1 -1
- package/cjs/devcenter/webpack/webpack.config.dev.js +1 -1
- package/components/AppsGridDragHandle/AppsGridDragHandle.scss.js +1 -1
- package/package.json +4 -4
- package/utils/recaptcha.js +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useMemo as t}from"react";import{createDevCenterRouter as o}from"../../utils/devcenter.js";import{jsx as n}from"react/jsx-runtime";var c=["router"];function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useMemo as t}from"react";import{createDevCenterRouter as o}from"../../utils/devcenter.js";import"../../utils/recaptcha.js";import{jsx as n}from"react/jsx-runtime";var c=["router"];function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var u=function(r){return function(i){var u=i.router,f=e(i,c),a=t((function(){return o(u)}),[u.location]);return n(r,p(p({},f),{},{devCenterRouter:a}))}};export{u as default,u as withDevCenterRouterHOC};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useState as r}from"react";import{WidthProvider as i,Responsive as n}from"react-grid-layout";import{pick as p}from"lodash";import{isPhoneDetected as s,isNativeDetected as a,isMobileDetected as m}from"@corva/ui/utils/mobileDetect";import{getAppSize as c}from"@corva/ui/utils/apps";import{GRID_BREAKPOINTS as l,GRID_COLUMN_SIZES as d,GRID_ROW_HEIGHT as g,NON_DRAGGABLE_ELEMENT_SELECTOR as u}from"@corva/ui/constants/apps";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import{AppsGridDragHandle as f}from"../../../components/AppsGridDragHandle/AppsGridDragHandle.js";import b from"../../../components/GridLockButton/index.js";import{isAppMaximized as h}from"../../../utils/devcenter.js";import{getLocalAppData as j,getAppCoordinates as y,updateLocalAppData as O}from"../utils.js";import"./withGridLayoutHOC.global.css.js";import v from"./withGridLayoutHOC.css.js";import{jsxs as D,jsx as L}from"react/jsx-runtime";var w=["width"];function P(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))}))}return e}var H=".".concat(f.GRID_LAYOUT_DRAG_HANDLE_CLASS),x=i(n),C=function(o){return i((function(i){var n,P=i.width,C=t(i,w),A=C.manifest.application.key,G=r(null!==(n=j(A).isDraggable)&&void 0!==n&&n),R=e(G,2),E=R[0],k=R[1],z=a||m,F=h(C.devCenterRouter.location.query),M=r(y(C.manifest)),W=e(M,2),_=W[0],N=W[1],T=c({coordinates:_,dashboardWidth:P,isMaximized:F}),B=T.pixelHeight,q=T.pixelWidth,I=function(o){var t=e(o,1)[0],r=p(t,["x","y","w","h"]);N(r),O(A,{coordinates:r})};return D("div",{children:[L(x,{breakpoints:s?l.phone:l.general,cols:d,rowHeight:g,measureBeforeMount:!0,onResizeStop:I,onDragStop:I,isDraggable:!z&&E,isResizable:!z&&E,draggableCancel:u,useCSSTransforms:!1,draggableHandle:H,children:L("div",{"data-grid":_,children:D("div",{className:F?v.appMaximized:"",children:[L(o,S(S({},C),{},{coordinates:S(S({},_),{},{pixelHeight:B,pixelWidth:q}),layoutEnvironment:{type:"general",pdfReportMode:!1}})),!z&&E&&L(f,{})]})},"with-grid-layout-hoc")}),L(b,{isDraggableAndResizable:E,onClick:function(){k(!E),O(A,{isDraggable:!E})},pageName:"DashboardPo"})]})}))};export{C as default};
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useState as r}from"react";import{WidthProvider as i,Responsive as n}from"react-grid-layout";import{pick as p}from"lodash";import{isPhoneDetected as s,isNativeDetected as a,isMobileDetected as m}from"@corva/ui/utils/mobileDetect";import{getAppSize as c}from"@corva/ui/utils/apps";import{GRID_BREAKPOINTS as l,GRID_COLUMN_SIZES as d,GRID_ROW_HEIGHT as g,NON_DRAGGABLE_ELEMENT_SELECTOR as u}from"@corva/ui/constants/apps";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import{AppsGridDragHandle as f}from"../../../components/AppsGridDragHandle/AppsGridDragHandle.js";import b from"../../../components/GridLockButton/index.js";import{isAppMaximized as h}from"../../../utils/devcenter.js";import"../../../utils/recaptcha.js";import{getLocalAppData as j,getAppCoordinates as y,updateLocalAppData as O}from"../utils.js";import"./withGridLayoutHOC.global.css.js";import v from"./withGridLayoutHOC.css.js";import{jsxs as D,jsx as L}from"react/jsx-runtime";var w=["width"];function P(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))}))}return e}var H=".".concat(f.GRID_LAYOUT_DRAG_HANDLE_CLASS),x=i(n),C=function(o){return i((function(i){var n,P=i.width,C=t(i,w),A=C.manifest.application.key,G=r(null!==(n=j(A).isDraggable)&&void 0!==n&&n),R=e(G,2),E=R[0],k=R[1],z=a||m,F=h(C.devCenterRouter.location.query),M=r(y(C.manifest)),W=e(M,2),_=W[0],N=W[1],T=c({coordinates:_,dashboardWidth:P,isMaximized:F}),B=T.pixelHeight,q=T.pixelWidth,I=function(o){var t=e(o,1)[0],r=p(t,["x","y","w","h"]);N(r),O(A,{coordinates:r})};return D("div",{children:[L(x,{breakpoints:s?l.phone:l.general,cols:d,rowHeight:g,measureBeforeMount:!0,onResizeStop:I,onDragStop:I,isDraggable:!z&&E,isResizable:!z&&E,draggableCancel:u,useCSSTransforms:!1,draggableHandle:H,children:L("div",{"data-grid":_,children:D("div",{className:F?v.appMaximized:"",children:[L(o,S(S({},C),{},{coordinates:S(S({},_),{},{pixelHeight:B,pixelWidth:q}),layoutEnvironment:{type:"general",pdfReportMode:!1}})),!z&&E&&L(f,{})]})},"with-grid-layout-hoc")}),L(b,{isDraggableAndResizable:E,onClick:function(){k(!E),O(A,{isDraggable:!E})},pageName:"DashboardPo"})]})}))};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from"@babel/runtime/helpers/asyncToGenerator";import o from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/regenerator";import{memo as t,useState as e,useEffect as i}from"react";import a from"prop-types";import{styled as c,Grid as m,Button as p}from"@material-ui/core";import{showErrorNotification as s}from"@corva/ui/utils";import{initializeRecaptcha as u,GOOGLE_RECAPTCHA_KEY as l}from"../../../../utils/recaptcha.js";import"../../../../components/Login/components/Login.js";import d from"../../../../components/Login/components/PasswordField.js";import f from"../../../../components/Login/components/Chip.js";import g from"../../../../components/Login/components/StepFooter.js";import h from"../../../../components/Login/components/StepContent.js";import v from"../../../../components/Login/components/StepHeader.js";import b from"../../../../components/Login/components/Step.js";import w from"../../../../components/Login/components/OrDivider.js";import j from"../../../../components/Login/components/HiddenEmailField.js";import"../../../../components/Login/components/EmailField.js";import{useAuth as L}from"../../../context/auth.js";import{NEED_HELP_EXTERNAL_LINK as y}from"../../../constants/index.js";import k from"./SSOButton.js";import{jsxs as S,jsx as x}from"react/jsx-runtime";var B=c(m)((function(n){var o=n.theme;return{marginTop:2*o.spacing(1),marginBottom:2*o.spacing(1),"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0}}})),C=c(p)((function(n){var o=n.theme;return{width:71,padding:o.spacing(),whiteSpace:"nowrap",backgroundColor:o.status.loginButton,"&:hover":{backgroundColor:"".concat(o.status.loginButtonHovered)}}}));function F(t){var a=t.email,c=t.schemas,p=t.onBack,F=t.onFinishLogin,T=L(),q=e(""),H=o(q,2),R=H[0],E=H[1],I=e(!1),O=o(I,2),P=O[0],z=O[1],A=P?T.error:null;i((function(){u()}),[]);var D,_=(D=n(r.mark((function n(o){return r.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o.preventDefault(),window.grecaptcha){n.next=3;break}return n.abrupt("return",s("Problem with initializing recaptcha"));case 3:return n.abrupt("return",window.grecaptcha.enterprise.ready((function(){try{window.grecaptcha.enterprise.execute(l,{action:"login"}).then((function(n){T.login({email:a,password:R,recaptcha_token:n},F).then((function(){z(!0)}))})).catch((function(n){return console.error(n)}))}catch(n){console.error(n),s(n.message)}})));case 4:case"end":return n.stop()}}),n)}))),function(n){return D.apply(this,arguments)}),G=c.find((function(n){return"password"===n.provider})),M=c.filter((function(n){return"password"!==n.provider}));return S(b,{children:[x(v,{children:"Sign In"}),x(h,{children:S(m,{container:!0,direction:"column",children:[x(f,{"data-not-migrated-MuiChip":!0,label:a,onClick:p}),M.map((function(n){return x(B,{item:!0,children:x(k,{title:n.title,provider:n.provider,connection:n.connection,auth0:T.auth0})},n.title)})),G&&M.length>0&&x(m,{item:!0,children:x(w,{})}),G&&x(B,{item:!0,children:S("form",{id:"sign-in-form",onSubmit:_,children:[x(j,{email:a}),x(d,{value:R,onChange:function(n){E(n.target.value),z(!1)},disabled:T.loading,error:A})]})})]})}),x(g,{needHelpExternalLink:y,children:G&&x(C,{"data-testid":"".concat("AuthorizationPo","_signInButton"),form:"sign-in-form",type:"submit",variant:"contained",color:"primary",disabled:!R||T.loading||!!A,onClick:_,children:"Sign In"})})]})}F.propTypes={email:a.string.isRequired,schemas:a.arrayOf(a.shape({})).isRequired,onBack:a.func.isRequired,onFinishLogin:a.func.isRequired};var T=t(F);export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require('./../../../ext-cjs/@babel/runtime/helpers/defineProperty.js');function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function a(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?r(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var i={qa:"qa",staging:"staging",production:"production"},o={REACT_APP_AUTH0_REDIRECT_URI:"/login/oauth-callback",REACT_APP_AUTH0_DOMAIN:"corva.auth0.com",REACT_APP_AUTH0_CLIENT_ID:"L1B0xGD5AuXwuTDFdFA9czDTM7Vvw464"},c=(e(t={},i.qa,a(a({},o),{},{REACT_APP_API_URL:"https://api.qa.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.qa.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.qa.corva.ai/v1"})),e(t,i.staging,a(a({},o),{},{REACT_APP_API_URL:"https://api.staging.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.staging.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.staging.corva.ai/v1"})),e(t,i.production,a(a({},o),{},{REACT_APP_API_URL:"https://api.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.corva.ai/v1"})),t);exports.CORVA_API_ENVS=i,exports.CORVA_API_ENV_VARIABLES=c,exports.CORVA_GLOBAL_DEPENDENCIES={"@corva/ui":"","@material-ui/core":"4.11.2","@material-ui/icons":"4.9.1","@material-ui/lab":"4.0.0-alpha.57","@material-ui/pickers":"3.2.10",classnames:"2.2.6","corva-convert-units":"1.10.17",highcharts:"8.1.2","highcharts-react-official":"2.2.2",html2canvas:"1.0.0-alpha.12",jsona:"1.5.1",lodash:"^4.17.4","mapbox.js":"3.2.1",
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require('./../../../ext-cjs/@babel/runtime/helpers/defineProperty.js');function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function a(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?r(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var i={qa:"qa",staging:"staging",production:"production"},o={REACT_APP_AUTH0_REDIRECT_URI:"/login/oauth-callback",REACT_APP_AUTH0_DOMAIN:"corva.auth0.com",REACT_APP_AUTH0_CLIENT_ID:"L1B0xGD5AuXwuTDFdFA9czDTM7Vvw464"},c=(e(t={},i.qa,a(a({},o),{},{REACT_APP_API_URL:"https://api.qa.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.qa.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.qa.corva.ai/v1"})),e(t,i.staging,a(a({},o),{},{REACT_APP_API_URL:"https://api.staging.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.staging.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.staging.corva.ai/v1"})),e(t,i.production,a(a({},o),{},{REACT_APP_API_URL:"https://api.corva.ai",REACT_APP_SUBSCRIPTIONS_URL:"https://subscriptions.corva.ai",REACT_APP_AUTH0_AUDIENCE:"https://api.corva.ai/v1"})),t);exports.CORVA_API_ENVS=i,exports.CORVA_API_ENV_VARIABLES=c,exports.CORVA_GLOBAL_DEPENDENCIES={"@corva/ui":"","@material-ui/core":"4.11.2","@material-ui/icons":"4.9.1","@material-ui/lab":"4.0.0-alpha.57","@material-ui/pickers":"3.2.10",classnames:"2.2.6","corva-convert-units":"1.10.17",highcharts:"8.1.2","highcharts-react-official":"2.2.2",html2canvas:"1.0.0-alpha.12",jsona:"1.5.1",lodash:"^4.17.4","mapbox.js":"3.2.1","moment-timezone":"0.5.23",react:"17.0.1","react-dom":"17.0.1","react-sortable-hoc":"0.6.8","react-sizeme":"2.5.2","react-redux":"5.1.1","react-virtualized":"9.21.2",redux:"3.7.2","redux-thunk":"2.3.0",reselect:"2.5.4","prop-types":"^15.6.1",uuid:"3.4.0"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../ext-cjs/@babel/runtime/helpers/defineProperty.js'),r=require('./../../../ext-cjs/@babel/runtime/helpers/toConsumableArray.js'),n=require("./webpack.config.common.js"),o=require("./constants.js"),t=require("./plugins/checkCorvaUIVersion.js"),s=require("./utils/middlewares.js");function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,o)}return n}function c(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?i(Object(o),!0).forEach((function(n){e(r,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var l=require("@pmmmwh/react-refresh-webpack-plugin"),a=require("webpack-merge").merge,p=require("path"),u=require("webpack"),d=require("clean-webpack-plugin").CleanWebpackPlugin,m=require("copy-webpack-plugin"),v=require("html-webpack-plugin"),_=require("chalk");require("dotenv").config({path:p.resolve(n.APP_DIRECTORY,"./.env")});function f(e,n,o){var t="@corva/ui",
|
|
1
|
+
"use strict";var e=require('./../../../ext-cjs/@babel/runtime/helpers/defineProperty.js'),r=require('./../../../ext-cjs/@babel/runtime/helpers/toConsumableArray.js'),n=require("./webpack.config.common.js"),o=require("./constants.js"),t=require("./plugins/checkCorvaUIVersion.js"),s=require("./utils/middlewares.js");function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,o)}return n}function c(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?i(Object(o),!0).forEach((function(n){e(r,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var l=require("@pmmmwh/react-refresh-webpack-plugin"),a=require("webpack-merge").merge,p=require("path"),u=require("webpack"),d=require("clean-webpack-plugin").CleanWebpackPlugin,m=require("copy-webpack-plugin"),v=require("html-webpack-plugin"),_=require("chalk");require("dotenv").config({path:p.resolve(n.APP_DIRECTORY,"./.env")});function f(e,n,o){var t=p.join("@corva","dc-platform-shared"),s="@corva/ui",i=new RegExp("(^".concat(s,"$|^").concat(s,"/)([^]+)?"));if(!e.includes(t)){var c=i.exec(n);if(null!==c){var l=c[2]||"";return o(null,["window",s].concat(r(l.split("/").filter(Boolean))))}}return o()}module.exports=function(e,r){var i,P=process.env.HOST||r.host||"localhost",b=process.env.PORT||r.port||8080;return a(n.default(e,r),{mode:"development",devtool:"inline-source-map",devServer:{contentBase:"./dist",public:"".concat(P,":").concat(b),port:b,before:function(e){return s.onBeforeSetUpMiddleware(e,{APP_DIRECTORY:n.APP_DIRECTORY})},hot:!0,open:!1},entry:{devApp:p.resolve(__dirname,"DevServerEntryPoint.js"),isolatedApp:p.resolve(__dirname,"DevServerIsolatedAppEntryPoint.js")},output:{filename:"[name].js"},plugins:[new d,new m({patterns:[{from:p.resolve(__dirname,"public")},{from:p.resolve(process.cwd(),"node_modules","@corva/ui/assets"),to:"static/media",noErrorOnMissing:!0},{from:p.resolve(process.cwd(),"node_modules","@corva/dc-platform-shared/assets"),to:"static/media",noErrorOnMissing:!0}]}),new v({filename:"index.html",inject:!1,template:p.resolve(__dirname,"public","index.html")}),new v({filename:"DevCenterIsolatedAppPage.html",inject:!1,template:p.resolve(__dirname,"public","DevCenterIsolatedAppPage.html")}),new u.EnvironmentPlugin(c(c({},process.env),{},{DEV_CENTER_APP_PATH:process.cwd(),REACT_APP_ENVIRONMENT:process.env.REACT_APP_ENVIRONMENT||"development"},(i=process.env.CORVA_API_ENV||o.CORVA_API_ENVS.production,i in o.CORVA_API_ENVS?o.CORVA_API_ENV_VARIABLES[i]:(console.log(_.red("CORVA_API_ENV should be one of [".concat(Object.keys(o.CORVA_API_ENVS).join(", "),"]"))),process.exit(1))))),t,new l,new u.HotModuleReplacementPlugin],externals:f,module:{rules:[{test:/\.(png|jpe?g|gif)$/i,use:[{loader:"file-loader"}]},{test:/\.svg$/,use:[{loader:"svg-url-loader",options:{limit:1e4}}]}]}})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from'./../../ext-esm/style-inject/dist/style-inject.es.js';var a={dragLine:"AppsGridDragHandle_dragLine__7wqiq",dragIcon:"AppsGridDragHandle_dragIcon__-GDHv",dragOverlay:"AppsGridDragHandle_dragOverlay__RiAt5",dragIconContainer:"AppsGridDragHandle_dragIconContainer__ATh0-"};r(":hover>.AppsGridDragHandle_dragLine__7wqiq{align-items:center;border:
|
|
1
|
+
import r from'./../../ext-esm/style-inject/dist/style-inject.es.js';var a={dragLine:"AppsGridDragHandle_dragLine__7wqiq",dragIcon:"AppsGridDragHandle_dragIcon__-GDHv",dragOverlay:"AppsGridDragHandle_dragOverlay__RiAt5",dragIconContainer:"AppsGridDragHandle_dragIconContainer__ATh0-"};r(":hover>.AppsGridDragHandle_dragLine__7wqiq{align-items:center;border:5px solid rgba(3,188,212,.32);cursor:pointer;display:flex;height:0;justify-content:center;margin-left:-2px;position:absolute;top:-6px;width:calc(100% + 4px);z-index:400}:hover>.AppsGridDragHandle_dragLine__7wqiq :active{cursor:move;cursor:grabbing}:hover>.AppsGridDragHandle_dragLine__7wqiq .AppsGridDragHandle_dragIcon__-GDHv{border-radius:30px;font-size:.75rem}:hover>.AppsGridDragHandle_dragLine__7wqiq:active{cursor:move;cursor:grabbing}.AppsGridDragHandle_dragLine__7wqiq,.AppsGridDragHandle_dragOverlay__RiAt5{display:none}.AppsGridDragHandle_dragLine__7wqiq:active+.AppsGridDragHandle_dragOverlay__RiAt5{display:block;height:100%;position:absolute;width:100%}.AppsGridDragHandle_dragLine__7wqiq :active{cursor:move;cursor:grabbing}.AppsGridDragHandle_dragIconContainer__ATh0-{align-items:center;background-color:var(--palette-primary-main);border-radius:30px;display:flex;height:24px;justify-content:center;width:24px}");export{a as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/dc-platform-shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "A library to share internal DC platform specific code",
|
|
5
5
|
"main": "./dist",
|
|
6
6
|
"module": "./src/index.js",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"jsona": "1.5.1",
|
|
96
96
|
"lodash": "4.17.20",
|
|
97
97
|
"mini-css-extract-plugin": "0.9.0",
|
|
98
|
-
"moment": "2.
|
|
98
|
+
"moment": "2.29.4",
|
|
99
99
|
"node-fetch": "^2.6.1",
|
|
100
100
|
"optimize-css-assets-webpack-plugin": "5.0.3",
|
|
101
101
|
"path": "0.12.7",
|
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
"babel-plugin-external-helpers": "^6.22.0",
|
|
140
140
|
"conventional-changelog-cli": "^2.1.0",
|
|
141
141
|
"cross-env": "^7.0.3",
|
|
142
|
+
"git-conventional-commits": "^1.1.0",
|
|
142
143
|
"identity-obj-proxy": "^3.0.0",
|
|
143
144
|
"lint-staged": "^10.5.4",
|
|
144
145
|
"postcss-url": "9.0.0",
|
|
@@ -153,8 +154,7 @@
|
|
|
153
154
|
"rollup-plugin-terser": "^7.0.2",
|
|
154
155
|
"rollup-plugin-visualizer": "^4.1.1",
|
|
155
156
|
"sass-loader": "10.1.1",
|
|
156
|
-
"standard-version": "^9.0.0"
|
|
157
|
-
"git-conventional-commits": "^1.1.0"
|
|
157
|
+
"standard-version": "^9.0.0"
|
|
158
158
|
},
|
|
159
159
|
"engines": {
|
|
160
160
|
"node": ">=16"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=(process.env.REACT_APP_API_URL||"").includes("api.corva.ai")?"6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4":"6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";function e(){var e=document.createElement("script");e.async=!0,e.src="https://www.google.com/recaptcha/enterprise.js?render=".concat(c),document.body.appendChild(e)}export{c as GOOGLE_RECAPTCHA_KEY,e as initializeRecaptcha};
|