Skip to content

Commit

Permalink
fix(rna): expose TS types of RNA static components (#4215)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebpollman authored Jul 11, 2023
1 parent 53637e0 commit 279b385
Show file tree
Hide file tree
Showing 17 changed files with 134 additions and 103 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-items-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/ui-react-native": patch
---

fix(rna): expose TS types of RNA static components
4 changes: 2 additions & 2 deletions examples/react-native/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ DEPENDENCIES:
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- react-native-get-random-values (from `../../../node_modules/react-native-get-random-values`)
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- react-native-launch-arguments (from `../node_modules/react-native-launch-arguments`)
- "react-native-netinfo (from `../../../node_modules/@react-native-community/netinfo`)"
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
Expand Down Expand Up @@ -410,7 +410,7 @@ EXTERNAL SOURCES:
React-logger:
:path: "../node_modules/react-native/ReactCommon/logger"
react-native-get-random-values:
:path: "../../../node_modules/react-native-get-random-values"
:path: "../node_modules/react-native-get-random-values"
react-native-launch-arguments:
:path: "../node_modules/react-native-launch-arguments"
react-native-netinfo:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultConfirmResetPasswordComponent } from '../types';
import { DefaultConfirmResetPasswordProps } from '../types';

const COMPONENT_NAME = 'ConfirmResetPassword';

Expand All @@ -20,7 +20,7 @@ const {
getResendCodeText,
} = authenticatorTextUtil;

const ConfirmResetPassword: DefaultConfirmResetPasswordComponent = ({
const ConfirmResetPassword = ({
fields,
handleBlur,
handleChange,
Expand All @@ -29,7 +29,7 @@ const ConfirmResetPassword: DefaultConfirmResetPasswordComponent = ({
isPending,
resendCode,
...rest
}) => {
}: DefaultConfirmResetPasswordProps): JSX.Element => {
const {
disableFormSubmit,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultConfirmSignInComponent } from '../types';
import { DefaultConfirmSignInProps } from '../types';

const COMPONENT_NAME = 'ConfirmSignIn';

Expand All @@ -20,7 +20,7 @@ const {
getConfirmingText,
} = authenticatorTextUtil;

const ConfirmSignIn: DefaultConfirmSignInComponent = ({
const ConfirmSignIn = ({
challengeName,
fields,
handleBlur,
Expand All @@ -29,7 +29,7 @@ const ConfirmSignIn: DefaultConfirmSignInComponent = ({
isPending,
toSignIn,
...rest
}) => {
}: DefaultConfirmSignInProps): JSX.Element => {
const {
disableFormSubmit: disabled,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultConfirmSignUpComponent } from '../types';
import { DefaultConfirmSignUpProps } from '../types';

const COMPONENT_NAME = 'ConfirmSignUp';

Expand All @@ -21,7 +21,7 @@ const {
getResendCodeText,
} = authenticatorTextUtil;

const ConfirmSignUp: DefaultConfirmSignUpComponent = ({
const ConfirmSignUp = ({
codeDeliveryDetails,
fields,
handleBlur,
Expand All @@ -30,7 +30,7 @@ const ConfirmSignUp: DefaultConfirmSignUpComponent = ({
isPending,
resendCode,
...rest
}) => {
}: DefaultConfirmSignUpProps): JSX.Element => {
const {
disableFormSubmit: disabled,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultConfirmVerifyUserComponent } from '../types';
import { DefaultConfirmVerifyUserProps } from '../types';

const COMPONENT_NAME = 'ConfirmVerifyUser';

Expand All @@ -20,15 +20,15 @@ const {
getSubmittingText,
} = authenticatorTextUtil;

const ConfirmVerifyUser: DefaultConfirmVerifyUserComponent = ({
const ConfirmVerifyUser = ({
fields,
handleBlur,
handleChange,
handleSubmit,
isPending,
skipVerification,
...rest
}) => {
}: DefaultConfirmVerifyUserProps): JSX.Element => {
const {
disableFormSubmit: disabled,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultForceNewPasswordComponent } from '../types';
import { DefaultForceNewPasswordProps } from '../types';

const COMPONENT_NAME = 'ForceNewPassword';

const { getChangePasswordText, getChangingText, getBackToSignInText } =
authenticatorTextUtil;

const ForceNewPassword: DefaultForceNewPasswordComponent = ({
const ForceNewPassword = ({
fields,
handleBlur,
handleChange,
Expand All @@ -25,7 +25,7 @@ const ForceNewPassword: DefaultForceNewPasswordComponent = ({
isPending,
toSignIn,
...rest
}) => {
}: DefaultForceNewPasswordProps): JSX.Element => {
const {
disableFormSubmit,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultResetPasswordComponent } from '../types';
import { DefaultResetPasswordProps } from '../types';

const COMPONENT_NAME = 'ResetPassword';
const {
Expand All @@ -19,15 +19,15 @@ const {
getBackToSignInText,
} = authenticatorTextUtil;

const ResetPassword: DefaultResetPasswordComponent = ({
const ResetPassword = ({
fields,
handleBlur,
handleChange,
handleSubmit,
isPending,
toSignIn,
...rest
}) => {
}: DefaultResetPasswordProps): JSX.Element => {
const {
disableFormSubmit: disabled,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultSetupTOTPComponent } from '../types';
import { DefaultSetupTOTPProps } from '../types';
import { styles } from './styles';

const COMPONENT_NAME = 'SetupTOTP';
Expand All @@ -25,7 +25,7 @@ const {
getSetupTOTPInstructionsText,
} = authenticatorTextUtil;

const SetupTOTP: DefaultSetupTOTPComponent = ({
const SetupTOTP = ({
fields,
handleBlur,
handleChange,
Expand All @@ -34,7 +34,7 @@ const SetupTOTP: DefaultSetupTOTPComponent = ({
toSignIn,
totpSecretCode,
...rest
}) => {
}: DefaultSetupTOTPProps): JSX.Element => {
const {
disableFormSubmit: disabled,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultSignInComponent } from '../types';
import { DefaultSignInProps } from '../types';

const COMPONENT_NAME = 'SignIn';

const SignIn: DefaultSignInComponent = ({
const SignIn = ({
fields,
handleBlur,
handleChange,
Expand All @@ -22,7 +22,7 @@ const SignIn: DefaultSignInComponent = ({
toResetPassword,
toSignUp,
...rest
}) => {
}: DefaultSignInProps): JSX.Element => {
const {
getSignInTabText,
getSignInText,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../common';
import { useFieldValues } from '../../hooks';

import { DefaultSignUpComponent } from '../types';
import { DefaultSignUpProps } from '../types';

const COMPONENT_NAME = 'SignUp';

Expand All @@ -20,7 +20,7 @@ const {
getSignUpTabText,
} = authenticatorTextUtil;

const SignUp: DefaultSignUpComponent = ({
const SignUp = ({
fields,
handleBlur,
handleChange,
Expand All @@ -30,7 +30,7 @@ const SignUp: DefaultSignUpComponent = ({
isPending,
toSignIn,
...rest
}) => {
}: DefaultSignUpProps): JSX.Element => {
const {
disableFormSubmit,
fields: fieldsWithHandlers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
DefaultRadioFormFields,
} from '../../common';
import { useFieldValues } from '../../hooks';
import { DefaultVerifyUserComponent } from '../types';
import { DefaultVerifyUserProps } from '../types';

const COMPONENT_NAME = 'VerifyUser';

Expand All @@ -19,14 +19,14 @@ const {
getAccountRecoveryInfoText,
} = authenticatorTextUtil;

const VerifyUser: DefaultVerifyUserComponent = ({
const VerifyUser = ({
fields,
handleBlur,
handleChange,
handleSubmit,
skipVerification,
...rest
}) => {
}: DefaultVerifyUserProps): JSX.Element => {
const {
disableFormSubmit: disabled,
fields: fieldsWithHandlers,
Expand Down
Loading

0 comments on commit 279b385

Please sign in to comment.