@arquimedes.co/eureka-forms 3.0.38 → 3.0.41
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.
|
@@ -148,7 +148,7 @@ function CBRStepMapper(props) {
|
|
|
148
148
|
case CBRFormStepTypes.CBR_EMAIL:
|
|
149
149
|
return (_jsx(TextInputStep, __assign({}, props, { step: props.step, validation: {
|
|
150
150
|
type: 'EMAIL',
|
|
151
|
-
value: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
|
|
151
|
+
value: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@(?!(gmal|gmai|gmil|hotmil|hotmal|hotmai|yaho|yhoo|yahoo|outlok|outloo|outluk)\.)((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
|
|
152
152
|
.source,
|
|
153
153
|
message: 'El correo no es válido',
|
|
154
154
|
} })));
|
|
@@ -32,7 +32,7 @@ function TextInputStep(_a) {
|
|
|
32
32
|
? {
|
|
33
33
|
value: new RegExp(validation.type === 'EMAIL'
|
|
34
34
|
? // eslint-disable-next-line no-control-regex
|
|
35
|
-
/^(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/
|
|
35
|
+
/^(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i
|
|
36
36
|
: validation.value),
|
|
37
37
|
message: validation.message,
|
|
38
38
|
}
|
package/dist/Login/LoginPage.js
CHANGED
|
@@ -58,7 +58,9 @@ import { setUser } from '../States/GlobalSlice';
|
|
|
58
58
|
import { jwtDecode } from 'jwt-decode';
|
|
59
59
|
import LoginTextField from './LoginTextField';
|
|
60
60
|
import MaterialProviders from '../Utils/MaterialProviders';
|
|
61
|
-
var EMAIL_REGEX =
|
|
61
|
+
var EMAIL_REGEX =
|
|
62
|
+
// eslint-disable-next-line no-control-regex
|
|
63
|
+
/^(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
|
62
64
|
/**
|
|
63
65
|
* Displays the specific login component depending on the url
|
|
64
66
|
* @returns the respective component
|
|
@@ -37,7 +37,11 @@ export var GlobalSlice = createSlice({
|
|
|
37
37
|
return __assign(__assign(__assign({}, state), action.payload), { loaded: true });
|
|
38
38
|
},
|
|
39
39
|
setUser: function (state, action) {
|
|
40
|
+
var _a;
|
|
40
41
|
state.user = action.payload;
|
|
42
|
+
if ((_a = action.payload) === null || _a === void 0 ? void 0 : _a._id) {
|
|
43
|
+
state.idCurrentAgent = action.payload._id;
|
|
44
|
+
}
|
|
41
45
|
},
|
|
42
46
|
},
|
|
43
47
|
});
|