Skip to content

Releases: aws-amplify/amplify-ui

@aws-amplify/ui-vue@2.0.12

04 Feb 01:14
d43c7a9
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui-react@2.2.2

04 Feb 01:14
d43c7a9
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui-angular@2.0.12

04 Feb 01:14
d43c7a9
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui@3.0.11

01 Feb 04:49
7ca098e
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui-vue@2.0.11

01 Feb 04:49
7ca098e
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui-react@2.2.1

01 Feb 04:49
7ca098e
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui-angular@2.0.11

01 Feb 04:49
7ca098e
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui@3.0.10

27 Jan 23:21
65c188f
Compare
Choose a tag to compare

Patch Changes

@aws-amplify/ui-vue@2.0.10

27 Jan 23:21
65c188f
Compare
Choose a tag to compare

Patch Changes

  • #1153 3afdc1fc9 Thanks @wlee221! - Listen to Auth Hub events

  • #1176 f7f77237e Thanks @ErikCH! - Added new force new password fields component. Also auto detect required attributes on force new password page.

  • Updated dependencies [3afdc1fc9]:

    • @aws-amplify/ui@3.0.10

@aws-amplify/ui-react@2.2.0

27 Jan 23:21
65c188f
Compare
Choose a tag to compare

Minor Changes

  • #1168 b32dd86bf Thanks @wlee221! - This enables useAuthenticator usage outside to access commonly requested authenticator context like user and route.

    First wrap your App with Authenticator.Provider:

    const App = (
      <Authenticator.Provider>
        <MyApp />
      </Authenticator.Provider>
    );

    To avoid repeated re-renders, you can pass a function that takes in Authenticator context and returns an array of desired context values. This hook will only trigger re-render if any of the array value changes.

    const Home = () => {
      const { user, signOut } = useAuthenticator((context) => [context.user]);
    
      return (
        <>
          <h2>Welcome, {user.username}!</h2>
          <button onClick={signOut}>Sign Out</button>
        </>
      );
    };
    
    const Login = () => <Authenticator />;
    
    function MyApp() {
      const { route } = useAuthenticator((context) => [context.route]);
    
      return route === 'authenticated' ? <Home /> : <Login />;
    }

Patch Changes

  • #1153 3afdc1fc9 Thanks @wlee221! - Listen to Auth Hub events

  • #1176 f7f77237e Thanks @ErikCH! - Added new force new password fields component. Also auto detect required attributes on force new password page.

  • Updated dependencies [3afdc1fc9]:

    • @aws-amplify/ui@3.0.10