@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-test
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/build/@types/app.d.ts +39 -14
- package/build/@types/app.js +9 -0
- package/build/@types/form.d.ts +11 -0
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +15 -2
- package/build/api/auth.js +25 -2
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +4 -4
- package/build/api/board.js +1 -1
- package/build/api/brand.d.ts +1 -1
- package/build/api/brand.js +1 -1
- package/build/api/country.js +1 -1
- package/build/api/data.d.ts +33 -7
- package/build/api/data.js +42 -17
- package/build/api/entity.d.ts +2 -0
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.d.ts +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -7
- package/build/app/rootReducer.js +14 -8
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +11 -5
- package/build/app/store.d.ts +6 -0
- package/build/assets/locales/ar.json +14 -4
- package/build/assets/locales/en.json +14 -4
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +5 -7
- package/build/components/AnimationFlow/BottomSheet.js +2 -1
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +10 -5
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/FileInput/DragAndDrop.d.ts +9 -1
- package/build/components/FileInput/DragAndDrop.js +115 -10
- package/build/components/FileInput/UploadInput.js +2 -2
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/Lottie/Lottie.d.ts +878 -0
- package/build/components/Lottie/Lottie.js +58 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/files/success.json +425 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/index.d.ts +2 -0
- package/build/components/ProgressBar/index.js +2 -0
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +10 -7
- package/build/constants/app.d.ts +16 -1
- package/build/constants/app.js +76 -4
- package/build/constants/assets.d.ts +17 -1
- package/build/constants/assets.js +22 -6
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/auth/authStore.d.ts +35 -0
- package/build/features/app/auth/authStore.js +148 -0
- package/build/features/app/bank/bankStore.d.ts +6 -2
- package/build/features/app/bank/bankStore.js +46 -26
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +58 -48
- package/build/features/app/connect/connectStore.d.ts +14 -2
- package/build/features/app/connect/connectStore.js +170 -10
- package/build/features/app/entity/entityStore.d.ts +53 -0
- package/build/features/app/entity/entityStore.js +461 -0
- package/build/features/app/individual/individualStore.d.ts +2 -2
- package/build/features/app/individual/individualStore.js +23 -15
- package/build/features/app/otp/otpStore.d.ts +28 -0
- package/build/features/app/otp/otpStore.js +153 -0
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +4 -4
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +6 -6
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +5 -5
- package/build/features/auth/Auth.d.ts +10 -0
- package/build/features/auth/Auth.js +87 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +72 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +44 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +18 -12
- package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/BankStatement.js +35 -10
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/bank/screens/Verify/OTPInput.js +4 -4
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +2 -2
- package/build/features/business/Business.js +20 -13
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +8 -8
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/business/screens/Verify/OTPInput.js +4 -4
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +3 -2
- package/build/features/connect/Connect.js +46 -16
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +85 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Email.js +7 -7
- package/build/features/connect/screens/Individual/Individual.js +14 -10
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +42 -18
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
- package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
- package/build/features/connect/screens/Merchant/validation.js +69 -3
- package/build/features/connect/screens/Mobile/Mobile.js +16 -13
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.d.ts +7 -0
- package/build/features/entity/Entity.js +70 -0
- package/build/features/entity/index.d.ts +1 -0
- package/build/features/entity/index.js +1 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/entity/screens/Success/Success.d.ts +5 -0
- package/build/features/entity/screens/Success/Success.js +16 -0
- package/build/features/entity/screens/Success/index.d.ts +3 -0
- package/build/features/entity/screens/Success/index.js +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/Verify/OTPInput.js +47 -0
- package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
- package/build/features/entity/screens/Verify/Verify.js +78 -0
- package/build/features/entity/screens/Verify/index.d.ts +2 -0
- package/build/features/entity/screens/Verify/index.js +2 -0
- package/build/features/entity/screens/Verify/validation.d.ts +8 -0
- package/build/features/entity/screens/Verify/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +4 -1
- package/build/features/featuresScreens.js +88 -40
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +20 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/individual/screens/Verify/OTPInput.js +4 -4
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/otp/OTP.d.ts +7 -0
- package/build/features/otp/OTP.js +58 -0
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +1 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
- package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
- package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
- package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
- package/build/features/otp/screens/OTPVerify/index.js +2 -0
- package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
- package/build/features/otp/screens/OTPVerify/validation.js +4 -0
- package/build/features/password/Password.d.ts +2 -2
- package/build/features/password/Password.js +20 -13
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/OTP/OTP.js +9 -9
- package/build/features/password/screens/OTP/OTPInput.js +4 -4
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/password/screens/Verify/OTPInput.js +4 -4
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Background/Background.d.ts +7 -5
- package/build/features/shared/Background/Background.js +16 -5
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +3 -3
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +6 -6
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +62 -0
- package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
- package/build/features/shared/Dialog/DialogContainer.js +56 -0
- package/build/features/shared/Dialog/index.d.ts +4 -0
- package/build/features/shared/Dialog/index.js +4 -0
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/Input/Input.js +4 -4
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
- package/build/features/shared/UploadFile/UploadFile.js +27 -12
- package/build/features/signIn/SignIn.d.ts +2 -2
- package/build/features/signIn/SignIn.js +21 -13
- package/build/features/signIn/screens/Email/Email.js +8 -8
- package/build/features/signIn/screens/Email/EmailField.js +5 -5
- package/build/features/signIn/screens/Email/validation.js +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/signIn/screens/OTP/OTP.js +9 -9
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
- package/build/features/signIn/screens/Password/Password.js +7 -7
- package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
- package/build/features/tax/Tax.d.ts +2 -2
- package/build/features/tax/Tax.js +21 -13
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
- package/build/features/tax/screens/Verify/OTPInput.js +4 -4
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +6 -4
- package/build/hooks/useAppDispatch.d.ts +3 -0
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useErrorListener.js +4 -3
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +12 -9
- package/build/index.js +18 -9
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +1 -1
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/html.d.ts +1 -0
- package/build/utils/html.js +6 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +2 -2
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +2 -2
- package/build/utils/string.d.ts +23 -21
- package/build/utils/string.js +13 -4
- package/package.json +1 -1
- package/build/api/index.d.ts +0 -83
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -140
|
@@ -15,16 +15,16 @@ import { useTranslation } from 'react-i18next';
|
|
|
15
15
|
import { alpha, styled } from '@mui/material/styles';
|
|
16
16
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
17
17
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
18
|
-
import { useAppDispatch, useLanguage, useAppSelector } from '
|
|
19
|
-
import { handlePrevScreenStep, settingsSelector } from '
|
|
20
|
-
import { clearError, signInSelector, createEmailAuth } from '
|
|
21
|
-
import Form from '
|
|
22
|
-
import Button, { MobileButton } from '
|
|
23
|
-
import { ScreenContainer } from '
|
|
24
|
-
import Collapse from '
|
|
18
|
+
import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
|
|
19
|
+
import { handlePrevScreenStep, settingsSelector } from '@app/settings';
|
|
20
|
+
import { clearError, signInSelector, createEmailAuth } from '@features/app/signIn/signInStore';
|
|
21
|
+
import Form from '@components/Form';
|
|
22
|
+
import Button, { MobileButton } from '@features/shared/Button';
|
|
23
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
24
|
+
import Collapse from '@components/Collapse';
|
|
25
25
|
import Box from '@mui/material/Box';
|
|
26
26
|
import Divider from '@mui/material/Divider';
|
|
27
|
-
import Text from '
|
|
27
|
+
import Text from '@components/Text';
|
|
28
28
|
import EmailField from './EmailField';
|
|
29
29
|
import { EmailValidationSchema } from './validation';
|
|
30
30
|
var FormStyled = styled(Form)(function () { return ({
|
|
@@ -15,11 +15,11 @@ import Box from '@mui/material/Box';
|
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
16
|
import { useController, useFormContext } from 'react-hook-form';
|
|
17
17
|
import { styled, alpha } from '@mui/material/styles';
|
|
18
|
-
import Text from '
|
|
19
|
-
import Input from '
|
|
20
|
-
import ClearIcon from '
|
|
21
|
-
import CheckIcon from '
|
|
22
|
-
import ScreenContainer from '
|
|
18
|
+
import Text from '@components/Text';
|
|
19
|
+
import Input from '@features/shared/Input';
|
|
20
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
21
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
22
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
23
23
|
var LabelContainerStyled = styled(Box)(function (_a) {
|
|
24
24
|
var theme = _a.theme;
|
|
25
25
|
return ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
import { EMAIL_MAX_LENGTH } from '
|
|
2
|
+
import { EMAIL_MAX_LENGTH } from '@constants';
|
|
3
3
|
export var EmailValidationSchema = yup.object().shape({
|
|
4
4
|
email: yup.string().max(EMAIL_MAX_LENGTH).email('email_not_valid').required('email_not_valid')
|
|
5
5
|
});
|
|
@@ -16,16 +16,16 @@ import { useForm, FormProvider } from 'react-hook-form';
|
|
|
16
16
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
17
17
|
import { useTranslation } from 'react-i18next';
|
|
18
18
|
import { styled, alpha } from '@mui/material/styles';
|
|
19
|
-
import Collapse from '
|
|
20
|
-
import Form from '
|
|
21
|
-
import Button, { MobileButton } from '
|
|
22
|
-
import { useAppDispatch, useAppSelector } from '
|
|
23
|
-
import { handlePrevScreenStep, settingsSelector } from '
|
|
24
|
-
import ScreenContainer from '
|
|
25
|
-
import { clearError, createMobileAuth, signInSelector } from '
|
|
26
|
-
import { useLanguage } from '
|
|
19
|
+
import Collapse from '@components/Collapse';
|
|
20
|
+
import Form from '@components/Form';
|
|
21
|
+
import Button, { MobileButton } from '@features/shared/Button';
|
|
22
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
23
|
+
import { handlePrevScreenStep, settingsSelector } from '@app/settings';
|
|
24
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
25
|
+
import { clearError, createMobileAuth, signInSelector } from '@features/app/signIn/signInStore';
|
|
26
|
+
import { useLanguage } from '@hooks';
|
|
27
27
|
import Divider from '@mui/material/Divider';
|
|
28
|
-
import Text from '
|
|
28
|
+
import Text from '@components/Text';
|
|
29
29
|
import MobileNumber from './MobileNumber';
|
|
30
30
|
import { PhoneValidationSchema } from './validation';
|
|
31
31
|
var FormStyled = styled(Form)(function () { return ({
|
|
@@ -26,18 +26,18 @@ import Box from '@mui/material/Box';
|
|
|
26
26
|
import { useTranslation } from 'react-i18next';
|
|
27
27
|
import { useController, useFormContext } from 'react-hook-form';
|
|
28
28
|
import { styled, alpha } from '@mui/material/styles';
|
|
29
|
-
import Text from '
|
|
30
|
-
import Collapse from '
|
|
31
|
-
import ClearIcon from '
|
|
32
|
-
import CheckIcon from '
|
|
33
|
-
import ScreenContainer from '
|
|
34
|
-
import { signInSelector } from '
|
|
35
|
-
import ExpandIcon from '
|
|
36
|
-
import Input from '
|
|
37
|
-
import SimpleList from '
|
|
38
|
-
import { removeAllCharsFromNumber } from '
|
|
39
|
-
import { useLanguage, useAppSelector } from '
|
|
40
|
-
import Search from '
|
|
29
|
+
import Text from '@components/Text';
|
|
30
|
+
import Collapse from '@components/Collapse';
|
|
31
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
32
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
33
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
34
|
+
import { signInSelector } from '@features/app/signIn/signInStore';
|
|
35
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
36
|
+
import Input from '@features/shared/Input';
|
|
37
|
+
import SimpleList from '@components/SimpleList';
|
|
38
|
+
import { removeAllCharsFromNumber } from '@utils';
|
|
39
|
+
import { useLanguage, useAppSelector } from '@hooks';
|
|
40
|
+
import Search from '@features/shared/Search';
|
|
41
41
|
var LabelContainerStyled = styled(Box)(function (_a) {
|
|
42
42
|
var theme = _a.theme;
|
|
43
43
|
return ({
|
|
@@ -14,17 +14,17 @@ import Box from '@mui/material/Box/Box';
|
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import * as React from 'react';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
|
-
import Text from '
|
|
18
|
-
import { clearError, signInSelector, resetOTPScreen, verifyAuthOTP } from '
|
|
19
|
-
import Button from '
|
|
20
|
-
import { ScreenContainer } from '
|
|
21
|
-
import { useAppDispatch, useAppSelector } from '
|
|
22
|
-
import { handlePrevScreenStep } from '
|
|
23
|
-
import { useLanguage } from '
|
|
17
|
+
import Text from '@components/Text';
|
|
18
|
+
import { clearError, signInSelector, resetOTPScreen, verifyAuthOTP } from '@features/app/signIn/signInStore';
|
|
19
|
+
import Button from '@features/shared/Button';
|
|
20
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
21
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
22
|
+
import { handlePrevScreenStep } from '@app/settings';
|
|
23
|
+
import { useLanguage } from '@hooks';
|
|
24
24
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
25
25
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
26
|
-
import Form from '
|
|
27
|
-
import { maskPhone, maskEmail } from '
|
|
26
|
+
import Form from '@components/Form';
|
|
27
|
+
import { maskPhone, maskEmail } from '@utils';
|
|
28
28
|
import { OTPValidation } from './validation';
|
|
29
29
|
import OTPInput from './OTPInput';
|
|
30
30
|
var OTPTitleContainerStyled = styled(Box)(function (_a) {
|
|
@@ -15,10 +15,10 @@ import { useController, useFormContext } from 'react-hook-form';
|
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
16
|
import Box from '@mui/material/Box/Box';
|
|
17
17
|
import { styled } from '@mui/material/styles';
|
|
18
|
-
import OTPField from '
|
|
19
|
-
import { DEFAULT_TIMER_VALUE } from '
|
|
20
|
-
import { signInSelector, resendOTPMobile, resendOTPEmail } from '
|
|
21
|
-
import { useAppDispatch, useAppSelector } from '
|
|
18
|
+
import OTPField from '@features/shared/OTP';
|
|
19
|
+
import { DEFAULT_TIMER_VALUE } from '@constants';
|
|
20
|
+
import { signInSelector, resendOTPMobile, resendOTPEmail } from '@features/app/signIn/signInStore';
|
|
21
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
22
22
|
var BoxStyled = styled(Box)(function (_a) {
|
|
23
23
|
var theme = _a.theme;
|
|
24
24
|
return ({
|
|
@@ -17,13 +17,13 @@ import { useSelector } from 'react-redux';
|
|
|
17
17
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
18
18
|
import Box from '@mui/material/Box';
|
|
19
19
|
import { styled } from '@mui/material/styles';
|
|
20
|
-
import { useAppDispatch } from '
|
|
21
|
-
import { handlePrevScreenStep } from '
|
|
22
|
-
import Form from '
|
|
23
|
-
import { useLanguage } from '
|
|
24
|
-
import ScreenContainer from '
|
|
25
|
-
import Button from '
|
|
26
|
-
import { signInSelector, verifyAuthPassword } from '
|
|
20
|
+
import { useAppDispatch } from '@hooks';
|
|
21
|
+
import { handlePrevScreenStep } from '@app/settings';
|
|
22
|
+
import Form from '@components/Form';
|
|
23
|
+
import { useLanguage } from '@hooks';
|
|
24
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
25
|
+
import Button from '@features/shared/Button';
|
|
26
|
+
import { signInSelector, verifyAuthPassword } from '@features/app/signIn/signInStore';
|
|
27
27
|
import PasswordInput from './PasswordInput';
|
|
28
28
|
import { PasswordValidation } from './validation';
|
|
29
29
|
var InputsContainerStyled = styled(Box)(function (_a) {
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useController, useFormContext } from 'react-hook-form';
|
|
5
|
-
import ScreenContainer from '
|
|
6
|
-
import PasswordIcon from '
|
|
7
|
-
import Input from '
|
|
5
|
+
import ScreenContainer from '@features/shared/Containers/ScreenContainer';
|
|
6
|
+
import PasswordIcon from '@features/shared/PasswordIcon';
|
|
7
|
+
import Input from '@features/shared/Input';
|
|
8
8
|
var PasswordInput = function (_a) {
|
|
9
9
|
var _b;
|
|
10
10
|
var t = useTranslation().t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LibConfig } from '
|
|
2
|
+
import { LibConfig } from '@types';
|
|
3
3
|
export interface TaxLibProps extends LibConfig {
|
|
4
4
|
}
|
|
5
5
|
export declare function TaxLib(props: TaxLibProps): JSX.Element;
|
|
6
6
|
export declare function renderTaxLib(config: TaxLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountTaxLib(elementId: string): void;
|
|
7
|
+
export declare function unmountTaxLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -11,18 +11,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { memo, useEffect } from 'react';
|
|
14
|
-
import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '
|
|
15
|
-
import { handleLanguage, settingsSelector } from '
|
|
16
|
-
import AnimationFlow from '
|
|
17
|
-
import { store } from '
|
|
18
|
-
import { ReduxProvider, ThemeProvider } from '
|
|
19
|
-
import Collapse from '
|
|
20
|
-
import { getParameterByName, reactElement } from '
|
|
21
|
-
import { FeatureContainer } from '
|
|
22
|
-
import { TAX_SCREENS_NAVIGATION } from '
|
|
14
|
+
import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '@hooks';
|
|
15
|
+
import { handleLanguage, settingsSelector } from '@app/settings';
|
|
16
|
+
import AnimationFlow from '@components/AnimationFlow';
|
|
17
|
+
import { store } from '@app/store';
|
|
18
|
+
import { ReduxProvider, ThemeProvider } from '@components/Providers';
|
|
19
|
+
import Collapse from '@components/Collapse';
|
|
20
|
+
import { getParameterByName, reactElement } from '@utils';
|
|
21
|
+
import { FeatureContainer } from '@features/shared/Containers';
|
|
22
|
+
import { DIALOG_ID, TAX_SCREENS_NAVIGATION } from '@constants';
|
|
23
23
|
import { taxFeatureScreens } from '../featuresScreens';
|
|
24
24
|
import CustomFooter from '../shared/Footer';
|
|
25
|
-
import { taxSelector, verifyLeadToken } from '
|
|
25
|
+
import { taxSelector, verifyLeadToken } from '@features/app/tax/taxStore';
|
|
26
26
|
import Background from '../shared/Background';
|
|
27
27
|
var Tax = memo(function (props) {
|
|
28
28
|
var theme = useAppTheme().theme;
|
|
@@ -46,7 +46,7 @@ var Tax = memo(function (props) {
|
|
|
46
46
|
if (!loading)
|
|
47
47
|
verifyToken();
|
|
48
48
|
}, [loading]);
|
|
49
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: loading || customLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, open: open, error: error, loading: loading || customLoading, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: taxFeatureScreens.map(function (_a, index) {
|
|
49
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: loading || customLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, open: open, error: error, loading: loading || customLoading, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: taxFeatureScreens.map(function (_a, index) {
|
|
50
50
|
var Element = _a.element, name = _a.name;
|
|
51
51
|
var isActive = activeScreen.name === name;
|
|
52
52
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
@@ -58,6 +58,14 @@ export function TaxLib(props) {
|
|
|
58
58
|
export function renderTaxLib(config, elementId) {
|
|
59
59
|
reactElement(elementId).render(_jsx(TaxLib, __assign({}, config)));
|
|
60
60
|
}
|
|
61
|
-
export function unmountTaxLib(elementId) {
|
|
62
|
-
|
|
61
|
+
export function unmountTaxLib(elementId, unmountTimeout) {
|
|
62
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
63
|
+
var element = document.getElementById(elementId);
|
|
64
|
+
var dialogEl = document.getElementById(DIALOG_ID);
|
|
65
|
+
setTimeout(function () {
|
|
66
|
+
var _a;
|
|
67
|
+
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
68
|
+
dialogEl && dialogEl.remove();
|
|
69
|
+
reactElement(elementId).unmount();
|
|
70
|
+
}, unmountTimeout);
|
|
63
71
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import SuccessScreen from '
|
|
4
|
+
import SuccessScreen from '@features/shared/SuccessScreen';
|
|
5
5
|
var ResetPasswordSuccess = function (_a) {
|
|
6
6
|
var t = useTranslation().t;
|
|
7
7
|
return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: t("reset_password_success_description"), showEmailProviders: true }));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { useAppDispatch, useAppSelector } from '
|
|
5
|
-
import { updateLeadSuccess, taxSelector } from '
|
|
6
|
-
import SuccessScreen from '
|
|
4
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
5
|
+
import { updateLeadSuccess, taxSelector } from '@features/app/tax/taxStore';
|
|
6
|
+
import SuccessScreen from '@features/shared/SuccessScreen';
|
|
7
7
|
var Success = function (_a) {
|
|
8
8
|
var t = useTranslation().t;
|
|
9
9
|
var dispatch = useAppDispatch();
|
|
@@ -13,16 +13,16 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { memo, useEffect, useState } from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { styled } from '@mui/material/styles';
|
|
16
|
-
import { FlowsButtons } from '
|
|
17
|
-
import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '
|
|
18
|
-
import { useAppSelector, useLanguage } from '
|
|
19
|
-
import { getResetFlowUrl, showLastFour } from '
|
|
20
|
-
import { taxSelector } from '
|
|
16
|
+
import { FlowsButtons } from '@features/shared/Button';
|
|
17
|
+
import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '@constants';
|
|
18
|
+
import { useAppSelector, useLanguage } from '@hooks';
|
|
19
|
+
import { getResetFlowUrl, showLastFour } from '@utils';
|
|
20
|
+
import { taxSelector } from '@features/app/tax/taxStore';
|
|
21
21
|
import Box from '@mui/material/Box';
|
|
22
|
-
import Text from '
|
|
23
|
-
import Container from '
|
|
24
|
-
import AcceptancePayouts from '
|
|
25
|
-
import { settingsSelector } from '
|
|
22
|
+
import Text from '@components/Text';
|
|
23
|
+
import Container from '@features/shared/Containers/ScreenContainer';
|
|
24
|
+
import AcceptancePayouts from '@features/shared/AcceptancePayouts';
|
|
25
|
+
import { settingsSelector } from '@app/settings';
|
|
26
26
|
var TitleStyled = styled(Text)(function (_a) {
|
|
27
27
|
var _b;
|
|
28
28
|
var theme = _a.theme;
|
|
@@ -13,12 +13,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
14
|
import { useController, useFormContext } from 'react-hook-form';
|
|
15
15
|
import { styled, alpha } from '@mui/material/styles';
|
|
16
|
-
import { ScreenContainer } from '
|
|
16
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
17
17
|
import Box from '@mui/material/Box';
|
|
18
|
-
import CheckBox from '
|
|
19
|
-
import Text from '
|
|
20
|
-
import Warning from '
|
|
21
|
-
import Collapse from '
|
|
18
|
+
import CheckBox from '@components/CheckBox';
|
|
19
|
+
import Text from '@components/Text';
|
|
20
|
+
import Warning from '@components/Warning';
|
|
21
|
+
import Collapse from '@components/Collapse';
|
|
22
22
|
var ConfirmContainerStyled = styled(Box)(function (_a) {
|
|
23
23
|
var theme = _a.theme;
|
|
24
24
|
return ({
|
|
@@ -10,17 +10,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { ScreenContainer } from '
|
|
14
|
-
import Button from '
|
|
15
|
-
import { useAppDispatch, useLanguage, useAppSelector } from '
|
|
13
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
14
|
+
import Button from '@features/shared/Button';
|
|
15
|
+
import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
17
|
import { styled } from '@mui/material/styles';
|
|
18
18
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
19
|
-
import Form from '
|
|
19
|
+
import Form from '@components/Form';
|
|
20
20
|
import { Validation } from './validation';
|
|
21
21
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
22
|
-
import { taxSelector, updateTaxInfo } from '
|
|
23
|
-
import { handleCurrentActiveScreen } from '
|
|
22
|
+
import { taxSelector, updateTaxInfo } from '@features/app/tax/taxStore';
|
|
23
|
+
import { handleCurrentActiveScreen } from '@app/settings';
|
|
24
24
|
import VATId from './VATId';
|
|
25
25
|
import ConfirmPolicy from './ConfirmPolicy';
|
|
26
26
|
var FormStyled = styled(Form)(function () { return ({
|
|
@@ -11,13 +11,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import Box from '@mui/material/Box';
|
|
14
|
-
import Input from '
|
|
14
|
+
import Input from '@features/shared/Input';
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
16
|
import { useController, useFormContext } from 'react-hook-form';
|
|
17
|
-
import { VAT_ID_LENGTH } from '
|
|
18
|
-
import ClearIcon from '
|
|
19
|
-
import CheckIcon from '
|
|
20
|
-
import { removeAllCharsFromNumber } from '
|
|
17
|
+
import { VAT_ID_LENGTH } from '@constants';
|
|
18
|
+
import ClearIcon from '@features/shared/ClearIcon';
|
|
19
|
+
import CheckIcon from '@features/shared/CheckIcon';
|
|
20
|
+
import { removeAllCharsFromNumber } from '@utils';
|
|
21
21
|
var VATId = function () {
|
|
22
22
|
var _a;
|
|
23
23
|
var t = useTranslation().t;
|
|
@@ -11,14 +11,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { useAppDispatch } from '
|
|
14
|
+
import { useAppDispatch } from '@hooks';
|
|
15
15
|
import Box from '@mui/material/Box/Box';
|
|
16
16
|
import { styled } from '@mui/material/styles';
|
|
17
|
-
import OTPField from '
|
|
17
|
+
import OTPField from '@features/shared/OTP';
|
|
18
18
|
import { useController, useFormContext } from 'react-hook-form';
|
|
19
19
|
import { useTranslation } from 'react-i18next';
|
|
20
|
-
import { DEFAULT_TIMER_VALUE } from '
|
|
21
|
-
import { resendOTP } from '
|
|
20
|
+
import { DEFAULT_TIMER_VALUE } from '@constants';
|
|
21
|
+
import { resendOTP } from '@features/app/tax/taxStore';
|
|
22
22
|
var BoxStyled = styled(Box)(function (_a) {
|
|
23
23
|
var theme = _a.theme;
|
|
24
24
|
return ({
|
|
@@ -11,20 +11,20 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { useAppDispatch } from '
|
|
14
|
+
import { useAppDispatch } from '@hooks';
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
16
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
17
17
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
18
18
|
import Box from '@mui/material/Box/Box';
|
|
19
19
|
import { styled } from '@mui/material/styles';
|
|
20
|
-
import { handlePrevScreenStep } from '
|
|
21
|
-
import { useLanguage, useAppSelector } from '
|
|
22
|
-
import { maskPhone } from '
|
|
23
|
-
import Form from '
|
|
24
|
-
import Text from '
|
|
25
|
-
import { ScreenContainer } from '
|
|
26
|
-
import { taxSelector, clearError, resetOTPScreen, verifyTaxLeadOTP } from '
|
|
27
|
-
import Button from '
|
|
20
|
+
import { handlePrevScreenStep } from '@app/settings';
|
|
21
|
+
import { useLanguage, useAppSelector } from '@hooks';
|
|
22
|
+
import { maskPhone } from '@utils';
|
|
23
|
+
import Form from '@components/Form';
|
|
24
|
+
import Text from '@components/Text';
|
|
25
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
26
|
+
import { taxSelector, clearError, resetOTPScreen, verifyTaxLeadOTP } from '@features/app/tax/taxStore';
|
|
27
|
+
import Button from '@features/shared/Button';
|
|
28
28
|
import { OTPValidation } from './validation';
|
|
29
29
|
import OTPInput from './OTPInput';
|
|
30
30
|
var OTPTitleContainerStyled = styled(Box)(function (_a) {
|
package/build/hooks/index.d.ts
CHANGED
package/build/hooks/index.js
CHANGED
|
@@ -21,11 +21,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { useEffect } from 'react';
|
|
24
|
-
import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync } from '
|
|
24
|
+
import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync } from '@app/settings';
|
|
25
25
|
import { useAppDispatch } from './useAppDispatch';
|
|
26
|
-
import { axiosInstance } from '
|
|
27
|
-
import { isTapDomain, removeRequestHeaders } from '
|
|
28
|
-
import { ENDPOINT_PATHS } from '
|
|
26
|
+
import { axiosInstance } from '@api';
|
|
27
|
+
import { isTapDomain, removeRequestHeaders } from '@utils';
|
|
28
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
29
29
|
export var useAppConfig = function (_a) {
|
|
30
30
|
var appInfo = _a.appInfo, navigation = _a.navigation, publicKey = _a.publicKey, rest = __rest(_a, ["appInfo", "navigation", "publicKey"]);
|
|
31
31
|
var dispatch = useAppDispatch();
|
|
@@ -49,6 +49,8 @@ export var useAppConfig = function (_a) {
|
|
|
49
49
|
dispatch(handleOpen(rest.open));
|
|
50
50
|
}, [rest.open]);
|
|
51
51
|
useEffect(function () {
|
|
52
|
+
if (rest.open === false)
|
|
53
|
+
return;
|
|
52
54
|
removeRequestHeaders();
|
|
53
55
|
checkDomain();
|
|
54
56
|
setBaseUrl();
|
|
@@ -7,4 +7,7 @@ export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
|
7
7
|
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
8
8
|
password: import("../features/app/password/passwordStore").PasswordState;
|
|
9
9
|
signIn: import("../features/app/signIn/signInStore").SignInState;
|
|
10
|
+
entity: import("../features/app/entity/entityStore").EntityState;
|
|
11
|
+
otp: import("../features/app/otp/otpStore").OtpState;
|
|
12
|
+
auth: import("../features/app/auth/authStore").AuthState;
|
|
10
13
|
}, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { LanguageMode, DirectionMode } from '
|
|
3
|
-
import { settingsSelector } from '
|
|
2
|
+
import { LanguageMode, DirectionMode } from '@types';
|
|
3
|
+
import { settingsSelector } from '@app/settings';
|
|
4
4
|
import { isMobile } from 'react-device-detect';
|
|
5
5
|
import { useAppSelector } from './useAppSelector';
|
|
6
|
-
import { appTheme } from '
|
|
6
|
+
import { appTheme } from '@theme';
|
|
7
7
|
export var useAppTheme = function () {
|
|
8
8
|
var _a = useState(), theme = _a[0], setTheme = _a[1];
|
|
9
9
|
var data = useAppSelector(settingsSelector).data;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { settingsSelector } from '
|
|
2
|
+
import { settingsSelector } from '@app/settings';
|
|
3
3
|
import { useAppSelector } from './useAppSelector';
|
|
4
4
|
export var useErrorListener = function (error) {
|
|
5
5
|
var settings = useAppSelector(settingsSelector);
|
|
@@ -11,7 +11,8 @@ export var useErrorListener = function (error) {
|
|
|
11
11
|
}, [error]);
|
|
12
12
|
useEffect(function () {
|
|
13
13
|
var _a, _b;
|
|
14
|
-
if (!settings.error)
|
|
14
|
+
if (!settings.error && !settings.loading) {
|
|
15
15
|
(_b = (_a = settings.data.appConfig).onReady) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
16
|
-
|
|
16
|
+
}
|
|
17
|
+
}, [settings.error, settings.loading]);
|
|
17
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { decodeObjectBase64, getParameterByName } from '
|
|
1
|
+
import { decodeObjectBase64, getParameterByName } from '@utils';
|
|
2
2
|
export var useRedirectionData = function (dataKey) {
|
|
3
3
|
if (dataKey === void 0) { dataKey = 'data'; }
|
|
4
4
|
var dataToken = getParameterByName(dataKey);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { useWindowSize } from '@hooks';
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
4
|
+
export var useScreen = function (breakpoint) {
|
|
5
|
+
if (breakpoint === void 0) { breakpoint = 'sm'; }
|
|
6
|
+
var _a = useState(false), small = _a[0], setSmall = _a[1];
|
|
7
|
+
var width = useWindowSize().width;
|
|
8
|
+
var theme = useTheme();
|
|
9
|
+
useEffect(function () {
|
|
10
|
+
var target = theme.breakpoints.values[breakpoint || 'sm'];
|
|
11
|
+
setSmall(width < target);
|
|
12
|
+
}, [width]);
|
|
13
|
+
return { small: small };
|
|
14
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { settingsSelector } from '
|
|
2
|
+
import { settingsSelector } from '@app/settings';
|
|
3
3
|
import { useAppSelector } from './useAppSelector';
|
|
4
4
|
export var useStepStartedListener = function () {
|
|
5
5
|
var settings = useAppSelector(settingsSelector);
|
package/build/i18n.js
CHANGED
|
@@ -2,7 +2,7 @@ import i18n from 'i18next';
|
|
|
2
2
|
import { initReactI18next } from 'react-i18next';
|
|
3
3
|
import Backend from 'i18next-http-backend';
|
|
4
4
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
5
|
-
import { LOCAL_STORAGE_KEYS } from '
|
|
5
|
+
import { LOCAL_STORAGE_KEYS } from '@constants';
|
|
6
6
|
import translationEN from './assets/locales/en.json';
|
|
7
7
|
import translationAR from './assets/locales/ar.json';
|
|
8
8
|
var resources = {
|