@corva/dc-platform-shared 0.0.0-d2f1127 → 0.0.0-db7df02
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/components/App/App.js +1 -1
- package/CLI/components/App/components/AppBar/AppBar.js +1 -1
- package/CLI/constants/index.js +1 -1
- package/CLI/context/auth.js +1 -1
- package/CLI/hocs/effects/useProvideAuth/api.js +1 -1
- package/CLI/hocs/effects/useProvideAuth/constants.js +1 -1
- package/CLI/hocs/effects/useProvideAuth/useProvideAuth.js +1 -1
- package/CLI/hocs/utils.js +1 -1
- package/CLI/hocs/withAppDataProviderHOC.js +1 -1
- package/CLI/hocs/withCLIAppSettingsHOC.js +1 -1
- package/CLI/hocs/withCorvaMagicHOC.js +1 -1
- package/CLI/hocs/withDevCenterRouterHOC.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
- package/CLI/hocs/withPDFLayoutHOC.js +1 -1
- package/CLI/hocs/withReactRouterHOC.js +1 -1
- package/CLI/screens/LoginScreen/LoginScreen.js +1 -1
- package/CLI/screens/LoginScreen/components/Auth.js +1 -1
- package/CLI/screens/LoginScreen/components/AuthStep.js +1 -1
- package/CLI/screens/LoginScreen/components/EmailStep.js +1 -1
- package/CLI/screens/LoginScreen/components/SSOButton.js +1 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
- package/cjs/devcenter/webpack/DevServerEntryPoint.js +1 -1
- package/cjs/devcenter/webpack/DevServerIsolatedAppEntryPoint.js +1 -1
- package/cjs/devcenter/webpack/MapboxGlDevSetupEntryPoint.js +1 -0
- package/cjs/devcenter/webpack/constants.js +1 -1
- package/cjs/devcenter/webpack/createAdaptiveRoot.js +1 -0
- package/cjs/devcenter/webpack/plugins/checkCorvaUIVersion.js +11 -1
- package/cjs/devcenter/webpack/utils/middlewares.js +1 -1
- package/cjs/devcenter/webpack/utils/serializeDotEnv.js +1 -1
- package/cjs/devcenter/webpack/validators/dependencies.js +1 -1
- package/cjs/devcenter/webpack/validators/index.js +1 -1
- package/cjs/devcenter/webpack/webpack.config.common.js +1 -1
- package/cjs/devcenter/webpack/webpack.config.dev.js +1 -1
- package/cjs/devcenter/webpack/webpack.config.prod.js +1 -1
- package/clients/auth0/index.js +1 -1
- package/components/GridLockButton/index.js +1 -1
- package/components/Login/components/Chip.js +1 -1
- package/components/Login/components/EmailField.js +1 -1
- package/components/Login/components/HiddenEmailField.js +1 -1
- package/components/Login/components/Login.js +1 -1
- package/components/Login/components/OrDivider.js +1 -1
- package/components/Login/components/PasswordField.js +1 -1
- package/components/Login/components/StepContent.js +1 -1
- package/components/Login/components/StepFooter.js +1 -1
- package/components/Login/components/StepHeader.js +1 -1
- package/components/Login/components/VerificationStep.js +1 -1
- package/ext-esm/auth0-js/dist/auth0.min.esm.js +1 -1
- package/package.json +1 -1
- package/utils/devcenter.js +1 -1
- package/utils/recaptcha.js +1 -1
- package/vite/corva-vite-config.mjs +890 -0
- package/_virtual/_commonjsHelpers.js +0 -1
- package/_virtual/arrayLikeToArray.js +0 -1
- package/_virtual/arrayWithHoles.js +0 -1
- package/_virtual/arrayWithoutHoles.js +0 -1
- package/_virtual/iterableToArray.js +0 -1
- package/_virtual/iterableToArrayLimit.js +0 -1
- package/_virtual/nonIterableRest.js +0 -1
- package/_virtual/nonIterableSpread.js +0 -1
- package/_virtual/regeneratorRuntime.js +0 -1
- package/_virtual/typeof.js +0 -1
- package/_virtual/unsupportedIterableToArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/arrayLikeToArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/arrayWithHoles.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/arrayWithoutHoles.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/asyncToGenerator.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/defineProperty.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/iterableToArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/iterableToArrayLimit.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/nonIterableRest.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/nonIterableSpread.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/regeneratorRuntime.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/slicedToArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/toConsumableArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/typeof.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -1
- 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((
|
|
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
|
|
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};
|