@aws-amplify/ui 6.15.2 → 6.15.4

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.
@@ -265,6 +265,11 @@ function signUpActor({ services }) {
265
265
  actions: ['setNextSignUpStep', 'clearFormValues'],
266
266
  target: '#signUpActor.autoSignIn',
267
267
  },
268
+ {
269
+ cond: 'shouldManualSignIn',
270
+ actions: ['clearFormValues', 'setSignInStep'],
271
+ target: '#signUpActor.resolved',
272
+ },
268
273
  {
269
274
  actions: 'setNextSignUpStep',
270
275
  target: '#signUpActor.init',
@@ -9,6 +9,8 @@ const shouldConfirmSignInWithNewPassword = (_, { data }) => data?.nextStep.signI
9
9
  const shouldResetPasswordFromSignIn = (_, { data }) => data?.nextStep?.signInStep === 'RESET_PASSWORD';
10
10
  const shouldConfirmSignUpFromSignIn = (_, { data }) => data?.nextStep.signInStep === 'CONFIRM_SIGN_UP';
11
11
  const shouldAutoSignIn = (_, { data }) => data?.nextStep.signUpStep === 'COMPLETE_AUTO_SIGN_IN';
12
+ const shouldManualSignIn = (context, { data }) => data?.nextStep.signUpStep === 'DONE' &&
13
+ context.step === 'CONFIRM_SIGN_UP';
12
14
  const hasCompletedSignIn = (_, { data }) => data?.nextStep.signInStep === 'DONE';
13
15
  const hasCompletedSignUp = (_, { data }) => data?.nextStep.signUpStep === 'DONE';
14
16
  const hasCompletedResetPassword = (_, { data }) => data?.nextStep.resetPasswordStep === 'DONE';
@@ -110,6 +112,7 @@ const GUARDS = {
110
112
  isShouldConfirmUserAttributeStep,
111
113
  isUserAlreadyConfirmed,
112
114
  shouldAutoSignIn,
115
+ shouldManualSignIn,
113
116
  shouldConfirmResetPassword,
114
117
  shouldConfirmSignIn,
115
118
  shouldConfirmSignInWithNewPassword,
package/dist/index.js CHANGED
@@ -4608,6 +4608,8 @@ const shouldConfirmSignInWithNewPassword = (_, { data }) => data?.nextStep.signI
4608
4608
  const shouldResetPasswordFromSignIn = (_, { data }) => data?.nextStep?.signInStep === 'RESET_PASSWORD';
4609
4609
  const shouldConfirmSignUpFromSignIn = (_, { data }) => data?.nextStep.signInStep === 'CONFIRM_SIGN_UP';
4610
4610
  const shouldAutoSignIn = (_, { data }) => data?.nextStep.signUpStep === 'COMPLETE_AUTO_SIGN_IN';
4611
+ const shouldManualSignIn = (context, { data }) => data?.nextStep.signUpStep === 'DONE' &&
4612
+ context.step === 'CONFIRM_SIGN_UP';
4611
4613
  const hasCompletedSignIn = (_, { data }) => data?.nextStep.signInStep === 'DONE';
4612
4614
  const hasCompletedSignUp = (_, { data }) => data?.nextStep.signUpStep === 'DONE';
4613
4615
  const hasCompletedResetPassword = (_, { data }) => data?.nextStep.resetPasswordStep === 'DONE';
@@ -4709,6 +4711,7 @@ const GUARDS = {
4709
4711
  isShouldConfirmUserAttributeStep,
4710
4712
  isUserAlreadyConfirmed,
4711
4713
  shouldAutoSignIn,
4714
+ shouldManualSignIn,
4712
4715
  shouldConfirmResetPassword,
4713
4716
  shouldConfirmSignIn,
4714
4717
  shouldConfirmSignInWithNewPassword,
@@ -5802,6 +5805,11 @@ function signUpActor({ services }) {
5802
5805
  actions: ['setNextSignUpStep', 'clearFormValues'],
5803
5806
  target: '#signUpActor.autoSignIn',
5804
5807
  },
5808
+ {
5809
+ cond: 'shouldManualSignIn',
5810
+ actions: ['clearFormValues', 'setSignInStep'],
5811
+ target: '#signUpActor.resolved',
5812
+ },
5805
5813
  {
5806
5814
  actions: 'setNextSignUpStep',
5807
5815
  target: '#signUpActor.init',
@@ -73,9 +73,12 @@
73
73
  overflow-y: auto;
74
74
  box-sizing: border-box;
75
75
  list-style: disc;
76
+ display: flex;
77
+ flex-direction: column;
78
+ gap: var(--amplify-space-xxs);
76
79
  }
77
80
 
78
81
  .amplify-modal__list-item.amplify-modal__list-item {
82
+ display: list-item;
79
83
  margin-bottom: var(--amplify-space-xxs);
80
- box-sizing: border-box;
81
84
  }
@@ -74,10 +74,13 @@
74
74
  overflow-y: auto;
75
75
  box-sizing: border-box;
76
76
  list-style: disc;
77
+ display: flex;
78
+ flex-direction: column;
79
+ gap: var(--amplify-space-xxs);
77
80
  }
78
81
 
79
82
  .amplify-modal__list-item.amplify-modal__list-item {
83
+ display: list-item;
80
84
  margin-bottom: var(--amplify-space-xxs);
81
- box-sizing: border-box;
82
85
  }
83
86
  }
package/dist/styles.css CHANGED
@@ -4891,11 +4891,14 @@ html[dir=rtl] .amplify-field-group__inner-start {
4891
4891
  overflow-y: auto;
4892
4892
  box-sizing: border-box;
4893
4893
  list-style: disc;
4894
+ display: flex;
4895
+ flex-direction: column;
4896
+ gap: var(--amplify-space-xxs);
4894
4897
  }
4895
4898
 
4896
4899
  .amplify-modal__list-item.amplify-modal__list-item {
4900
+ display: list-item;
4897
4901
  margin-bottom: var(--amplify-space-xxs);
4898
- box-sizing: border-box;
4899
4902
  }
4900
4903
 
4901
4904
  .amplify-pagination {
@@ -4892,11 +4892,14 @@ html[dir=rtl] .amplify-field-group__inner-start {
4892
4892
  overflow-y: auto;
4893
4893
  box-sizing: border-box;
4894
4894
  list-style: disc;
4895
+ display: flex;
4896
+ flex-direction: column;
4897
+ gap: var(--amplify-space-xxs);
4895
4898
  }
4896
4899
 
4897
4900
  .amplify-modal__list-item.amplify-modal__list-item {
4901
+ display: list-item;
4898
4902
  margin-bottom: var(--amplify-space-xxs);
4899
- box-sizing: border-box;
4900
4903
  }
4901
4904
 
4902
4905
  .amplify-pagination {
@@ -6,4 +6,4 @@ export * from './form';
6
6
  export * from './utils';
7
7
  export * from './formFields';
8
8
  export * from './textUtil';
9
- export * from './types';
9
+ export type * from './types';
@@ -1,2 +1,2 @@
1
1
  export * from './authenticator';
2
- export * from './authenticator/types';
2
+ export type * from './authenticator/types';
@@ -5,4 +5,4 @@ export { defaultTheme } from './defaultTheme';
5
5
  export { defaultDarkModeOverride, reactNativeDarkTokens, } from './defaultDarkModeOverride';
6
6
  export type { ReactNativeTokens } from './tokens';
7
7
  export { reactNativeTokens } from './tokens';
8
- export * from './types';
8
+ export type * from './types';
@@ -4,7 +4,7 @@ import type { Tokens } from './tokens';
4
4
  import type { Breakpoints } from './breakpoints';
5
5
  import type { ComponentsTheme } from './components';
6
6
  import type { CSSProperties } from './components/utils';
7
- export * from './tokens/types/designToken';
7
+ export type * from './tokens/types/designToken';
8
8
  export type { BorderWidths } from './tokens/borderWidths';
9
9
  export type { FontSizes } from './tokens/fontSizes';
10
10
  export type { FontWeights } from './tokens/fontWeights';
@@ -1 +1 @@
1
- export * from './validator';
1
+ export type * from './validator';
@@ -1,5 +1,5 @@
1
- export * from './validator';
1
+ export type * from './validator';
2
2
  export * from './user';
3
3
  export * from './utils';
4
- export * from './form';
4
+ export type * from './form';
5
5
  export * from './attributes';
@@ -1,5 +1,5 @@
1
1
  export type { DisplayTextTemplate } from './displayText';
2
- export * from './accountSettings';
2
+ export type * from './accountSettings';
3
3
  export * from './authenticator';
4
4
  export * from './primitives';
5
- export * from './util';
5
+ export type * from './util';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "6.15.2",
3
+ "version": "6.15.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -19,6 +19,7 @@
19
19
  "./styles.css": "./dist/styles.css",
20
20
  "./theme.css": "./dist/theme.css"
21
21
  },
22
+ "eslint": "./eslint.config.js",
22
23
  "types": "dist/types/index.d.ts",
23
24
  "license": "Apache-2.0",
24
25
  "repository": {
@@ -37,7 +38,7 @@
37
38
  "check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui\"'",
38
39
  "clean": "rimraf dist node_modules",
39
40
  "dev": "yarn build --watch",
40
- "lint": "yarn typecheck && eslint src --ext .js,.ts,.tsx",
41
+ "lint": "yarn typecheck && eslint src",
41
42
  "prebuild": "rimraf dist",
42
43
  "test": "jest",
43
44
  "test:watch": "yarn test --watch",
@@ -45,7 +46,7 @@
45
46
  },
46
47
  "dependencies": {
47
48
  "csstype": "^3.1.1",
48
- "lodash": "4.17.23",
49
+ "lodash": "4.18.1",
49
50
  "tslib": "^2.5.2"
50
51
  },
51
52
  "peerDependencies": {