@arquimedes.co/eureka-forms 3.0.37 → 3.0.39
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.
|
@@ -145,7 +145,7 @@ function ApiSelectorComponent(_a) {
|
|
|
145
145
|
response = _e.sent();
|
|
146
146
|
return [2 /*return*/, response.filter(function (option) {
|
|
147
147
|
var _a;
|
|
148
|
-
return calcOptionId(option) &&
|
|
148
|
+
return calcOptionId(option) !== undefined &&
|
|
149
149
|
((_a = step.options[calcOptionId(option)]) === null || _a === void 0 ? void 0 : _a.type) !==
|
|
150
150
|
ApiSelectorOptionTypes.HIDE;
|
|
151
151
|
})];
|
|
@@ -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
|
} })));
|
|
@@ -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
|
});
|