@corva/dc-platform-shared 0.0.0-3c03fce → 0.0.0-3dbbfa2

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 (98) hide show
  1. package/CLI/components/App/App.js +1 -1
  2. package/CLI/components/App/components/AppBar/AppBar.js +1 -1
  3. package/CLI/constants/index.js +1 -1
  4. package/CLI/context/auth.js +1 -1
  5. package/CLI/hocs/effects/useProvideAuth/api.js +1 -1
  6. package/CLI/hocs/effects/useProvideAuth/constants.js +1 -1
  7. package/CLI/hocs/effects/useProvideAuth/useProvideAuth.js +1 -1
  8. package/CLI/hocs/utils.js +1 -1
  9. package/CLI/hocs/withAppDataProviderHOC.js +1 -1
  10. package/CLI/hocs/withCLIAppSettingsHOC.js +1 -1
  11. package/CLI/hocs/withCorvaMagicHOC.js +1 -1
  12. package/CLI/hocs/withDevCenterRouterHOC.js +1 -1
  13. package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
  14. package/CLI/hocs/withPDFLayoutHOC.js +1 -1
  15. package/CLI/hocs/withReactRouterHOC.js +1 -1
  16. package/CLI/screens/LoginScreen/LoginScreen.js +1 -1
  17. package/CLI/screens/LoginScreen/components/Auth.js +1 -1
  18. package/CLI/screens/LoginScreen/components/AuthStep.js +1 -1
  19. package/CLI/screens/LoginScreen/components/EmailStep.js +1 -1
  20. package/CLI/screens/LoginScreen/components/SSOButton.js +1 -1
  21. package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
  22. package/cjs/devcenter/webpack/DevServerEntryPoint.js +1 -1
  23. package/cjs/devcenter/webpack/DevServerIsolatedAppEntryPoint.js +1 -1
  24. package/cjs/devcenter/webpack/MapboxGlDevSetupEntryPoint.js +1 -0
  25. package/cjs/devcenter/webpack/constants.js +1 -1
  26. package/cjs/devcenter/webpack/createAdaptiveRoot.js +1 -1
  27. package/cjs/devcenter/webpack/plugins/checkCorvaUIVersion.js +11 -1
  28. package/cjs/devcenter/webpack/utils/middlewares.js +1 -1
  29. package/cjs/devcenter/webpack/utils/serializeDotEnv.js +1 -1
  30. package/cjs/devcenter/webpack/validators/dependencies.js +1 -1
  31. package/cjs/devcenter/webpack/validators/index.js +1 -1
  32. package/cjs/devcenter/webpack/webpack.config.common.js +1 -1
  33. package/cjs/devcenter/webpack/webpack.config.dev.js +1 -1
  34. package/cjs/devcenter/webpack/webpack.config.prod.js +1 -1
  35. package/clients/auth0/index.js +1 -1
  36. package/components/GridLockButton/index.js +1 -1
  37. package/components/Login/components/Chip.js +1 -1
  38. package/components/Login/components/EmailField.js +1 -1
  39. package/components/Login/components/HiddenEmailField.js +1 -1
  40. package/components/Login/components/Login.js +1 -1
  41. package/components/Login/components/OrDivider.js +1 -1
  42. package/components/Login/components/PasswordField.js +1 -1
  43. package/components/Login/components/StepContent.js +1 -1
  44. package/components/Login/components/StepFooter.js +1 -1
  45. package/components/Login/components/StepHeader.js +1 -1
  46. package/components/Login/components/VerificationStep.js +1 -1
  47. package/package.json +1 -1
  48. package/utils/devcenter.js +1 -1
  49. package/utils/recaptcha.js +1 -1
  50. package/vite/corva-vite-config.mjs +849 -0
  51. package/vite/unscoped-css.mjs +63 -0
  52. package/_virtual/OverloadYield.js +0 -1
  53. package/_virtual/_commonjsHelpers.js +0 -1
  54. package/_virtual/arrayLikeToArray.js +0 -1
  55. package/_virtual/arrayWithHoles.js +0 -1
  56. package/_virtual/arrayWithoutHoles.js +0 -1
  57. package/_virtual/iterableToArray.js +0 -1
  58. package/_virtual/iterableToArrayLimit.js +0 -1
  59. package/_virtual/nonIterableRest.js +0 -1
  60. package/_virtual/nonIterableSpread.js +0 -1
  61. package/_virtual/regenerator.js +0 -1
  62. package/_virtual/regeneratorAsync.js +0 -1
  63. package/_virtual/regeneratorAsyncGen.js +0 -1
  64. package/_virtual/regeneratorAsyncIterator.js +0 -1
  65. package/_virtual/regeneratorDefine.js +0 -1
  66. package/_virtual/regeneratorKeys.js +0 -1
  67. package/_virtual/regeneratorRuntime.js +0 -1
  68. package/_virtual/regeneratorValues.js +0 -1
  69. package/_virtual/toPrimitive.js +0 -1
  70. package/_virtual/toPropertyKey.js +0 -1
  71. package/_virtual/typeof.js +0 -1
  72. package/_virtual/unsupportedIterableToArray.js +0 -1
  73. package/ext-cjs/@babel/runtime/helpers/OverloadYield.js +0 -1
  74. package/ext-cjs/@babel/runtime/helpers/arrayLikeToArray.js +0 -1
  75. package/ext-cjs/@babel/runtime/helpers/arrayWithHoles.js +0 -1
  76. package/ext-cjs/@babel/runtime/helpers/arrayWithoutHoles.js +0 -1
  77. package/ext-cjs/@babel/runtime/helpers/asyncToGenerator.js +0 -1
  78. package/ext-cjs/@babel/runtime/helpers/defineProperty.js +0 -1
  79. package/ext-cjs/@babel/runtime/helpers/iterableToArray.js +0 -1
  80. package/ext-cjs/@babel/runtime/helpers/iterableToArrayLimit.js +0 -1
  81. package/ext-cjs/@babel/runtime/helpers/nonIterableRest.js +0 -1
  82. package/ext-cjs/@babel/runtime/helpers/nonIterableSpread.js +0 -1
  83. package/ext-cjs/@babel/runtime/helpers/regenerator.js +0 -1
  84. package/ext-cjs/@babel/runtime/helpers/regeneratorAsync.js +0 -1
  85. package/ext-cjs/@babel/runtime/helpers/regeneratorAsyncGen.js +0 -1
  86. package/ext-cjs/@babel/runtime/helpers/regeneratorAsyncIterator.js +0 -1
  87. package/ext-cjs/@babel/runtime/helpers/regeneratorDefine.js +0 -1
  88. package/ext-cjs/@babel/runtime/helpers/regeneratorKeys.js +0 -1
  89. package/ext-cjs/@babel/runtime/helpers/regeneratorRuntime.js +0 -1
  90. package/ext-cjs/@babel/runtime/helpers/regeneratorValues.js +0 -1
  91. package/ext-cjs/@babel/runtime/helpers/slicedToArray.js +0 -1
  92. package/ext-cjs/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -1
  93. package/ext-cjs/@babel/runtime/helpers/toConsumableArray.js +0 -1
  94. package/ext-cjs/@babel/runtime/helpers/toPrimitive.js +0 -1
  95. package/ext-cjs/@babel/runtime/helpers/toPropertyKey.js +0 -1
  96. package/ext-cjs/@babel/runtime/helpers/typeof.js +0 -1
  97. package/ext-cjs/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -1
  98. package/ext-cjs/@babel/runtime/regenerator/index.js +0 -1
@@ -1 +1 @@
1
- import r from"prop-types";import{withStyles as e}from"@material-ui/core/styles";import i from"@material-ui/core/Grid";import t from"@material-ui/core/Typography";import{jsx as s}from"react/jsx-runtime";function a(r){return s(i,{item:!0,className:r.classes.gridItem,children:s(t,{variant:"h6",children:r.children})})}a.propTypes={children:r.string.isRequired,classes:r.shape({gridItem:r.string.isRequired}).isRequired};var m=e((function(r){return{gridItem:{padding:r.spacing(4),textAlign:"center",width:"100%"}}}))(a);export{m as default};
1
+ import r from"prop-types";import{withStyles as e}from"@material-ui/core/styles";import i from"@material-ui/core/Grid";import t from"@material-ui/core/Typography";import{jsx as s}from"react/jsx-runtime";function a(r){return s(i,{item:!0,className:r.classes.gridItem,children:s(t,{variant:"h6",children:r.children})})}a.propTypes={children:r.string.isRequired,classes:r.shape({gridItem:r.string.isRequired}).isRequired};var m=e((r=>({gridItem:{padding:r.spacing(4),textAlign:"center",width:"100%"}})))(a);export{m as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/slicedToArray";import{useState as r,useRef as n,useEffect as i}from"react";import{Button as o}from"@corva/ui/components";import{makeStyles as a,Grid as c,Typography as l}from"@material-ui/core";import u from"classnames";import d from"./Step.js";import s from"./StepContent.js";import{jsxs as m,jsx as p,Fragment as f}from"react/jsx-runtime";var h=a((function(e){return{stepHeader:{padding:e.spacing(4),textAlign:"center",width:"100%",display:"flex",flexDirection:"column",alignItems:"center"},subtitle:{marginTop:e.spacing(2),color:e.palette.primary.text6,fontSize:16,letterSpacing:-.01,lineHeight:"normal"},form:{display:"flex",justifyContent:"space-between"},actions:{display:"flex",justifyContent:function(e){return e.isResendButtonVisible?"space-between":"end"},width:"100%",padding:"24px 32px 40px"},input:{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},padding:8,border:"1px solid ".concat(e.palette.primary.text9),borderRadius:4,backgroundColor:e.palette.background.b4,color:e.palette.primary.contrastText,fontSize:30,textAlign:"center","&:active, &:hover, &:focus-visible":{border:"1px solid ".concat(e.palette.primary.main),outline:"none"}},inputError:{border:"1px solid ".concat(e.palette.error.main," !important")},footer:{width:"100%",padding:"0 32px",fontSize:14,letterSpacing:-.01,color:e.palette.primary.text6,textAlign:"center"},divider:{borderTop:"1px solid rgba(255, 255, 255, 0.2)",width:"100%",marginBottom:40},footerButton:{cursor:"pointer",color:e.palette.primary.main}}})),b="email",v="sms",g=Array.from({length:6},(function(){return""}));function y(a){var y=a.email,x=a.identityVerification,S=a.loginVerificationFailure,C=a.onCodeProvided,N=a.requestVerification,w=r(x.enabled_modes[0]),k=t(w,2),B=k[0],T=k[1],j=r(g),V=t(j,2),A=V[0],D=V[1],E=r(S),I=t(E,2),R=I[0],z=I[1],H=r(!1),M=t(H,2),P=M[0],_=M[1],q=h({isResendButtonVisible:P}),F=n(null),W=n(null);i((function(){z(S),S&&(_(!0),W.current=null)}),[S]),i((function(){return N({email:y,mode:B}).then((function(){W.current=setTimeout((function(){_(!0),W.current=null}),15e3)})).catch(console.error),function(){W.current&&clearTimeout(W.current)}}),[]);var Y=function(){A.every(Boolean)&&C({code:A.join(""),mode:B})},G=A.every(Boolean);i((function(){G&&Y()}),[A.join(),G]);var J=function(e){e.preventDefault(),Y()},K=function(r){return function(n){var i=t(n.target.value,2),o=i[0],a=i[1],c=A[r],l=o;a&&a!==c&&(l=a);var u=e(A);u[r]=l,D(u),z(!1),void 0===l&&r>0?F.current.childNodes[r-1].focus():l&&r<5&&F.current.childNodes[r+1].focus()}},L=function(e){return function(){T(e),N({email:y,mode:e}).catch(console.error),_(!1),z(!1),D(g),W.current&&clearTimeout(W.current),W.current=setTimeout((function(){_(!0),W.current=null}),15e3)}};return m(d,{children:[m(c,{item:!0,className:q.stepHeader,children:[p(l,{variant:"h6",children:R?"Invalid Verification Code":"Verify Your Identity"}),p("div",{className:q.subtitle,children:B===b?"Enter a 6-digit code which was set to ".concat(y):"We have sent an SMS with one time verification code to your phone number"})]}),p(s,{children:p("form",{className:q.form,id:"verification-form",onSubmit:J,autoComplete:"on",ref:F,onPaste:function(e){var t=String(e.clipboardData.getData("text")).trim().slice(0,6).split("");t.every((function(e){return Number.isInteger(Number(e))}))&&6===t.length&&D(t)},children:A.map((function(e,t){return p("input",{type:"number",min:0,max:9,onChange:K(t),className:u(q.input,R&&q.inputError),value:e},t)}))})}),m("div",{className:q.actions,children:[P&&p(o,{onClick:L(B),variation:"secondary",children:"Resend Code"}),p(o,{disabled:!G||R,form:"verification-form",onClick:J,type:"submit",variation:"primary",children:"Next"})]}),x.enabled_modes.length>1&&m("div",{className:q.footer,children:[p("div",{className:q.divider}),m(f,B===b?{children:["Send a code via"," ",p("span",{className:q.footerButton,onClick:L(v),children:"SMS"})]}:{children:["Send a code to"," ",p("span",{className:q.footerButton,onClick:L(b),children:"Email"})]})]})]})}export{y as VerificationStep};
1
+ import{useState as e,useRef as t,useEffect as r}from"react";import{Button as i}from"@corva/ui/components";import{makeStyles as n,Grid as o,Typography as a}from"@material-ui/core";import l from"classnames";import c from"./Step.js";import s from"./StepContent.js";import{jsxs as d,jsx as m,Fragment as p}from"react/jsx-runtime";const u=n((e=>({stepHeader:{padding:e.spacing(4),textAlign:"center",width:"100%",display:"flex",flexDirection:"column",alignItems:"center"},subtitle:{marginTop:e.spacing(2),color:e.palette.primary.text6,fontSize:16,letterSpacing:-.01,lineHeight:"normal"},form:{display:"flex",justifyContent:"space-between"},actions:{display:"flex",justifyContent:({isResendButtonVisible:e})=>e?"space-between":"end",width:"100%",padding:"24px 32px 40px"},input:{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},padding:8,border:`1px solid ${e.palette.primary.text9}`,borderRadius:4,backgroundColor:e.palette.background.b4,color:e.palette.primary.contrastText,fontSize:30,textAlign:"center","&:active, &:hover, &:focus-visible":{border:`1px solid ${e.palette.primary.main}`,outline:"none"}},inputError:{border:`1px solid ${e.palette.error.main} !important`},footer:{width:"100%",padding:"0 32px",fontSize:14,letterSpacing:-.01,color:e.palette.primary.text6,textAlign:"center"},divider:{borderTop:"1px solid rgba(255, 255, 255, 0.2)",width:"100%",marginBottom:40},footerButton:{cursor:"pointer",color:e.palette.primary.main}}))),f="email",h="sms",b=Array.from({length:6},(()=>""));function g({email:n,identityVerification:g,loginVerificationFailure:v,onCodeProvided:x,requestVerification:y}){const[S,N]=e(g.enabled_modes[0]),[C,w]=e(b),[k,B]=e(v),[j,T]=e(!1),V=u({isResendButtonVisible:j}),A=t(null),D=t(null);r((()=>{B(v),v&&(T(!0),D.current=null)}),[v]),r((()=>(y({email:n,mode:S}).then((()=>{D.current=setTimeout((()=>{T(!0),D.current=null}),15e3)})).catch(console.error),()=>{D.current&&clearTimeout(D.current)})),[]);const E=()=>{C.every(Boolean)&&x({code:C.join(""),mode:S})},I=C.every(Boolean);r((()=>{I&&E()}),[C.join(),I]);const R=e=>{e.preventDefault(),E()},$=e=>t=>{const[r,i]=t.target.value,n=C[e];let o=r;i&&i!==n&&(o=i);const a=[...C];a[e]=o,w(a),B(!1),void 0===o&&e>0?A.current.childNodes[e-1].focus():o&&e<5&&A.current.childNodes[e+1].focus()},z=e=>()=>{N(e),y({email:n,mode:e}).catch(console.error),T(!1),B(!1),w(b),D.current&&clearTimeout(D.current),D.current=setTimeout((()=>{T(!0),D.current=null}),15e3)};return d(c,{children:[d(o,{item:!0,className:V.stepHeader,children:[m(a,{variant:"h6",children:k?"Invalid Verification Code":"Verify Your Identity"}),m("div",{className:V.subtitle,children:S===f?`Enter a 6-digit code which was set to ${n}`:"We have sent an SMS with one time verification code to your phone number"})]}),m(s,{children:m("form",{className:V.form,id:"verification-form",onSubmit:R,autoComplete:"on",ref:A,onPaste:e=>{const t=String(e.clipboardData.getData("text")).trim().slice(0,6).split("");t.every((e=>Number.isInteger(Number(e))))&&6===t.length&&w(t)},children:C.map(((e,t)=>m("input",{type:"number",min:0,max:9,onChange:$(t),className:l(V.input,k&&V.inputError),value:e},t)))})}),d("div",{className:V.actions,children:[j&&m(i,{onClick:z(S),variation:"secondary",children:"Resend Code"}),m(i,{disabled:!I||k,form:"verification-form",onClick:R,type:"submit",variation:"primary",children:"Next"})]}),g.enabled_modes.length>1&&d("div",{className:V.footer,children:[m("div",{className:V.divider}),d(p,S===f?{children:["Send a code via"," ",m("span",{className:V.footerButton,onClick:z(h),children:"SMS"})]}:{children:["Send a code to"," ",m("span",{className:V.footerButton,onClick:z(f),children:"Email"})]})]})]})}export{g as VerificationStep};
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@corva/dc-platform-shared","version":"0.0.0-3c03fce","description":"A library to share internal DC platform specific code","main":"./dist","module":"./src/index.js","repository":"git@github.com:corva-ai/corva-dc-platform-shared.git","author":"Oleksandr Krupko <oleksandr.krupko@corva.ai>","license":"MIT","//sass-alias":"sass-embedded installed under the name 'sass' (see dependencies) because rollup-plugin-postcss@4.0.2 hard-requires require('sass') with no override hook (see rollup.config.js). Drop this alias when rollup-plugin-postcss is replaced.","scripts":{"helper-cli":"npx @corva/fe-dev-helper-cli@latest","lint":"eslint --cache ./src/","lint-staged":"lint-staged","build":"./scripts/build.sh production","build-watch":"./scripts/build.sh development -w","get-changelog":"conventional-changelog -r 2 -p angular","release":"git fetch --tags && git add -A && standard-version -a","generate-css-themes":"echo 'skip: css themes generated by @corva/ui build'","start":"yarn generate-css-themes && cross-env NODE_ENV=local rollup -c -w","test":"jest","test-coverage":"jest --watchAll --coverage && http-serve coverage","test-watch":"jest --watch"},"lint-staged":{"*.js":["eslint --fix"]},"standard-version":{"skip":{"tag":true}},"jest":{"collectCoverageFrom":["./**/*.{js,jsx,mjs}"],"coverageReporters":["html","text-summary"],"moduleNameMapper":{"~(.*)":"<rootDir>/src/$1","\\.(css|less|scss|sass)$":"identity-obj-proxy"},"setupFiles":["<rootDir>/jest/setEnvVars.js"],"testMatch":["**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)"],"transform":{"^.+\\.jsx?$":"babel-jest","^.+\\.mjs$":"babel-jest","^.+\\.svg$":"<rootDir>/jest/svgTransform.js"},"transformIgnorePatterns":["node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"],"moduleFileExtensions":["js","jsx","json","mjs","node"]},"dependencies":{"@babel/core":"^7.12.10","@babel/plugin-transform-react-jsx":"^7.12.11","@babel/plugin-transform-runtime":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-react":"^7.12.10","@corva/eslint-config-browser":"^0.0.4","@date-io/moment":"1.3.13","@icon-park/react":"1.4.2","@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","@pmmmwh/react-refresh-webpack-plugin":"0.5.10","babel-eslint":"10.0.3","babel-jest":"^26.3.0","babel-loader":"8.1.0","babel-plugin-file-loader":"^2.0.0","babel-plugin-root-import":"^6.5.0","chalk":"4.1.1","classnames":"2.2.6","clean-webpack-plugin":"3.0.0","copy-webpack-plugin":"6.1.1","css-loader":"^7.1.0","dotenv":"^10.0.0","eslint-config-airbnb":"17.1.0","eslint-plugin-jest-dom":"3.9.4","eslint-plugin-prettier":"3.1.1","eslint-plugin-testing-library":"^3.9.2","express":"4.21.2","fs":"0.0.1-security","html-webpack-plugin":"4.5.2","identity-obj-proxy":"^3.0.0","jest":"^26.4.1","jsona":"1.5.1","lodash":"4.17.21","moment":"2.29.4","node-fetch":"^2.6.1","path":"0.12.7","postcss":"8.4.31","postcss-import":"12.0.1","postcss-loader":"^8.1.0","postcss-preset-env":"^11.3.0","prettier":"^2.1.2","process":"^0.11.10","prop-types":"15.7.2","react":"18.3.1","react-dom":"18.3.1","react-grid-layout":"1.3.4","react-router-dom":"^5.3.4","react-sizeme":"2.5.2","rollup-plugin-copy":"^3.4.0","sass":"npm:sass-embedded@^1.99.0","sass-loader":"^16.0.5","semver":"7.5.2","style-loader":"^4.0.0","svg-url-loader":"6.0.0","terser-webpack-plugin":"4.2.3","uuid":"3.4.0","webpack":"5.94.0","webpack-cli":"5.1.4","webpack-dev-server":"4.15.2","webpack-merge":"5.9.0"},"peerDependencies":{"@corva/ui":"*"},"devDependencies":{"@corva/ui":"0.0.0-d9343d7","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-image":"^2.0.6","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@testing-library/jest-dom":"5.16.5","@testing-library/react":"^14.0.0","babel-plugin-external-helpers":"^6.22.0","conventional-changelog-cli":"^2.1.0","cross-env":"^7.0.3","git-conventional-commits":"^1.1.0","lint-staged":"^10.5.4","postcss-url":"9.0.0","pre-commit":"1.2.2","rollup":"^2.28.2","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-css-bundle":"^1.0.4","rollup-plugin-css-only":"^2.1.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-postcss":"^4.0.2","rollup-plugin-rename-node-modules":"^1.0.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^4.1.1","standard-version":"^9.0.0"},"engines":{"node":">=24.15.0"},"resolutions":{"braces":"3.0.3","@babel/runtime":"^7.18.0"}}
1
+ {"name":"@corva/dc-platform-shared","version":"0.0.0-3dbbfa2","description":"A library to share internal DC platform specific code","main":"./dist","module":"./src/index.js","repository":{"type":"git","url":"https://github.com/corva-ai/corva-dc-platform-shared"},"author":"Oleksandr Krupko <oleksandr.krupko@corva.ai>","license":"MIT","//sass-alias":"sass-embedded installed under the name 'sass' (see dependencies) because rollup-plugin-postcss@4.0.2 hard-requires require('sass') with no override hook (see rollup.config.js). Drop this alias when rollup-plugin-postcss is replaced.","scripts":{"helper-cli":"npx @corva/fe-dev-helper-cli@latest","lint":"eslint --cache ./src/","lint-staged":"lint-staged","build":"./scripts/build.sh production","build-watch":"./scripts/build.sh development -w","get-changelog":"conventional-changelog -r 2 -p angular","release":"git fetch --tags && git add -A && standard-version -a","generate-css-themes":"echo 'skip: css themes generated by @corva/ui build'","start":"yarn generate-css-themes && cross-env NODE_ENV=local rollup -c -w","test":"jest","test-coverage":"jest --watchAll --coverage && http-serve coverage","test-watch":"jest --watch"},"lint-staged":{"*.js":["eslint --fix"]},"standard-version":{"skip":{"tag":true}},"jest":{"collectCoverageFrom":["./**/*.{js,jsx,mjs}"],"coverageReporters":["html","text-summary"],"moduleNameMapper":{"~(.*)":"<rootDir>/src/$1","\\.(css|less|scss|sass)$":"identity-obj-proxy"},"setupFiles":["<rootDir>/jest/setEnvVars.js"],"testMatch":["**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)"],"transform":{"^.+\\.jsx?$":"babel-jest","^.+\\.mjs$":"babel-jest","^.+\\.svg$":"<rootDir>/jest/svgTransform.js"},"transformIgnorePatterns":["/node_modules/(?!@corva/ui|@icon-park/react)"],"moduleFileExtensions":["js","jsx","json","mjs","node"],"testEnvironment":"jsdom"},"dependencies":{"@babel/core":"^7.12.10","@babel/plugin-transform-react-jsx":"^7.12.11","@babel/plugin-transform-runtime":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-react":"^7.12.10","@corva/eslint-config-browser":"^0.0.4","@date-io/moment":"1.3.13","@icon-park/react":"1.4.2","@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","@pmmmwh/react-refresh-webpack-plugin":"0.5.10","@vitejs/plugin-react":"6.1.1","@vitest/coverage-v8":"4.1.11","babel-eslint":"10.0.3","babel-jest":"^30.2.0","babel-loader":"^10.0.0","babel-plugin-file-loader":"^2.0.0","babel-plugin-root-import":"^6.5.0","chalk":"4.1.1","classnames":"2.2.6","clean-webpack-plugin":"3.0.0","copy-webpack-plugin":"^13.0.1","css-loader":"^7.1.0","dotenv":"16.4.7","dotenv-expand":"11.0.7","eslint-config-airbnb":"17.1.0","eslint-plugin-jest-dom":"3.9.4","eslint-plugin-prettier":"3.1.1","eslint-plugin-testing-library":"^3.9.2","express":"4.21.2","fs":"0.0.1-security","html-webpack-plugin":"^5.6.4","identity-obj-proxy":"^3.0.0","jest":"^30.2.0","jest-environment-jsdom":"^30.2.0","jsdom":"22.1.0","jsona":"1.5.1","lodash":"4.18.1","moment":"2.29.4","node-fetch":"^2.6.1","path":"0.12.7","postcss":"^8.5.26","postcss-import":"12.0.1","postcss-loader":"^8.1.0","postcss-preset-env":"^11.3.0","prettier":"^2.1.2","process":"^0.11.10","prop-types":"15.7.2","react":"18.3.1","react-dom":"18.3.1","react-grid-layout":"1.3.4","react-router-dom":"^5.3.4","react-sizeme":"2.5.2","rollup-plugin-copy":"^3.4.0","rollup-plugin-license":"3.6.0","sass":"npm:sass-embedded@^1.99.0","sass-loader":"^16.0.5","semver":"7.5.2","style-loader":"^4.0.0","svg-url-loader":"^8.1.0","terser-webpack-plugin":"^5.3.14","uuid":"3.4.0","vite":"8.3.0","vite-plugin-static-copy":"4.1.0","vitest":"4.1.11","webpack":"5.94.0","webpack-cli":"5.1.4","webpack-dev-server":"^5.2.2","webpack-merge":"5.9.0"},"peerDependencies":{"@corva/ui":"*"},"devDependencies":{"@corva/ui":"3.78.0-2","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^15.0.0","@rollup/plugin-image":"^2.0.6","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","@testing-library/jest-dom":"5.16.5","@testing-library/react":"^14.0.0","babel-plugin-external-helpers":"^6.22.0","conventional-changelog-cli":"^2.1.0","cross-env":"^7.0.3","git-conventional-commits":"^1.1.0","lint-staged":"^10.5.4","postcss-url":"9.0.0","pre-commit":"1.2.2","rollup":"^2.28.2","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-css-bundle":"^1.0.4","rollup-plugin-css-only":"^2.1.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-postcss":"^4.0.2","rollup-plugin-rename-node-modules":"^1.0.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^4.1.1","standard-version":"^9.0.0"},"engines":{"node":">=24.15.0"},"resolutions":{"braces":"3.0.3","@babel/runtime":"^7.18.0","lodash":"4.18.1"}}
@@ -1 +1 @@
1
- import{DEV_CENTER_CLI_APP_ID as n}from"@corva/ui/constants";var o=function(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return t===+(null==o?void 0:o.maximizeDC)};function t(n){var o,t;return{push:function(o){"string"==typeof o?n.push(o):n.push({pathname:o.pathname,query:o.query})},location:{pathname:null==n||null===(o=n.location)||void 0===o?void 0:o.pathname,query:null==n||null===(t=n.location)||void 0===t?void 0:t.query}}}export{t as createDevCenterRouter,o as isAppMaximized};
1
+ import{DEV_CENTER_CLI_APP_ID as t}from"@corva/ui/constants";const a=(a,n=t)=>n===+a?.maximizeDC;function n(t){return{push:a=>{"string"==typeof a?t.push(a):t.push({pathname:a.pathname,query:a.query})},location:{pathname:t?.location?.pathname,query:t?.location?.query}}}export{n as createDevCenterRouter,a as isAppMaximized};
@@ -1 +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};
1
+ const c=(process.env.REACT_APP_API_URL||"").includes("api.corva.ai")?"6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4":"6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";function e(){const e=document.createElement("script");e.async=!0,e.src=`https://www.google.com/recaptcha/enterprise.js?render=${c}`,document.body.appendChild(e)}export{c as GOOGLE_RECAPTCHA_KEY,e as initializeRecaptcha};