@aws-amplify/ui-react-native 1.2.24 → 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.
@@ -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.24";
1
+ export declare const VERSION = "1.2.25";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.24';
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
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.2.24';
4
+ exports.VERSION = '1.2.25';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-native",
3
- "version": "1.2.24",
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,9 +40,9 @@
40
40
  "rimraf": "^3.0.2"
41
41
  },
42
42
  "dependencies": {
43
- "@aws-amplify/ui": "5.7.0",
44
- "@aws-amplify/ui-react-core": "2.1.29",
45
- "@aws-amplify/ui-react-core-notifications": "1.0.6"
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
48
  "aws-amplify": "^5.0.1",
@@ -202,7 +202,7 @@ export const runFieldValidation = (
202
202
  fieldErrors.push(getRequiredFieldText());
203
203
  }
204
204
  if (field.type === 'email') {
205
- if (!isValidEmail(value)) {
205
+ if (!isValidEmail(value?.trim())) {
206
206
  fieldErrors.push(getInvalidEmailText());
207
207
  }
208
208
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.24';
1
+ export const VERSION = '1.2.25';