@aws-amplify/ui 6.15.0 → 6.15.2
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.
|
@@ -2,7 +2,7 @@ import '../../../types/authenticator/user.mjs';
|
|
|
2
2
|
import { isAuthFieldsWithDefaults } from '../../../types/authenticator/attributes.mjs';
|
|
3
3
|
import { getActorContext } from '../actor.mjs';
|
|
4
4
|
import { defaultFormFieldOptions } from '../constants.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { getAliasDefaultFormField, defaultFormFieldsGetters } from './defaults.mjs';
|
|
6
6
|
import { applyTranslation, sortFormFields } from './utils.mjs';
|
|
7
7
|
|
|
8
8
|
// Gets the default formFields for given route
|
|
@@ -445,7 +445,7 @@ function signInActor({ services }) {
|
|
|
445
445
|
let { password: challengeResponse, phone_number, country_code,
|
|
446
446
|
// destructure and toss UI confirm_password field
|
|
447
447
|
// to prevent error from sending to confirmSignIn
|
|
448
|
-
confirm_password, ...userAttributes } = formValues;
|
|
448
|
+
confirm_password, username, ...userAttributes } = formValues;
|
|
449
449
|
let phoneNumberWithCountryCode;
|
|
450
450
|
if (phone_number) {
|
|
451
451
|
phoneNumberWithCountryCode =
|
|
@@ -281,8 +281,14 @@ function signUpActor({ services }) {
|
|
|
281
281
|
passkeyPrompt: {
|
|
282
282
|
entry: 'sendUpdate',
|
|
283
283
|
on: {
|
|
284
|
-
SKIP: {
|
|
285
|
-
|
|
284
|
+
SKIP: {
|
|
285
|
+
actions: 'setConfirmAttributeCompleteStep',
|
|
286
|
+
target: 'resolved',
|
|
287
|
+
},
|
|
288
|
+
SUBMIT: {
|
|
289
|
+
actions: 'setConfirmAttributeCompleteStep',
|
|
290
|
+
target: 'resolved',
|
|
291
|
+
},
|
|
286
292
|
},
|
|
287
293
|
},
|
|
288
294
|
resolved: {
|
package/dist/index.js
CHANGED
|
@@ -5514,7 +5514,7 @@ function signInActor({ services }) {
|
|
|
5514
5514
|
let { password: challengeResponse, phone_number, country_code,
|
|
5515
5515
|
// destructure and toss UI confirm_password field
|
|
5516
5516
|
// to prevent error from sending to confirmSignIn
|
|
5517
|
-
confirm_password, ...userAttributes } = formValues;
|
|
5517
|
+
confirm_password, username, ...userAttributes } = formValues;
|
|
5518
5518
|
let phoneNumberWithCountryCode;
|
|
5519
5519
|
if (phone_number) {
|
|
5520
5520
|
phoneNumberWithCountryCode =
|
|
@@ -5818,8 +5818,14 @@ function signUpActor({ services }) {
|
|
|
5818
5818
|
passkeyPrompt: {
|
|
5819
5819
|
entry: 'sendUpdate',
|
|
5820
5820
|
on: {
|
|
5821
|
-
SKIP: {
|
|
5822
|
-
|
|
5821
|
+
SKIP: {
|
|
5822
|
+
actions: 'setConfirmAttributeCompleteStep',
|
|
5823
|
+
target: 'resolved',
|
|
5824
|
+
},
|
|
5825
|
+
SUBMIT: {
|
|
5826
|
+
actions: 'setConfirmAttributeCompleteStep',
|
|
5827
|
+
target: 'resolved',
|
|
5828
|
+
},
|
|
5823
5829
|
},
|
|
5824
5830
|
},
|
|
5825
5831
|
resolved: {
|