@kiosinc/commons-rn 0.1.85 → 0.1.87
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.
- package/lib/commonjs/api/authentication.js.map +1 -0
- package/lib/commonjs/api/customer.js.map +1 -1
- package/lib/commonjs/assets/icons/alert.svg +4 -0
- package/lib/commonjs/components/Alert.js +1 -1
- package/lib/commonjs/components/Alert.js.map +1 -1
- package/lib/commonjs/components/OfflineStrip.js +55 -0
- package/lib/commonjs/components/OfflineStrip.js.map +1 -0
- package/lib/commonjs/components/SelectionDialog.js +1 -1
- package/lib/commonjs/components/SelectionDialog.js.map +1 -1
- package/lib/commonjs/components/Snackbar.js +1 -1
- package/lib/commonjs/components/Snackbar.js.map +1 -1
- package/lib/commonjs/components/index.js +7 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/helpers/index.js +13 -0
- package/lib/commonjs/helpers/index.js.map +1 -0
- package/lib/commonjs/hooks/index.js +69 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/queryKeys.js.map +1 -0
- package/lib/commonjs/hooks/useAppVersionCheck.js +9 -5
- package/lib/commonjs/hooks/useAppVersionCheck.js.map +1 -1
- package/lib/commonjs/{auth/hooks/useAuthentication.js → hooks/useAuth.js} +18 -18
- package/lib/commonjs/hooks/useAuth.js.map +1 -0
- package/lib/commonjs/{auth/hooks → hooks}/useAuthenticateRequests.js +1 -1
- package/lib/commonjs/hooks/useAuthenticateRequests.js.map +1 -0
- package/lib/commonjs/hooks/useBusinesses.js.map +1 -0
- package/lib/commonjs/{selectBusiness → hooks}/useCreateBusiness.js +1 -1
- package/lib/commonjs/hooks/useCreateBusiness.js.map +1 -0
- package/lib/commonjs/hooks/useCustomer.js +1 -1
- package/lib/commonjs/hooks/useCustomer.js.map +1 -1
- package/lib/commonjs/{auth/hooks → hooks}/useDeactivateAccount.js +3 -3
- package/lib/commonjs/hooks/useDeactivateAccount.js.map +1 -0
- package/lib/commonjs/{auth/hooks → hooks}/useLogout.js +3 -3
- package/lib/commonjs/hooks/useLogout.js.map +1 -0
- package/lib/commonjs/{auth/hooks → hooks}/useTermsOfService.js +4 -5
- package/lib/commonjs/hooks/useTermsOfService.js.map +1 -0
- package/lib/commonjs/index.js +50 -97
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/localization/index.js +12 -0
- package/lib/commonjs/localization/index.js.map +1 -0
- package/lib/commonjs/localization/translations/en.json +88 -0
- package/lib/commonjs/providers/authentication/AuthenticationProvider.js.map +1 -0
- package/lib/commonjs/providers/authentication/actions/authentication.actions.js.map +1 -0
- package/lib/commonjs/providers/authentication/reducer/authentication.reducer.js.map +1 -0
- package/lib/commonjs/providers/authentication/types/authentication.types.js.map +1 -0
- package/lib/commonjs/providers/index.js +32 -0
- package/lib/commonjs/providers/index.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/ChangePassword.js +9 -9
- package/lib/commonjs/{auth/screens → screens/Auth}/ChangePassword.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/Login.js +2 -2
- package/lib/commonjs/{auth/screens → screens/Auth}/Login.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithEmail.js +7 -7
- package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithEmail.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithPhoneNumber.js +5 -5
- package/lib/commonjs/screens/Auth/LoginWithPhoneNumber.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/ResetPassword.js +41 -9
- package/lib/commonjs/screens/Auth/ResetPassword.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js +2 -2
- package/lib/commonjs/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/SignUp.js +12 -13
- package/lib/commonjs/screens/Auth/SignUp.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/SignUpPassword.js +7 -7
- package/lib/commonjs/screens/Auth/SignUpPassword.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/VerifyPhoneNumber.js +6 -6
- package/lib/commonjs/screens/Auth/VerifyPhoneNumber.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.js +6 -6
- package/lib/commonjs/screens/Auth/VerifyPhoneNumberForLogin.js.map +1 -0
- package/lib/commonjs/{auth/screens/index.js → screens/Auth/navigators.js} +1 -1
- package/lib/commonjs/screens/Auth/navigators.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/validators.js +7 -7
- package/lib/commonjs/screens/Auth/validators.js.map +1 -0
- package/lib/commonjs/screens/SavedCards/CardRow.js +4 -4
- package/lib/commonjs/screens/SavedCards/CardRow.js.map +1 -1
- package/lib/commonjs/screens/SavedCards/SavedCards.js +5 -5
- package/lib/commonjs/screens/SavedCards/SavedCards.js.map +1 -1
- package/lib/commonjs/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.js +7 -7
- package/lib/commonjs/screens/SelectBusiness/CreateBusinessBottomSheet.js.map +1 -0
- package/lib/commonjs/{selectBusiness → screens/SelectBusiness}/SelectBusiness.js +12 -13
- package/lib/commonjs/screens/SelectBusiness/SelectBusiness.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/TermsOfService}/TermsOfService.js +9 -9
- package/lib/commonjs/screens/TermsOfService/TermsOfService.js.map +1 -0
- package/lib/commonjs/screens/index.js +40 -0
- package/lib/commonjs/screens/index.js.map +1 -0
- package/lib/commonjs/utils/index.js +34 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/api/authentication.js.map +1 -0
- package/lib/module/api/customer.js.map +1 -1
- package/lib/module/assets/icons/alert.svg +4 -0
- package/lib/module/components/Alert.js +1 -1
- package/lib/module/components/Alert.js.map +1 -1
- package/lib/module/components/OfflineStrip.js +45 -0
- package/lib/module/components/OfflineStrip.js.map +1 -0
- package/lib/module/components/SelectionDialog.js +1 -1
- package/lib/module/components/SelectionDialog.js.map +1 -1
- package/lib/module/components/Snackbar.js +1 -1
- package/lib/module/components/Snackbar.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/helpers/index.js +2 -0
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/hooks/index.js +10 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/queryKeys.js.map +1 -0
- package/lib/module/hooks/useAppVersionCheck.js +9 -5
- package/lib/module/hooks/useAppVersionCheck.js.map +1 -1
- package/lib/module/{auth/hooks/useAuthentication.js → hooks/useAuth.js} +10 -10
- package/lib/module/hooks/useAuth.js.map +1 -0
- package/lib/module/{auth/hooks → hooks}/useAuthenticateRequests.js +1 -1
- package/lib/module/hooks/useAuthenticateRequests.js.map +1 -0
- package/lib/module/hooks/useBusinesses.js.map +1 -0
- package/lib/module/{selectBusiness → hooks}/useCreateBusiness.js +1 -1
- package/lib/module/hooks/useCreateBusiness.js.map +1 -0
- package/lib/module/hooks/useCustomer.js +1 -1
- package/lib/module/hooks/useCustomer.js.map +1 -1
- package/lib/module/{auth/hooks → hooks}/useDeactivateAccount.js +3 -3
- package/lib/module/hooks/useDeactivateAccount.js.map +1 -0
- package/lib/module/{auth/hooks → hooks}/useLogout.js +2 -2
- package/lib/module/hooks/useLogout.js.map +1 -0
- package/lib/module/{auth/hooks → hooks}/useTermsOfService.js +4 -4
- package/lib/module/hooks/useTermsOfService.js.map +1 -0
- package/lib/module/index.js +6 -11
- package/lib/module/index.js.map +1 -1
- package/lib/module/localization/index.js +5 -0
- package/lib/module/localization/index.js.map +1 -0
- package/lib/module/localization/translations/en.json +88 -0
- package/lib/module/providers/authentication/AuthenticationProvider.js.map +1 -0
- package/lib/module/providers/authentication/actions/authentication.actions.js.map +1 -0
- package/lib/module/providers/authentication/reducer/authentication.reducer.js.map +1 -0
- package/lib/module/providers/authentication/types/authentication.types.js.map +1 -0
- package/lib/module/providers/index.js +3 -0
- package/lib/module/providers/index.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/ChangePassword.js +9 -9
- package/lib/module/{auth/screens → screens/Auth}/ChangePassword.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/Login.js +2 -2
- package/lib/module/{auth/screens → screens/Auth}/Login.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/LoginWithEmail.js +7 -7
- package/lib/module/{auth/screens → screens/Auth}/LoginWithEmail.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/LoginWithPhoneNumber.js +5 -5
- package/lib/module/screens/Auth/LoginWithPhoneNumber.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/ResetPassword.js +43 -11
- package/lib/module/screens/Auth/ResetPassword.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js +2 -2
- package/lib/module/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/SignUp.js +11 -12
- package/lib/module/screens/Auth/SignUp.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/SignUpPassword.js +7 -7
- package/lib/module/screens/Auth/SignUpPassword.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/VerifyPhoneNumber.js +6 -6
- package/lib/module/screens/Auth/VerifyPhoneNumber.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.js +6 -6
- package/lib/module/screens/Auth/VerifyPhoneNumberForLogin.js.map +1 -0
- package/lib/module/{auth/screens/index.js → screens/Auth/navigators.js} +1 -1
- package/lib/module/screens/Auth/navigators.js.map +1 -0
- package/lib/module/screens/Auth/validators.js +45 -0
- package/lib/module/screens/Auth/validators.js.map +1 -0
- package/lib/module/screens/SavedCards/CardRow.js +4 -4
- package/lib/module/screens/SavedCards/CardRow.js.map +1 -1
- package/lib/module/screens/SavedCards/SavedCards.js +5 -5
- package/lib/module/screens/SavedCards/SavedCards.js.map +1 -1
- package/lib/module/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.js +6 -6
- package/lib/module/screens/SelectBusiness/CreateBusinessBottomSheet.js.map +1 -0
- package/lib/module/{selectBusiness → screens/SelectBusiness}/SelectBusiness.js +9 -10
- package/lib/module/screens/SelectBusiness/SelectBusiness.js.map +1 -0
- package/lib/module/{auth/screens → screens/TermsOfService}/TermsOfService.js +8 -8
- package/lib/module/screens/TermsOfService/TermsOfService.js.map +1 -0
- package/lib/module/screens/index.js +5 -0
- package/lib/module/screens/index.js.map +1 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/src/{auth/api → api}/authentication.d.ts +6 -2
- package/lib/typescript/src/api/authentication.d.ts.map +1 -0
- package/lib/typescript/src/api/customer.d.ts +6 -2
- package/lib/typescript/src/api/customer.d.ts.map +1 -1
- package/lib/typescript/src/components/OfflineStrip.d.ts +3 -0
- package/lib/typescript/src/components/OfflineStrip.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/helpers/index.d.ts +2 -0
- package/lib/typescript/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +10 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/queryKeys.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAppVersionCheck.d.ts.map +1 -1
- package/lib/typescript/src/{auth/hooks/useAuthentication.d.ts → hooks/useAuth.d.ts} +2 -2
- package/lib/typescript/src/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAuthenticateRequests.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useBusinesses.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCreateBusiness.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCustomer.d.ts +6 -2
- package/lib/typescript/src/hooks/useCustomer.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useDeactivateAccount.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useLogout.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useTermsOfService.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +6 -11
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/localization/index.d.ts +91 -0
- package/lib/typescript/src/localization/index.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/AuthenticationProvider.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/actions/authentication.actions.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/reducer/authentication.reducer.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/types/authentication.types.d.ts.map +1 -0
- package/lib/typescript/src/providers/index.d.ts +3 -0
- package/lib/typescript/src/providers/index.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/ChangePassword.d.ts.map +1 -1
- package/lib/typescript/src/screens/Auth/Login.d.ts.map +1 -0
- package/lib/typescript/src/screens/Auth/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.d.ts.map +1 -1
- package/lib/typescript/src/screens/Auth/ResetPassword.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.d.ts.map +1 -1
- package/lib/typescript/src/screens/Auth/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/SignUpPassword.d.ts.map +1 -1
- package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.d.ts.map +1 -1
- package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.d.ts.map +1 -1
- package/lib/typescript/src/{auth/screens/index.d.ts → screens/Auth/navigators.d.ts} +1 -1
- package/lib/typescript/src/screens/Auth/navigators.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/validators.d.ts.map +1 -1
- package/lib/typescript/src/screens/SavedCards/CardRow.d.ts +1 -1
- package/lib/typescript/src/screens/SavedCards/CardRow.d.ts.map +1 -1
- package/lib/typescript/src/screens/SavedCards/SavedCards.d.ts +1 -1
- package/lib/typescript/src/screens/SavedCards/SavedCards.d.ts.map +1 -1
- package/lib/typescript/src/screens/SelectBusiness/CreateBusinessBottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/screens/SelectBusiness/SelectBusiness.d.ts.map +1 -0
- package/lib/typescript/src/screens/TermsOfService/TermsOfService.d.ts.map +1 -0
- package/lib/typescript/src/screens/index.d.ts +5 -0
- package/lib/typescript/src/screens/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/checkout.d.ts +1 -1
- package/lib/typescript/src/utils/checkout.d.ts.map +1 -1
- package/lib/typescript/src/utils/index.d.ts +4 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/package.json +4 -1
- package/src/{auth/api → api}/authentication.ts +6 -2
- package/src/api/customer.ts +6 -4
- package/src/assets/icons/alert.svg +4 -0
- package/src/components/Alert.tsx +1 -1
- package/src/components/OfflineStrip.tsx +52 -0
- package/src/components/SelectionDialog.tsx +1 -1
- package/src/components/Snackbar.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/helpers/index.ts +1 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/useAppVersionCheck.ts +7 -6
- package/src/{auth/hooks/useAuthentication.ts → hooks/useAuth.ts} +9 -12
- package/src/{auth/hooks → hooks}/useAuthenticateRequests.ts +1 -1
- package/src/{selectBusiness → hooks}/useCreateBusiness.ts +1 -1
- package/src/hooks/useCustomer.ts +7 -7
- package/src/{auth/hooks → hooks}/useDeactivateAccount.ts +3 -3
- package/src/{auth/hooks → hooks}/useLogout.ts +2 -2
- package/src/{auth/hooks → hooks}/useTermsOfService.ts +4 -4
- package/src/index.tsx +6 -22
- package/src/localization/index.ts +4 -0
- package/src/localization/translations/en.json +88 -0
- package/src/providers/index.ts +6 -0
- package/src/{auth/screens → screens/Auth}/ChangePassword.tsx +13 -14
- package/src/{auth/screens → screens/Auth}/Login.tsx +2 -2
- package/src/{auth/screens → screens/Auth}/LoginWithEmail.tsx +7 -7
- package/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.tsx +5 -5
- package/src/{auth/screens → screens/Auth}/ResetPassword.tsx +46 -8
- package/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.tsx +2 -2
- package/src/{auth/screens → screens/Auth}/SignUp.tsx +11 -12
- package/src/{auth/screens → screens/Auth}/SignUpPassword.tsx +11 -11
- package/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.tsx +6 -6
- package/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.tsx +6 -7
- package/src/{auth/screens → screens/Auth}/validators.ts +20 -20
- package/src/screens/SavedCards/CardRow.tsx +5 -5
- package/src/screens/SavedCards/SavedCards.tsx +6 -6
- package/src/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.tsx +6 -6
- package/src/{selectBusiness → screens/SelectBusiness}/SelectBusiness.tsx +9 -10
- package/src/{auth/screens → screens/TermsOfService}/TermsOfService.tsx +10 -8
- package/src/screens/index.ts +4 -0
- package/src/utils/checkout.ts +1 -1
- package/src/utils/index.ts +11 -0
- package/lib/commonjs/auth/api/authentication.js.map +0 -1
- package/lib/commonjs/auth/hooks/useAuthenticateRequests.js.map +0 -1
- package/lib/commonjs/auth/hooks/useAuthentication.js.map +0 -1
- package/lib/commonjs/auth/hooks/useDeactivateAccount.js.map +0 -1
- package/lib/commonjs/auth/hooks/useLogout.js.map +0 -1
- package/lib/commonjs/auth/hooks/useTermsOfService.js.map +0 -1
- package/lib/commonjs/auth/index.js +0 -65
- package/lib/commonjs/auth/index.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/AuthenticationProvider.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/actions/authentication.actions.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/index.js +0 -50
- package/lib/commonjs/auth/providers/authentication/index.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/reducer/authentication.reducer.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/types/authentication.types.js.map +0 -1
- package/lib/commonjs/auth/screens/LoginWithPhoneNumber.js.map +0 -1
- package/lib/commonjs/auth/screens/ResetPassword.js.map +0 -1
- package/lib/commonjs/auth/screens/SignUp.js.map +0 -1
- package/lib/commonjs/auth/screens/SignUpPassword.js.map +0 -1
- package/lib/commonjs/auth/screens/TermsOfService.js.map +0 -1
- package/lib/commonjs/auth/screens/VerifyPhoneNumber.js.map +0 -1
- package/lib/commonjs/auth/screens/VerifyPhoneNumberForLogin.js.map +0 -1
- package/lib/commonjs/auth/screens/index.js.map +0 -1
- package/lib/commonjs/auth/screens/validators.js.map +0 -1
- package/lib/commonjs/selectBusiness/CreateBusinessBottomSheet.js.map +0 -1
- package/lib/commonjs/selectBusiness/SelectBusiness.js.map +0 -1
- package/lib/commonjs/selectBusiness/index.js +0 -20
- package/lib/commonjs/selectBusiness/index.js.map +0 -1
- package/lib/commonjs/selectBusiness/queryKeys.js.map +0 -1
- package/lib/commonjs/selectBusiness/useBusinesses.js.map +0 -1
- package/lib/commonjs/selectBusiness/useCreateBusiness.js.map +0 -1
- package/lib/commonjs/types/customer.d.js +0 -7
- package/lib/commonjs/types/customer.d.js.map +0 -1
- package/lib/module/auth/api/authentication.js.map +0 -1
- package/lib/module/auth/hooks/useAuthenticateRequests.js.map +0 -1
- package/lib/module/auth/hooks/useAuthentication.js.map +0 -1
- package/lib/module/auth/hooks/useDeactivateAccount.js.map +0 -1
- package/lib/module/auth/hooks/useLogout.js.map +0 -1
- package/lib/module/auth/hooks/useTermsOfService.js.map +0 -1
- package/lib/module/auth/index.js +0 -7
- package/lib/module/auth/index.js.map +0 -1
- package/lib/module/auth/providers/authentication/AuthenticationProvider.js.map +0 -1
- package/lib/module/auth/providers/authentication/actions/authentication.actions.js.map +0 -1
- package/lib/module/auth/providers/authentication/index.js +0 -5
- package/lib/module/auth/providers/authentication/index.js.map +0 -1
- package/lib/module/auth/providers/authentication/reducer/authentication.reducer.js.map +0 -1
- package/lib/module/auth/providers/authentication/types/authentication.types.js.map +0 -1
- package/lib/module/auth/screens/LoginWithPhoneNumber.js.map +0 -1
- package/lib/module/auth/screens/ResetPassword.js.map +0 -1
- package/lib/module/auth/screens/SignUp.js.map +0 -1
- package/lib/module/auth/screens/SignUpPassword.js.map +0 -1
- package/lib/module/auth/screens/TermsOfService.js.map +0 -1
- package/lib/module/auth/screens/VerifyPhoneNumber.js.map +0 -1
- package/lib/module/auth/screens/VerifyPhoneNumberForLogin.js.map +0 -1
- package/lib/module/auth/screens/index.js.map +0 -1
- package/lib/module/auth/screens/validators.js +0 -45
- package/lib/module/auth/screens/validators.js.map +0 -1
- package/lib/module/selectBusiness/CreateBusinessBottomSheet.js.map +0 -1
- package/lib/module/selectBusiness/SelectBusiness.js.map +0 -1
- package/lib/module/selectBusiness/index.js +0 -3
- package/lib/module/selectBusiness/index.js.map +0 -1
- package/lib/module/selectBusiness/queryKeys.js.map +0 -1
- package/lib/module/selectBusiness/useBusinesses.js.map +0 -1
- package/lib/module/selectBusiness/useCreateBusiness.js.map +0 -1
- package/lib/module/types/customer.d.js +0 -5
- package/lib/module/types/customer.d.js.map +0 -1
- package/lib/typescript/src/auth/api/authentication.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useAuthenticateRequests.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useAuthentication.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useDeactivateAccount.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useLogout.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useTermsOfService.d.ts.map +0 -1
- package/lib/typescript/src/auth/index.d.ts +0 -7
- package/lib/typescript/src/auth/index.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/AuthenticationProvider.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/actions/authentication.actions.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/index.d.ts +0 -5
- package/lib/typescript/src/auth/providers/authentication/index.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/reducer/authentication.reducer.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/types/authentication.types.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/Login.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/LoginWithEmail.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/ResetPassword.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/SignUp.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/TermsOfService.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/index.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/CreateBusinessBottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/SelectBusiness.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/index.d.ts +0 -3
- package/lib/typescript/src/selectBusiness/index.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/queryKeys.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/useBusinesses.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/useCreateBusiness.d.ts.map +0 -1
- package/src/auth/index.ts +0 -10
- package/src/auth/providers/authentication/index.ts +0 -4
- package/src/selectBusiness/index.ts +0 -2
- package/src/types/customer.d.ts +0 -70
- /package/lib/commonjs/{auth/api → api}/authentication.js +0 -0
- /package/lib/commonjs/{selectBusiness → hooks}/queryKeys.js +0 -0
- /package/lib/commonjs/{selectBusiness → hooks}/useBusinesses.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/AuthenticationProvider.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/actions/authentication.actions.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/reducer/authentication.reducer.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/types/authentication.types.js +0 -0
- /package/lib/module/{auth/api → api}/authentication.js +0 -0
- /package/lib/module/{selectBusiness → hooks}/queryKeys.js +0 -0
- /package/lib/module/{selectBusiness → hooks}/useBusinesses.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/AuthenticationProvider.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/actions/authentication.actions.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/reducer/authentication.reducer.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/types/authentication.types.js +0 -0
- /package/lib/typescript/src/{selectBusiness → hooks}/queryKeys.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useAuthenticateRequests.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → hooks}/useBusinesses.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → hooks}/useCreateBusiness.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useDeactivateAccount.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useLogout.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useTermsOfService.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/AuthenticationProvider.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/actions/authentication.actions.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/reducer/authentication.reducer.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/types/authentication.types.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/ChangePassword.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/Login.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithEmail.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPassword.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/SignUp.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/SignUpPassword.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/validators.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → screens/SelectBusiness}/SelectBusiness.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/TermsOfService}/TermsOfService.d.ts +0 -0
- /package/src/{selectBusiness → hooks}/queryKeys.ts +0 -0
- /package/src/{selectBusiness → hooks}/useBusinesses.ts +0 -0
- /package/src/{auth/providers → providers}/authentication/AuthenticationProvider.tsx +0 -0
- /package/src/{auth/providers → providers}/authentication/actions/authentication.actions.ts +0 -0
- /package/src/{auth/providers → providers}/authentication/reducer/authentication.reducer.ts +0 -0
- /package/src/{auth/providers → providers}/authentication/types/authentication.types.ts +0 -0
- /package/src/{auth/screens/index.tsx → screens/Auth/navigators.tsx} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commons": {
|
|
3
|
+
"offline": "You seem to be offline... ",
|
|
4
|
+
"ok": "OK",
|
|
5
|
+
"close": "Close",
|
|
6
|
+
"create": "Create",
|
|
7
|
+
"update": "Update",
|
|
8
|
+
"cancel": "Cancel",
|
|
9
|
+
"delete": "Delete",
|
|
10
|
+
"continue": "Continue",
|
|
11
|
+
"logIn": "Log In",
|
|
12
|
+
"forgotPassword": "Forgot Password?",
|
|
13
|
+
"newToApp": "New to KIOS?",
|
|
14
|
+
"signUp": "Sign Up",
|
|
15
|
+
"email": "Email",
|
|
16
|
+
"password": "Password",
|
|
17
|
+
"requiredPassword": "Enter your Password",
|
|
18
|
+
"enterYour": "Enter Your Email to\nReset Password",
|
|
19
|
+
"resetPassword": "Reset Password",
|
|
20
|
+
"resetPasswordInstructionSent": "The reset password instructions were sent to {{email}}.",
|
|
21
|
+
"backToLogin": "Back to Log In",
|
|
22
|
+
"createAccountTitle": "Create a KIOS Account",
|
|
23
|
+
"createAccount": "Create Account",
|
|
24
|
+
"businessName": "Business Name",
|
|
25
|
+
"businessNameRequired": "Enter Business Name",
|
|
26
|
+
"displayName": "Name",
|
|
27
|
+
"displayNameRequired": "Enter a first and last name",
|
|
28
|
+
"phoneNumber": "Phone Number",
|
|
29
|
+
"requiredPhoneNumber": "Enter your Phone Number",
|
|
30
|
+
"passwordMustContain": "Password must contain:",
|
|
31
|
+
"minLength": "At least 8 characters",
|
|
32
|
+
"1lowerChar": "At least 1 lowercase character",
|
|
33
|
+
"1upperChar": "At least 1 uppercase character",
|
|
34
|
+
"1number": "At least 1 number",
|
|
35
|
+
"1special": "At least 1 special character",
|
|
36
|
+
"validEmail": "Email must be a valid email",
|
|
37
|
+
"requiredEmailForLogin": "Enter the email you have an account with",
|
|
38
|
+
"requiredEmailForSignUp": "Enter the email you want to create an account with",
|
|
39
|
+
"byContinue": "By continuing, you agree to KIOS’s",
|
|
40
|
+
"termsAndConditions": "Terms and Conditions",
|
|
41
|
+
"and": "and",
|
|
42
|
+
"privacyPolicy": "Privacy Policy.",
|
|
43
|
+
"createPassword": "Create a Password",
|
|
44
|
+
"verifyYourNumber": "Verify Your Number",
|
|
45
|
+
"loginWithNumber": "Login with Number",
|
|
46
|
+
"codeSent": "We’ve sent a 6-digital code to your {{phoneNumber}}.",
|
|
47
|
+
"resendCode": "Resend Code",
|
|
48
|
+
"userDoesNotExist": "No account found with '{{emailOrPhoneNumber}}'.",
|
|
49
|
+
"wrongCredentials": "You have entered an invalid email or password",
|
|
50
|
+
"deactivationSuccess": "Your account deactivated successfully",
|
|
51
|
+
"wrongOTP": "The verification code which you entered is invalid, Please enter the correct code.",
|
|
52
|
+
"passwordChangeSuccess": "Password changed successfully",
|
|
53
|
+
"newPassword": "New Password",
|
|
54
|
+
"currentPassword": "Current Password",
|
|
55
|
+
"changePassword": "Change password",
|
|
56
|
+
"wrongPassword": "Wrong password",
|
|
57
|
+
"wrongPasswordDesc": "The password you have entered is invalid",
|
|
58
|
+
"resetPasswordWarningAlert": {
|
|
59
|
+
"title": "Log out of all kiosks",
|
|
60
|
+
"description": "Resetting your password will automatically log you out of all your kiosks. Are you sure you want to continue?"
|
|
61
|
+
},
|
|
62
|
+
"appUpdateAlert": {
|
|
63
|
+
"title": "New Update ✨",
|
|
64
|
+
"description": "A new version of the app is available. Please update to the latest version for the best experience."
|
|
65
|
+
},
|
|
66
|
+
"addCard": "Add card",
|
|
67
|
+
"noSavedCards": "You have no saved card yet.",
|
|
68
|
+
"paymentMethods": "Payment methods",
|
|
69
|
+
"payment": "Payment",
|
|
70
|
+
"payAndPlaceOrder": "Pay & Place order",
|
|
71
|
+
"payByCard": "Pay by card",
|
|
72
|
+
"confirmCardDelete": "Confirm Delete Card",
|
|
73
|
+
"cardDeleteDesc": "Are you sure you want to delete card ending in {{card}}?",
|
|
74
|
+
"total": "Subtotal",
|
|
75
|
+
"createBusiness": "Create Business",
|
|
76
|
+
"selectBusiness": "Select Business",
|
|
77
|
+
"searchBusiness": "Search Business",
|
|
78
|
+
"noBusiness": "Looks like you don't have any businesses.",
|
|
79
|
+
"logout": "Logout",
|
|
80
|
+
"termsOfServiceModal": {
|
|
81
|
+
"title": "Please accept the updated terms to continue using Remy",
|
|
82
|
+
"description": "You can view the updated terms at any time but you will need to accept the terms in order to access your account.",
|
|
83
|
+
"review": "Review Terms"
|
|
84
|
+
},
|
|
85
|
+
"termsTitle": "Terms of Service Update",
|
|
86
|
+
"acceptTerms": "Accept Terms"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createContext","useCallback","useContext","useEffect","useReducer","auth","authenticationReducer","useAuthenticateRequests","changeUser","AuthenticationContext","AuthenticationDispatchContext","useAuthentication","useAuthenticationDispatch","AuthenticationProvider","children","authentication","dispatch","initializing","user","isSignedIn","getToken","getIdToken","isAnonymous","signInAnonymously","onAuthStateChanged","subscriber","createElement","Provider","value"],"sourceRoot":"../../../../src","sources":["providers/authentication/AuthenticationProvider.tsx"],"mappings":"AAAA,OAAOA,KAAK,IACVC,aAAa,EAGbC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,UAAU,QACL,OAAO;AACd,OAAOC,IAAI,MAA6B,6BAA6B;AAMrE,SAASC,qBAAqB,QAAQ,kCAAkC;AACxE,SAASC,uBAAuB,QAAQ,qCAAqC;AAC7E,SAASC,UAAU,QAAQ,kCAAkC;AAE7D,MAAMC,qBAAqB,gBAAGT,aAAa,CAA6B,IAAI,CAAC;AAC7E,MAAMU,6BAA6B,gBACjCV,aAAa,CAAwC,IAAI,CAAC;AAC5D,OAAO,MAAMW,iBAAiB,GAAGA,CAAA,KAC/BT,UAAU,CAACO,qBAAqB,CAAwB;AAC1D,OAAO,MAAMG,yBAAyB,GAAGA,CAAA,KACvCV,UAAU,CAACQ,6BAA6B,CAAmC;AAE7E,OAAO,MAAMG,sBAAyD,GAAGA,CAAC;EACxEC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,cAAc,EAAEC,QAAQ,CAAC,GAAGZ,UAAU,CAACE,qBAAqB,EAAE;IACnEW,YAAY,EAAE,IAAI;IAClBC,IAAI,EAAE,IAAI;IACVC,UAAU,EAAE;EACd,CAAC,CAAC;EAEF,MAAMC,QAAQ,GAAGnB,WAAW,CAAC,YAAY;IACvC,IAAIc,cAAc,CAACG,IAAI,EAAE;MACvB,OAAO,MAAMH,cAAc,CAACG,IAAI,CAACG,UAAU,CAAC,CAAC;IAC/C;IACA,OAAO,IAAI;IACX;EACF,CAAC,EAAE,CAACN,cAAc,CAACG,IAAI,EAAEH,cAAc,CAACG,IAAI,EAAEI,WAAW,CAAC,CAAC;EAC3Df,uBAAuB,CAACa,QAAQ,CAAC;EAEjCjB,SAAS,CAAC,MAAM;IACd,IAAIY,cAAc,CAACE,YAAY,KAAK,KAAK,IAAI,CAACF,cAAc,CAACG,IAAI,EAAE;MACjEb,IAAI,CAAC,CAAC,CAACkB,iBAAiB,CAAC,CAAC;IAC5B;EACF,CAAC,EAAE,CAACR,cAAc,CAACG,IAAI,EAAEH,cAAc,CAACE,YAAY,CAAC,CAAC;;EAEtD;EACA,SAASO,kBAAkBA,CAACN,IAAmC,EAAE;IAC/DF,QAAQ,CAACR,UAAU,CAACU,IAAI,CAAC,CAAC;EAC5B;EAEAf,SAAS,CAAC,MAAM;IACd,MAAMsB,UAAU,GAAGpB,IAAI,CAAC,CAAC,CAACmB,kBAAkB,CAACA,kBAAkB,CAAC;IAChE,OAAOC,UAAU,CAAC,CAAC;EACrB,CAAC,EAAE,EAAE,CAAC;EAEN,oBACE1B,KAAA,CAAA2B,aAAA,CAACjB,qBAAqB,CAACkB,QAAQ;IAACC,KAAK,EAAEb;EAAe,gBACpDhB,KAAA,CAAA2B,aAAA,CAAChB,6BAA6B,CAACiB,QAAQ;IAACC,KAAK,EAAEZ;EAAS,GACrDF,QACqC,CACV,CAAC;AAErC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AuthenticationActionType","changeUser","user","type","ChangeUser"],"sourceRoot":"../../../../../src","sources":["providers/authentication/actions/authentication.actions.ts"],"mappings":"AAAA,SAEEA,wBAAwB,QAEnB,+BAA+B;AAEtC,OAAO,MAAMC,UAAU,GAAIC,IAAiB,KAA4B;EACtEC,IAAI,EAAEH,wBAAwB,CAACI,UAAU;EACzCF;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AuthenticationActionType","isSignedIn","user","isAnonymous","email","phoneNumber","authenticationReducer","state","action","type","ChangeUser","initializing"],"sourceRoot":"../../../../../src","sources":["providers/authentication/reducer/authentication.reducer.ts"],"mappings":"AACA,SAEEA,wBAAwB,QAEnB,+BAA+B;AAEtC,MAAMC,UAAU,GAAIC,IAA4B,IAAK;EACnD,IAAIA,IAAI,CAACC,WAAW,EAAE;IACpB;IACA,OAAO,KAAK;EACd,CAAC,MAAM,IAAID,IAAI,CAACE,KAAK,EAAE;IACrB;IACA,IAAIF,IAAI,CAACG,WAAW,EAAE;MACpB,OAAO,IAAI;IACb,CAAC,MAAM;MACL,OAAO,KAAK;IACd;EACF,CAAC,MAAM,IAAIH,IAAI,CAACG,WAAW,EAAE;IAC3B;IACA,OAAO,IAAI;EACb;EACA,OAAO,KAAK;AACd,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAGA,CACnCC,KAA0B,EAC1BC,MAA4B,KACJ;EACxB,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAKT,wBAAwB,CAACU,UAAU;MACtC,OAAO;QACL,GAAGH,KAAK;QACRI,YAAY,EAAE,KAAK;QACnBT,IAAI,EAAEM,MAAM,CAACN,IAAI;QACjBD,UAAU,EAAEO,MAAM,CAACN,IAAI,GAAGD,UAAU,CAACO,MAAM,CAACN,IAAI,CAAC,GAAG;MACtD,CAAC;IACH;MACE,OAAOK,KAAK;EAChB;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AuthenticationActionType"],"sourceRoot":"../../../../../src","sources":["providers/authentication/types/authentication.types.ts"],"mappings":"AAIA,WAAYA,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["changeUser","useAuthentication","useAuthenticationDispatch","AuthenticationProvider"],"sourceRoot":"../../../src","sources":["providers/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,iDAAiD;AAC5E,SACEC,iBAAiB,EACjBC,yBAAyB,EACzBC,sBAAsB,QACjB,yCAAyC"}
|
|
@@ -40,19 +40,19 @@ export const ChangePassword = ({
|
|
|
40
40
|
await user.updatePassword(data.newPassword);
|
|
41
41
|
setIsLoading(false);
|
|
42
42
|
Snackbar.show({
|
|
43
|
-
title: t('
|
|
43
|
+
title: t('commons.passwordChangeSuccess')
|
|
44
44
|
});
|
|
45
45
|
navigation.goBack();
|
|
46
46
|
}
|
|
47
47
|
} catch (error) {
|
|
48
48
|
setIsLoading(false);
|
|
49
49
|
Alert.show({
|
|
50
|
-
title: t('
|
|
51
|
-
description: t('
|
|
50
|
+
title: t('commons.wrongPassword'),
|
|
51
|
+
description: t('commons.wrongPasswordDesc')
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
const passwordExpectations = [t('
|
|
55
|
+
const passwordExpectations = [t('commons.minLength'), t('commons.1lowerChar'), t('commons.1upperChar'), t('commons.1number'), t('commons.1special')];
|
|
56
56
|
return /*#__PURE__*/React.createElement(ParentView, null, /*#__PURE__*/React.createElement(Header, {
|
|
57
57
|
title: route.params?.backText ?? '',
|
|
58
58
|
textAlign: "left"
|
|
@@ -71,7 +71,7 @@ export const ChangePassword = ({
|
|
|
71
71
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
72
72
|
pb: "40",
|
|
73
73
|
variant: "titleLarge"
|
|
74
|
-
}, t('
|
|
74
|
+
}, t('commons.changePassword'))), /*#__PURE__*/React.createElement(Controller, {
|
|
75
75
|
control: control,
|
|
76
76
|
render: ({
|
|
77
77
|
field: {
|
|
@@ -91,7 +91,7 @@ export const ChangePassword = ({
|
|
|
91
91
|
onBlur: onBlur,
|
|
92
92
|
onChangeText: onChange,
|
|
93
93
|
value: value,
|
|
94
|
-
label: t('
|
|
94
|
+
label: t('commons.currentPassword')
|
|
95
95
|
});
|
|
96
96
|
},
|
|
97
97
|
name: "currentPassword"
|
|
@@ -117,10 +117,10 @@ export const ChangePassword = ({
|
|
|
117
117
|
trigger();
|
|
118
118
|
},
|
|
119
119
|
value: value,
|
|
120
|
-
label: t('
|
|
120
|
+
label: t('commons.password')
|
|
121
121
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
122
122
|
pt: "4"
|
|
123
|
-
}, t('
|
|
123
|
+
}, t('commons.passwordMustContain')), passwordExpectations.map((expectation, index) => {
|
|
124
124
|
const didExpectationFoundInErrors = passwordErrors?.includes(expectation) ?? false;
|
|
125
125
|
return /*#__PURE__*/React.createElement(View, {
|
|
126
126
|
flexDirection: "row",
|
|
@@ -138,6 +138,6 @@ export const ChangePassword = ({
|
|
|
138
138
|
mt: "24",
|
|
139
139
|
onPress: handleSubmit(handleChangePassword),
|
|
140
140
|
mode: "contained"
|
|
141
|
-
}, t('
|
|
141
|
+
}, t('commons.changePassword')))));
|
|
142
142
|
};
|
|
143
143
|
//# sourceMappingURL=ChangePassword.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Alert","Button","Header","KeyboardAvoidingView","ParentView","Snackbar","Text","TextInput","View","auth","Controller","useForm","yupResolver","useTranslation","useNavigation","changePasswordSchema","ChangePassword","route","t","navigation","isLoading","setIsLoading","handleSubmit","control","formState","errors","isDirty","trigger","criteriaMode","resolver","defaultValues","currentPassword","newPassword","handleChangePassword","data","user","currentUser","email","credential","EmailAuthProvider","reauthenticateWithCredential","updatePassword","show","title","goBack","error","description","passwordExpectations","createElement","params","backText","textAlign","flex","px","behavior","width","phone","tablet","alignItems","pb","variant","render","field","onChange","onBlur","value","autoFocus","my","autoCapitalize","mode","secureTextEntry","message","errorMessage","onChangeText","label","name","passwordErrors","Object","values","types","flat","autoComplete","text","pt","map","expectation","index","didExpectationFoundInErrors","includes","flexDirection","key","color","loading","mt","onPress"],"sourceRoot":"../../../../src","sources":["
|
|
1
|
+
{"version":3,"names":["React","useState","Alert","Button","Header","KeyboardAvoidingView","ParentView","Snackbar","Text","TextInput","View","auth","Controller","useForm","yupResolver","useTranslation","useNavigation","changePasswordSchema","ChangePassword","route","t","navigation","isLoading","setIsLoading","handleSubmit","control","formState","errors","isDirty","trigger","criteriaMode","resolver","defaultValues","currentPassword","newPassword","handleChangePassword","data","user","currentUser","email","credential","EmailAuthProvider","reauthenticateWithCredential","updatePassword","show","title","goBack","error","description","passwordExpectations","createElement","params","backText","textAlign","flex","px","behavior","width","phone","tablet","alignItems","pb","variant","render","field","onChange","onBlur","value","autoFocus","my","autoCapitalize","mode","secureTextEntry","message","errorMessage","onChangeText","label","name","passwordErrors","Object","values","types","flat","autoComplete","text","pt","map","expectation","index","didExpectationFoundInErrors","includes","flexDirection","key","color","loading","mt","onPress"],"sourceRoot":"../../../../src","sources":["screens/Auth/ChangePassword.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,KAAK,EACLC,MAAM,EACNC,MAAM,EACNC,oBAAoB,EACpBC,UAAU,EACVC,QAAQ,EACRC,IAAI,EACJC,SAAS,EACTC,IAAI,QACC,kBAAkB;AACzB,OAAOC,IAAI,MAAM,6BAA6B;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,iBAAiB;AACrD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAAoBC,aAAa,QAAQ,0BAA0B;AACnE,SAASC,oBAAoB,QAAQ,cAAc;AAWnD,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAAEC;AAAM,CAAC,KAAK;EAC1E,MAAM;IAAEC;EAAE,CAAC,GAAGL,cAAc,CAAC,CAAC;EAC9B,MAAMM,UAAU,GAAGL,aAAa,CAAC,CAAC;EAClC,MAAM,CAACM,SAAS,EAAEC,YAAY,CAAC,GAAGtB,QAAQ,CAAC,KAAK,CAAC;EACjD,MAAM;IACJuB,YAAY;IACZC,OAAO;IACPC,SAAS,EAAE;MAAEC,MAAM;MAAEC;IAAQ,CAAC;IAC9BC;EACF,CAAC,GAAGhB,OAAO,CAAgB;IACzBiB,YAAY,EAAE,KAAK;IAC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HsD,OAAO,EAAC,WAAW;UACnB+B,KAAK,EACHjE,OAAO,GACH6D,2BAA2B,GACzB,OAAO,GACP,SAAS,GACX;QACL,GAEA,KAAK,GAAGF,WACL,CACF,CAAC;MAEX,CAAC,CACG,CAAC;IAEX,CAAE;IACFV,IAAI,EAAC;EAAa,CACnB,CAAC,eAEF7E,KAAA,CAAAkD,aAAA,CAAC/C,MAAM;IACL2F,OAAO,EAAExE,SAAU;IACnByE,EAAE,EAAC,IAAI;IACPC,OAAO,EAAExE,YAAY,CAACW,oBAAoB,CAAE;IAC5CoC,IAAI,EAAC;EAAW,GAEfnD,CAAC,CAAC,wBAAwB,CACrB,CACY,CAClB,CACI,CAAC;AAEjB,CAAC"}
|
|
@@ -72,7 +72,7 @@ export const Login = () => {
|
|
|
72
72
|
}, /*#__PURE__*/React.createElement(Tab.Screen, {
|
|
73
73
|
options: {
|
|
74
74
|
tabBarLabel: TabBarTitle({
|
|
75
|
-
title: t('
|
|
75
|
+
title: t('commons.phoneNumber')
|
|
76
76
|
})
|
|
77
77
|
},
|
|
78
78
|
name: "LoginWithPhoneNumber",
|
|
@@ -80,7 +80,7 @@ export const Login = () => {
|
|
|
80
80
|
}), /*#__PURE__*/React.createElement(Tab.Screen, {
|
|
81
81
|
options: {
|
|
82
82
|
tabBarLabel: TabBarTitle({
|
|
83
|
-
title: t('
|
|
83
|
+
title: t('commons.email')
|
|
84
84
|
})
|
|
85
85
|
},
|
|
86
86
|
name: "LoginWithEmail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ParentView","Text","View","KeyboardAvoidingView","Header","useTheme","React","useEffect","useTranslation","AppLogo","useMMKVString","MMKV_KEYS","FastImage","useQueryClient","StyleSheet","createMaterialTopTabNavigator","LoginWithPhoneNumber","LoginWithEmail","DeviceInfo","Config","Tab","TabBarTitle","title","focused","createElement","variant","color","Login","t","_","setBusinessId","BUSINESS_ID","queryClient","APP_NAME","clear","undefined","clearMemoryCache","clearDiskCache","theme","tabBarStyles","getStyles","px","left","position","zIndex","flex","justifyContent","alignSelf","width","phone","tablet","alignItems","pt","flexGrow","flexShrink","Navigator","screenOptions","animationEnabled","tabBarIndicatorStyle","tabBarStyle","backgroundColor","colors","background","Screen","options","tabBarLabel","name","component","bottom","textAlign","getVersion","getBuildNumber","create","primary","height","borderTopLeftRadius","borderTopRightRadius"],"sourceRoot":"../../../../src","sources":["
|
|
1
|
+
{"version":3,"names":["ParentView","Text","View","KeyboardAvoidingView","Header","useTheme","React","useEffect","useTranslation","AppLogo","useMMKVString","MMKV_KEYS","FastImage","useQueryClient","StyleSheet","createMaterialTopTabNavigator","LoginWithPhoneNumber","LoginWithEmail","DeviceInfo","Config","Tab","TabBarTitle","title","focused","createElement","variant","color","Login","t","_","setBusinessId","BUSINESS_ID","queryClient","APP_NAME","clear","undefined","clearMemoryCache","clearDiskCache","theme","tabBarStyles","getStyles","px","left","position","zIndex","flex","justifyContent","alignSelf","width","phone","tablet","alignItems","pt","flexGrow","flexShrink","Navigator","screenOptions","animationEnabled","tabBarIndicatorStyle","tabBarStyle","backgroundColor","colors","background","Screen","options","tabBarLabel","name","component","bottom","textAlign","getVersion","getBuildNumber","create","primary","height","borderTopLeftRadius","borderTopRightRadius"],"sourceRoot":"../../../../src","sources":["screens/Auth/Login.tsx"],"mappings":"AAAA,SACEA,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,oBAAoB,EACpBC,MAAM,QACD,kBAAkB;AACzB,SAASC,QAAQ,QAAQ,0BAA0B;AACnD,OAAOC,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,cAAc,QAAQ,eAAe;AAC9C,OAAOC,OAAO,MAAM,gCAAgC;AACpD,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,6BAA6B,Q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AE;IACFsC,IAAI,EAAC,gBAAgB;IACrBC,SAAS,EAAElD;EAAe,CAC3B,CACY,CACX,CACc,CAAC,eACvBX,KAAA,CAAAkB,aAAA,CAACtB,IAAI;IAACyC,QAAQ,EAAE,UAAW;IAACyB,MAAM,EAAE,EAAG;IAACpB,KAAK,EAAE;EAAO,gBACpD1C,KAAA,CAAAkB,aAAA,CAACvB,IAAI;IACHwB,OAAO,EAAC,WAAW;IACnBsB,SAAS,EAAE,QAAS;IACpBrB,KAAK,EAAC,WAAW;IACjB2C,SAAS,EAAC;EAAQ,GACjB,GAAEzC,CAAC,CACJ,iBACF,CAAE,IAAGV,UAAU,CAACoD,UAAU,CAAC,CAAE,KAAIpD,UAAU,CAACqD,cAAc,CAAC,CAAE,GAAS,CAClE,CACF,CACI,CAAC;AAEjB,CAAC;AAED,MAAM/B,SAAS,GAAIF,KAAU,IAC3BxB,UAAU,CAAC0D,MAAM,CAAC;EAChBd,oBAAoB,EAAE;IACpBE,eAAe,EAAEtB,KAAK,CAACuB,MAAM,CAACY,OAAO;IACrC/B,IAAI,EAAE,KAAK;IACXM,KAAK,EAAE,KAAK;IACZ0B,MAAM,EAAE,CAAC;IACTC,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE,EAAE;IACxB7B,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
|
|
@@ -43,7 +43,7 @@ export const LoginWithEmail = () => {
|
|
|
43
43
|
});
|
|
44
44
|
}).catch(() => {
|
|
45
45
|
Snackbar.show({
|
|
46
|
-
title: t('
|
|
46
|
+
title: t('commons.wrongCredentials')
|
|
47
47
|
});
|
|
48
48
|
}).finally(() => {
|
|
49
49
|
setIsLoading(false);
|
|
@@ -73,7 +73,7 @@ export const LoginWithEmail = () => {
|
|
|
73
73
|
onBlur: onBlur,
|
|
74
74
|
onChangeText: onChange,
|
|
75
75
|
value: value,
|
|
76
|
-
label: t('
|
|
76
|
+
label: t('commons.email')
|
|
77
77
|
});
|
|
78
78
|
},
|
|
79
79
|
name: "email"
|
|
@@ -96,7 +96,7 @@ export const LoginWithEmail = () => {
|
|
|
96
96
|
onBlur: onBlur,
|
|
97
97
|
onChangeText: onChange,
|
|
98
98
|
value: value,
|
|
99
|
-
label: t('
|
|
99
|
+
label: t('commons.password')
|
|
100
100
|
});
|
|
101
101
|
},
|
|
102
102
|
name: "password"
|
|
@@ -109,18 +109,18 @@ export const LoginWithEmail = () => {
|
|
|
109
109
|
});
|
|
110
110
|
navigation.navigate('ResetPassword');
|
|
111
111
|
}
|
|
112
|
-
}, t('
|
|
112
|
+
}, t('commons.forgotPassword'))), /*#__PURE__*/React.createElement(Button, {
|
|
113
113
|
loading: isLoading,
|
|
114
114
|
mode: "contained",
|
|
115
115
|
onPress: handleSubmit(onSubmit)
|
|
116
|
-
}, t('
|
|
116
|
+
}, t('commons.logIn')), Config.APP_NAME !== 'git' && /*#__PURE__*/React.createElement(View, {
|
|
117
117
|
alignItems: "center",
|
|
118
118
|
justifyContent: "center",
|
|
119
119
|
pt: "4",
|
|
120
120
|
flexDirection: "row"
|
|
121
121
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
122
122
|
variant: "labelLarge"
|
|
123
|
-
}, t('
|
|
123
|
+
}, t('commons.newToApp')), /*#__PURE__*/React.createElement(LinkButton, {
|
|
124
124
|
mode: "text",
|
|
125
125
|
onPress: () => {
|
|
126
126
|
analytics.track({
|
|
@@ -128,6 +128,6 @@ export const LoginWithEmail = () => {
|
|
|
128
128
|
});
|
|
129
129
|
navigation.navigate('SignUp');
|
|
130
130
|
}
|
|
131
|
-
}, t('
|
|
131
|
+
}, t('commons.signUp'))));
|
|
132
132
|
};
|
|
133
133
|
//# sourceMappingURL=LoginWithEmail.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","TextInput","Button","LinkButton","Snackbar","Text","useNavigation","React","useState","useTranslation","Controller","useForm","yupResolver","loginValidationSchema","auth","analytics","Config","analyticsKeys","Keyboard","LoginWithEmail","t","navigation","isLoading","setIsLoading","handleSubmit","control","formState","errors","resolver","defaultValues","email","password","onSubmit","data","dismiss","signInWithEmailAndPassword","then","identify","currentUser","uid","profile","set","app","URL_SCHEME","track","eventName","properties","method","catch","show","title","finally","createElement","paddingTop","minHeight","render","field","onChange","onBlur","value","my","keyboardType","autoCapitalize","mode","autoComplete","error","message","errorMessage","onChangeText","label","name","mt","secureTextEntry","alignSelf","onPress","navigate","loading","APP_NAME","alignItems","justifyContent","pt","flexDirection","variant"],"sourceRoot":"../../../../src","sources":["
|
|
1
|
+
{"version":3,"names":["View","TextInput","Button","LinkButton","Snackbar","Text","useNavigation","React","useState","useTranslation","Controller","useForm","yupResolver","loginValidationSchema","auth","analytics","Config","analyticsKeys","Keyboard","LoginWithEmail","t","navigation","isLoading","setIsLoading","handleSubmit","control","formState","errors","resolver","defaultValues","email","password","onSubmit","data","dismiss","signInWithEmailAndPassword","then","identify","currentUser","uid","profile","set","app","URL_SCHEME","track","eventName","properties","method","catch","show","title","finally","createElement","paddingTop","minHeight","render","field","onChange","onBlur","value","my","keyboardType","autoCapitalize","mode","autoComplete","error","message","errorMessage","onChangeText","label","name","mt","secureTextEntry","alignSelf","onPress","navigate","loading","APP_NAME","alignItems","justifyContent","pt","flexDirection","variant"],"sourceRoot":"../../../../src","sources":["screens/Auth/LoginWithEmail.tsx"],"mappings":"AAAA,SACEA,IAAI,EACJC,SAAS,EACTC,MAAM,EACNC,UAAU,EACVC,QAAQ,EACRC,IAAI,QACC,kBAAkB;AACzB,SAA8BC,aAAa,QAAQ,0BAA0B;AAC7E,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,iBAAiB;AACrD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,qBAAqB,QAAQ,cAAc;AACpD,OAAOC,IAAI,MAAM,6BAA6B;AAC9C,SAASC,SAAS,QAAQ,uBAAuB;AACjD,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,KAAK,CAAC;QAAEC,SAAS,EAAE;MAAkB,CAAC,CAAC;MACjDxB,UAAU,CAACsD,QAAQ,CAAC,QAAQ,CAAC;IAC/B;EAAE,GAEDvD,CAAC,CAAC,gBAAgB,CACT,CACR,CAEJ,CAAC;AAEX,CAAC"}
|
|
@@ -4,18 +4,18 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { Controller, useForm } from 'react-hook-form';
|
|
5
5
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
6
6
|
import { loginWithPhoneNumberValidationSchema } from './validators';
|
|
7
|
-
import { useAuthentication } from '../hooks/useAuthentication';
|
|
8
7
|
import { Keyboard } from 'react-native';
|
|
9
8
|
import Config from 'react-native-config';
|
|
10
9
|
import { analytics } from '../../utils/analytics';
|
|
11
10
|
import { useNavigation } from '@react-navigation/native';
|
|
11
|
+
import { useAuth } from '../../hooks';
|
|
12
12
|
export const LoginWithPhoneNumber = () => {
|
|
13
13
|
const {
|
|
14
14
|
t
|
|
15
15
|
} = useTranslation();
|
|
16
16
|
const {
|
|
17
17
|
useVerifyPhoneNumberForLogin
|
|
18
|
-
} =
|
|
18
|
+
} = useAuth();
|
|
19
19
|
const {
|
|
20
20
|
mutate: sendCode,
|
|
21
21
|
isLoading: isSendingCode
|
|
@@ -72,14 +72,14 @@ export const LoginWithPhoneNumber = () => {
|
|
|
72
72
|
loading: isSendingCode,
|
|
73
73
|
mode: "contained",
|
|
74
74
|
onPress: handleSubmit(onSubmit)
|
|
75
|
-
}, t('
|
|
75
|
+
}, t('commons.logIn')), Config.APP_NAME !== 'git' && /*#__PURE__*/React.createElement(View, {
|
|
76
76
|
alignItems: "center",
|
|
77
77
|
justifyContent: "center",
|
|
78
78
|
pt: "4",
|
|
79
79
|
flexDirection: "row"
|
|
80
80
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
81
81
|
variant: "labelLarge"
|
|
82
|
-
}, t('
|
|
82
|
+
}, t('commons.newToApp')), /*#__PURE__*/React.createElement(LinkButton, {
|
|
83
83
|
mode: "text",
|
|
84
84
|
onPress: () => {
|
|
85
85
|
analytics.track({
|
|
@@ -87,6 +87,6 @@ export const LoginWithPhoneNumber = () => {
|
|
|
87
87
|
});
|
|
88
88
|
navigation.navigate('SignUp');
|
|
89
89
|
}
|
|
90
|
-
}, t('
|
|
90
|
+
}, t('commons.signUp'))));
|
|
91
91
|
};
|
|
92
92
|
//# sourceMappingURL=LoginWithPhoneNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Button","LinkButton","PhoneInput","Text","View","React","useState","useTranslation","Controller","useForm","yupResolver","loginWithPhoneNumberValidationSchema","Keyboard","Config","analytics","useNavigation","useAuth","LoginWithPhoneNumber","t","useVerifyPhoneNumberForLogin","mutate","sendCode","isLoading","isSendingCode","selectedCountry","setSelectedCountry","handleSubmit","control","formState","errors","resolver","isUSNumber","callingCode","defaultValues","phoneNumber","navigation","onSubmit","data","dismiss","replaceAll","createElement","paddingTop","minHeight","render","field","onChange","onBlur","value","placeholder","onChangePhoneNumber","defaultCountry","errorMessage","message","onChangeSelectedCountry","name","loading","mode","onPress","APP_NAME","alignItems","justifyContent","pt","flexDirection","variant","track","eventName","navigate"],"sourceRoot":"../../../../src","sources":["screens/Auth/LoginWithPhoneNumber.tsx"],"mappings":"AAAA,SAASA,MAAM,EAAEC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AAC7E,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,iBAAiB;AACrD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,oCAAoC,QAAQ,cAAc;AAEnE,SAASC,QAAQ,QAAQ,cAAc;AACvC,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAAyBC,aAAa,QAAQ,0BAA0B;A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
-
import { ParentView, Text, TextInput, Button, KeyboardAvoidingView, Header } from '../../components';
|
|
2
|
-
import { useNavigation } from '@react-navigation/native';
|
|
1
|
+
import { ParentView, Text, TextInput, Button, KeyboardAvoidingView, Header, Alert, View } from '../../components';
|
|
2
|
+
import { useNavigation, useTheme } from '@react-navigation/native';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { Controller, useForm } from 'react-hook-form';
|
|
6
6
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
7
|
+
import { useAuth } from '../../hooks/useAuth';
|
|
8
|
+
import Config from 'react-native-config';
|
|
7
9
|
import { resetPasswordValidationSchema } from './validators';
|
|
8
|
-
import
|
|
10
|
+
import AlertSVG from '../../assets/icons/alert.svg';
|
|
9
11
|
export const ResetPassword = () => {
|
|
10
12
|
const {
|
|
11
13
|
t
|
|
@@ -13,11 +15,12 @@ export const ResetPassword = () => {
|
|
|
13
15
|
const navigation = useNavigation();
|
|
14
16
|
const {
|
|
15
17
|
useResetPassword
|
|
16
|
-
} =
|
|
18
|
+
} = useAuth();
|
|
17
19
|
const {
|
|
18
20
|
mutate: resetPassword,
|
|
19
21
|
isLoading
|
|
20
22
|
} = useResetPassword();
|
|
23
|
+
const theme = useTheme();
|
|
21
24
|
const {
|
|
22
25
|
handleSubmit,
|
|
23
26
|
control,
|
|
@@ -31,9 +34,38 @@ export const ResetPassword = () => {
|
|
|
31
34
|
}
|
|
32
35
|
});
|
|
33
36
|
const onSubmit = async data => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
if (!['gusteau'].includes(Config.APP_NAME ?? '')) {
|
|
38
|
+
Alert.show({
|
|
39
|
+
renderDescription: () => {
|
|
40
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
41
|
+
pt: '24'
|
|
42
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
43
|
+
alignSelf: 'center'
|
|
44
|
+
}, /*#__PURE__*/React.createElement(AlertSVG, {
|
|
45
|
+
fill: theme.colors.text
|
|
46
|
+
})), /*#__PURE__*/React.createElement(Text, {
|
|
47
|
+
variant: "titleMedium",
|
|
48
|
+
textAlign: 'center',
|
|
49
|
+
py: '16'
|
|
50
|
+
}, t('commons.resetPasswordWarningAlert.title')), /*#__PURE__*/React.createElement(Text, {
|
|
51
|
+
variant: "bodyMedium",
|
|
52
|
+
pb: '16'
|
|
53
|
+
}, t('commons.resetPasswordWarningAlert.description')));
|
|
54
|
+
},
|
|
55
|
+
buttons: [{
|
|
56
|
+
label: t('commons.continue'),
|
|
57
|
+
onPress: () => resetPassword({
|
|
58
|
+
email: data.email
|
|
59
|
+
})
|
|
60
|
+
}, {
|
|
61
|
+
label: t('commons.cancel')
|
|
62
|
+
}]
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
resetPassword({
|
|
66
|
+
email: data.email
|
|
67
|
+
});
|
|
68
|
+
}
|
|
37
69
|
};
|
|
38
70
|
return /*#__PURE__*/React.createElement(ParentView, {
|
|
39
71
|
px: "16"
|
|
@@ -52,7 +84,7 @@ export const ResetPassword = () => {
|
|
|
52
84
|
py: "48",
|
|
53
85
|
textAlign: "center",
|
|
54
86
|
variant: "titleLarge"
|
|
55
|
-
}, t('
|
|
87
|
+
}, t('commons.enterYour')), /*#__PURE__*/React.createElement(Controller, {
|
|
56
88
|
control: control,
|
|
57
89
|
render: ({
|
|
58
90
|
field: {
|
|
@@ -72,7 +104,7 @@ export const ResetPassword = () => {
|
|
|
72
104
|
onBlur: onBlur,
|
|
73
105
|
onChangeText: onChange,
|
|
74
106
|
value: value,
|
|
75
|
-
label: t('
|
|
107
|
+
label: t('commons.email')
|
|
76
108
|
});
|
|
77
109
|
},
|
|
78
110
|
name: "email"
|
|
@@ -81,10 +113,10 @@ export const ResetPassword = () => {
|
|
|
81
113
|
mt: "16",
|
|
82
114
|
mode: "contained",
|
|
83
115
|
onPress: handleSubmit(onSubmit)
|
|
84
|
-
}, t('
|
|
116
|
+
}, t('commons.resetPassword')), /*#__PURE__*/React.createElement(Button, {
|
|
85
117
|
mt: "48",
|
|
86
118
|
mode: "outlined",
|
|
87
119
|
onPress: navigation.goBack
|
|
88
|
-
}, t('cancel'))));
|
|
120
|
+
}, t('commons.cancel'))));
|
|
89
121
|
};
|
|
90
122
|
//# sourceMappingURL=ResetPassword.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ParentView","Text","TextInput","Button","KeyboardAvoidingView","Header","Alert","View","useNavigation","useTheme","React","useTranslation","Controller","useForm","yupResolver","useAuth","Config","resetPasswordValidationSchema","AlertSVG","ResetPassword","t","navigation","useResetPassword","mutate","resetPassword","isLoading","theme","handleSubmit","control","formState","errors","resolver","defaultValues","email","onSubmit","data","includes","APP_NAME","show","renderDescription","createElement","pt","alignSelf","fill","colors","text","variant","textAlign","py","pb","buttons","label","onPress","px","left","position","zIndex","justifyContent","width","phone","tablet","render","field","onChange","onBlur","value","autoFocus","keyboardType","autoCapitalize","mode","autoComplete","error","message","errorMessage","onChangeText","name","loading","mt","goBack"],"sourceRoot":"../../../../src","sources":["screens/Auth/ResetPassword.tsx"],"mappings":"AAAA,SACEA,UAAU,EACVC,IAAI,EACJC,SAAS,EACTC,MAAM,EACNC,oBAAoB,EACpBC,MAAM,EACNC,KAAK,EACLC,IAAI,QACC,kBAAkB;AACzB,SAEEC,aAAa,EACbC,QAAQ,QACH,0BAA0B;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,iBAAiB;AACrD,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,OAAO,QAAQ,qBAAqB;AAC7C,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,6BAA6B,QAAQ,cAAc;AAC5D,OAAOC,QAAQ,MAAM,8BAA8B;AAMnD,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAM;IAAE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BC,IAAI,EAAC,UAAU;QACfC,YAAY,EAAC,OAAO;QACpBC,KAAK,EAAE,CAAC,CAACzC,MAAM,CAACG,KAAK,EAAEuC,OAAQ;QAC/BC,YAAY,EAAE3C,MAAM,CAACG,KAAK,EAAEuC,OAAQ;QACpCR,MAAM,EAAEA,MAAO;QACfU,YAAY,EAAEX,QAAS;QACvBE,KAAK,EAAEA,KAAM;QACbd,KAAK,EAAE/B,CAAC,CAAC,eAAe;MAAE,CAC3B,CAAC;IAEN,CAAE;IACFuD,IAAI,EAAC;EAAO,CACb,CAAC,eACFjE,KAAA,CAAA8B,aAAA,CAACrC,MAAM;IACLyE,OAAO,EAAEnD,SAAU;IACnBoD,EAAE,EAAC,IAAI;IACPR,IAAI,EAAC,WAAW;IAChBjB,OAAO,EAAEzB,YAAY,CAACO,QAAQ;EAAE,GAE/Bd,CAAC,CAAC,uBAAuB,CACpB,CAAC,eACTV,KAAA,CAAA8B,aAAA,CAACrC,MAAM;IAAC0E,EAAE,EAAC,IAAI;IAACR,IAAI,EAAC,UAAU;IAACjB,OAAO,EAAE/B,UAAU,CAACyD;EAAO,GACxD1D,CAAC,CAAC,gBAAgB,CACb,CACY,CACZ,CAAC;AAEjB,CAAC"}
|
|
@@ -21,11 +21,11 @@ export const ResetPasswordInstructionSent = ({
|
|
|
21
21
|
py: "48",
|
|
22
22
|
textAlign: "center",
|
|
23
23
|
variant: "titleLarge"
|
|
24
|
-
}, t('
|
|
24
|
+
}, t('commons.resetPasswordInstructionSent', {
|
|
25
25
|
email: route.params?.email
|
|
26
26
|
})), /*#__PURE__*/React.createElement(Button, {
|
|
27
27
|
mode: "outlined",
|
|
28
28
|
onPress: () => navigation.navigate('Login')
|
|
29
|
-
}, t('
|
|
29
|
+
}, t('commons.backToLogin')));
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=ResetPasswordInstructionsSent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ParentView","Text","Button","useNavigation","React","useTranslation","ResetPasswordInstructionSent","route","t","navigation","createElement","alignSelf","justifyContent","px","width","phone","tablet","py","textAlign","variant","email","params","mode","onPress","navigate"],"sourceRoot":"../../../../src","sources":["
|
|
1
|
+
{"version":3,"names":["ParentView","Text","Button","useNavigation","React","useTranslation","ResetPasswordInstructionSent","route","t","navigation","createElement","alignSelf","justifyContent","px","width","phone","tablet","py","textAlign","variant","email","params","mode","onPress","navigate"],"sourceRoot":"../../../../src","sources":["screens/Auth/ResetPasswordInstructionsSent.tsx"],"mappings":"AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,MAAM,QAAQ,kBAAkB;AAC3D,SAGEC,aAAa,QACR,0BAA0B;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAM9C,OAAO,MAAMC,4BAEZ,GAAGA,CAAC;EAAEC;AAAM,CAAC,KAAK;EACjB,MAAM;IAAEC;EAAE,CAAC,GAAGH,cAAc,CAAC,CAAC;EAC9B,MAAMI,UAAU,GAAGN,aAAa,CAAgC,CAAC;EAEjE,oBACEC,KAAA,CAAAM,aAAA,CAACV,UAAU;IACTW,SAAS,EAAE,QAAS;IACpBC,cAAc,EAAC,QAAQ;IACvBC,EAAE,EAAC,IAAI;IACPC,KAAK,EAAE;MAAEC,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAI;EAAE,gBAEtCZ,KAAA,CAAAM,aAAA,CAACT,IAAI;IAACgB,EAAE,EAAC,IAAI;IAACC,SAAS,EAAC,QAAQ;IAACC,OAAO,EAAC;EAAY,GAClDX,CAAC,CAAC,sCAAsC,EAAE;IACzCY,KAAK,EAAEb,KAAK,CAACc,MAAM,EAAED;EACvB,CAAC,CACG,CAAC,eACPhB,KAAA,CAAAM,aAAA,CAACR,MAAM;IAACoB,IAAI,EAAC,UAAU;IAACC,OAAO,EAAEA,CAAA,KAAMd,UAAU,CAACe,QAAQ,CAAC,OAAO;EAAE,GACjEhB,CAAC,CAAC,qBAAqB,CAClB,CACE,CAAC;AAEjB,CAAC"}
|
|
@@ -5,11 +5,10 @@ import { StyleSheet } from 'react-native';
|
|
|
5
5
|
import { Controller, useForm } from 'react-hook-form';
|
|
6
6
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
7
7
|
import { signUpValidationSchemaWithBusinessName, signUpValidationSchemaWithoutBusinessName } from './validators';
|
|
8
|
-
import { useAuthentication } from '../hooks/useAuthentication';
|
|
9
8
|
import { Linking } from 'react-native';
|
|
10
9
|
import { PRIVACY_POLICY, TERMS_OF_SERVICE } from '../../constants';
|
|
11
10
|
import Config from 'react-native-config';
|
|
12
|
-
import { useTermsOfService } from '
|
|
11
|
+
import { useAuth, useTermsOfService } from '../../hooks';
|
|
13
12
|
export const SignUp = () => {
|
|
14
13
|
const [selectedCountry, setSelectedCountry] = useState();
|
|
15
14
|
const {
|
|
@@ -17,7 +16,7 @@ export const SignUp = () => {
|
|
|
17
16
|
} = useTranslation();
|
|
18
17
|
const {
|
|
19
18
|
useIsCheckRegistered
|
|
20
|
-
} =
|
|
19
|
+
} = useAuth();
|
|
21
20
|
const {
|
|
22
21
|
mutate: checkRegistration,
|
|
23
22
|
isLoading: isCheckingIsRegistered
|
|
@@ -53,7 +52,7 @@ export const SignUp = () => {
|
|
|
53
52
|
return /*#__PURE__*/React.createElement(ParentView, {
|
|
54
53
|
px: "16"
|
|
55
54
|
}, /*#__PURE__*/React.createElement(Header, {
|
|
56
|
-
title: t('
|
|
55
|
+
title: t('commons.createAccountTitle')
|
|
57
56
|
}), /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
58
57
|
flex: 1,
|
|
59
58
|
behavior: "padding",
|
|
@@ -79,7 +78,7 @@ export const SignUp = () => {
|
|
|
79
78
|
onBlur: onBlur,
|
|
80
79
|
onChangeText: onChange,
|
|
81
80
|
value: value,
|
|
82
|
-
label: t('
|
|
81
|
+
label: t('commons.displayName')
|
|
83
82
|
});
|
|
84
83
|
},
|
|
85
84
|
name: "displayName"
|
|
@@ -100,7 +99,7 @@ export const SignUp = () => {
|
|
|
100
99
|
onBlur: onBlur,
|
|
101
100
|
onChangeText: onChange,
|
|
102
101
|
value: value,
|
|
103
|
-
label: t('
|
|
102
|
+
label: t('commons.businessName')
|
|
104
103
|
});
|
|
105
104
|
},
|
|
106
105
|
name: "name"
|
|
@@ -124,7 +123,7 @@ export const SignUp = () => {
|
|
|
124
123
|
onBlur: onBlur,
|
|
125
124
|
onChangeText: onChange,
|
|
126
125
|
value: value,
|
|
127
|
-
label: t('
|
|
126
|
+
label: t('commons.email')
|
|
128
127
|
});
|
|
129
128
|
},
|
|
130
129
|
name: "email"
|
|
@@ -154,23 +153,23 @@ export const SignUp = () => {
|
|
|
154
153
|
mt: "24",
|
|
155
154
|
onPress: handleSubmit(onSubmit),
|
|
156
155
|
mode: "contained"
|
|
157
|
-
}, t('
|
|
156
|
+
}, t('commons.createAccount')), /*#__PURE__*/React.createElement(View, {
|
|
158
157
|
flexDirection: "row",
|
|
159
158
|
flexWrap: "wrap",
|
|
160
159
|
pt: "10"
|
|
161
160
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
162
161
|
variant: "bodyMedium"
|
|
163
|
-
}, t('
|
|
162
|
+
}, t('commons.byContinue'), " "), /*#__PURE__*/React.createElement(LinkButton, {
|
|
164
163
|
labelStyle: style.linkButton,
|
|
165
164
|
mode: "text",
|
|
166
165
|
onPress: () => Linking.openURL(url || TERMS_OF_SERVICE)
|
|
167
|
-
}, t('
|
|
166
|
+
}, t('commons.termsAndConditions')), /*#__PURE__*/React.createElement(Text, {
|
|
168
167
|
variant: "bodyMedium"
|
|
169
|
-
}, " ", t('
|
|
168
|
+
}, " ", t('commons.and'), " "), /*#__PURE__*/React.createElement(LinkButton, {
|
|
170
169
|
labelStyle: style.linkButton,
|
|
171
170
|
mode: "text",
|
|
172
171
|
onPress: () => Linking.openURL(PRIVACY_POLICY)
|
|
173
|
-
}, t('
|
|
172
|
+
}, t('commons.privacyPolicy')))));
|
|
174
173
|
};
|
|
175
174
|
const style = StyleSheet.create({
|
|
176
175
|
linkButton: {
|