@aws-amplify/ui-react-native 1.2.23 → 1.2.25
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/dist/Authenticator/hooks/useFieldValues/utils.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/lib/Authenticator/hooks/useFieldValues/utils.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -5
- package/src/Authenticator/hooks/useFieldValues/utils.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -111,7 +111,7 @@ export const runFieldValidation = (field, value, stateValidations) => {
|
|
|
111
111
|
fieldErrors.push(getRequiredFieldText());
|
|
112
112
|
}
|
|
113
113
|
if (field.type === 'email') {
|
|
114
|
-
if (!isValidEmail(value)) {
|
|
114
|
+
if (!isValidEmail(value?.trim())) {
|
|
115
115
|
fieldErrors.push(getInvalidEmailText());
|
|
116
116
|
}
|
|
117
117
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.2.
|
|
1
|
+
export declare const VERSION = "1.2.25";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.2.
|
|
1
|
+
export const VERSION = '1.2.25';
|
|
@@ -120,7 +120,7 @@ const runFieldValidation = (field, value, stateValidations) => {
|
|
|
120
120
|
fieldErrors.push(getRequiredFieldText());
|
|
121
121
|
}
|
|
122
122
|
if (field.type === 'email') {
|
|
123
|
-
if (!(0, ui_1.isValidEmail)(value)) {
|
|
123
|
+
if (!(0, ui_1.isValidEmail)(value?.trim())) {
|
|
124
124
|
fieldErrors.push(getInvalidEmailText());
|
|
125
125
|
}
|
|
126
126
|
}
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-native",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@aws-amplify/ui": "5.
|
|
44
|
-
"@aws-amplify/ui-react-core": "2.1.
|
|
45
|
-
"@aws-amplify/ui-react-core-notifications": "1.0.
|
|
43
|
+
"@aws-amplify/ui": "5.7.1",
|
|
44
|
+
"@aws-amplify/ui-react-core": "2.1.30",
|
|
45
|
+
"@aws-amplify/ui-react-core-notifications": "1.0.7"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"aws-amplify": "
|
|
48
|
+
"aws-amplify": "^5.0.1",
|
|
49
49
|
"react": ">= 16.14.0",
|
|
50
50
|
"react-native": ">= 0.63.4",
|
|
51
51
|
"react-native-safe-area-context": ">= 4.2.5"
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.2.
|
|
1
|
+
export const VERSION = '1.2.25';
|