react-native-unit-components 1.13.0 → 1.15.0
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/android/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +1 -0
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +9 -1
- package/android/src/main/java/com/unitreactnativecomponents/extensions/ContextExtensions.kt +2 -0
- package/android/src/main/java/com/unitreactnativecomponents/secureView/UNSecureViewManager.kt +19 -0
- package/android/src/main/java/com/unitreactnativecomponents/security/UNSecurityHelper.kt +37 -0
- package/android/src/main/java/com/unitreactnativecomponents/unSnapshotProtectionManager/UNSnapshotProtectionManager.kt +42 -0
- package/ios/UNSecurity/UNSecurityHelper.swift +90 -0
- package/ios/UNSecurity/UNSecurityHelperExportModule.m +7 -0
- package/ios/UNSharedServicesProvider/UNAppStateService.swift +38 -0
- package/ios/UNSharedServicesProvider/UNGlobalSnapshotProtectionService.swift +96 -0
- package/ios/UNSharedServicesProvider/UNPresentationService.swift +37 -0
- package/ios/UNSharedServicesProvider/UNSharedServicesProviderManager.swift +45 -0
- package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManager.swift +20 -0
- package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManagerExportModule.m +5 -0
- package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +16 -0
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +22 -21
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +22 -21
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +4 -3
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +19 -20
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardActionComponent/UNCardActionComponent.js +71 -0
- package/lib/commonjs/components/UNCardActionComponent/UNCardActionComponent.js.map +1 -0
- package/lib/commonjs/components/UNCardActionComponent/UNCardActionComponent.utils.js +22 -0
- package/lib/commonjs/components/UNCardActionComponent/UNCardActionComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNCardActionComponent/index.js +21 -0
- package/lib/commonjs/components/UNCardActionComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +26 -3
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js +2 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +18 -19
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +7 -1
- package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.js +79 -0
- package/lib/commonjs/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.js.map +1 -0
- package/lib/commonjs/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.js +32 -0
- package/lib/commonjs/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNMultiFactorAuthenticationComponent/index.js +21 -0
- package/lib/commonjs/components/UNMultiFactorAuthenticationComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +19 -20
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +1 -1
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +24 -2
- package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
- package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +7 -2
- package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
- package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js +91 -0
- package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
- package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +29 -0
- package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNWirePaymentComponent/index.js +21 -0
- package/lib/commonjs/components/UNWirePaymentComponent/index.js.map +1 -0
- package/lib/commonjs/components/index.js +33 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +2 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/commonjs/hooks/useIsJailbrokeDevice.js +22 -0
- package/lib/commonjs/hooks/useIsJailbrokeDevice.js.map +1 -0
- package/lib/commonjs/hooks/useSnapshotProtection.js +31 -0
- package/lib/commonjs/hooks/useSnapshotProtection.js.map +1 -0
- package/lib/commonjs/messages/webMessages/multiFactorAuthenticationMessage.js +11 -0
- package/lib/commonjs/messages/webMessages/multiFactorAuthenticationMessage.js.map +1 -0
- package/lib/commonjs/messages/webMessages/onLoadMessage.js +1 -0
- package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/unitMessages.js +1 -0
- package/lib/commonjs/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
- package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js +39 -0
- package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
- package/lib/commonjs/nativeComponents/UNBaseView/index.js +14 -0
- package/lib/commonjs/nativeComponents/UNBaseView/index.js.map +1 -0
- package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +26 -0
- package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
- package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js +39 -0
- package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
- package/lib/commonjs/networking/common/UNNetworkConstants.js +2 -1
- package/lib/commonjs/networking/common/UNNetworkConstants.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyScript.js +18 -5
- package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
- package/lib/commonjs/types/internal/webComponent.types.js +3 -0
- package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
- package/lib/commonjs/types/shared/env.types.js +1 -0
- package/lib/commonjs/types/shared/env.types.js.map +1 -1
- package/lib/commonjs/types/shared/index.js +11 -0
- package/lib/commonjs/types/shared/index.js.map +1 -1
- package/lib/commonjs/types/shared/multiFactorAuthentication.types.js +2 -0
- package/lib/commonjs/types/shared/multiFactorAuthentication.types.js.map +1 -0
- package/lib/commonjs/types/shared/payeeManagement.types.js.map +1 -1
- package/lib/commonjs/types/shared/payments.types.js +1 -0
- package/lib/commonjs/types/shared/payments.types.js.map +1 -1
- package/lib/commonjs/types/shared/securitySettings.js +12 -0
- package/lib/commonjs/types/shared/securitySettings.js.map +1 -0
- package/lib/commonjs/types/shared/wirePayment.types.js +6 -0
- package/lib/commonjs/types/shared/wirePayment.types.js.map +1 -0
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +7 -2
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js +25 -5
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
- package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
- package/lib/commonjs/utils/onLoadMessages.utils.js +10 -0
- package/lib/commonjs/utils/onLoadMessages.utils.js.map +1 -0
- package/lib/commonjs/webComponent/WebComponent.js +11 -5
- package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js +5 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/commonjs/webComponent/html.js +2 -0
- package/lib/commonjs/webComponent/html.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +23 -22
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +23 -22
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js +4 -3
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js +20 -21
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/module/components/UNCardActionComponent/UNCardActionComponent.js +63 -0
- package/lib/module/components/UNCardActionComponent/UNCardActionComponent.js.map +1 -0
- package/lib/module/components/UNCardActionComponent/UNCardActionComponent.utils.js +14 -0
- package/lib/module/components/UNCardActionComponent/UNCardActionComponent.utils.js.map +1 -0
- package/lib/module/components/UNCardActionComponent/index.js +2 -0
- package/lib/module/components/UNCardActionComponent/index.js.map +1 -0
- package/lib/module/components/UNCardComponent/UNCardComponent.js +26 -3
- package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js +2 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +19 -20
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +7 -1
- package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -1
- package/lib/module/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.js +71 -0
- package/lib/module/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.js.map +1 -0
- package/lib/module/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.js +24 -0
- package/lib/module/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.js.map +1 -0
- package/lib/module/components/UNMultiFactorAuthenticationComponent/index.js +2 -0
- package/lib/module/components/UNMultiFactorAuthenticationComponent/index.js.map +1 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +20 -21
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +1 -1
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -1
- package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +24 -2
- package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
- package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +7 -2
- package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
- package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js +83 -0
- package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
- package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +21 -0
- package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
- package/lib/module/components/UNWirePaymentComponent/index.js +2 -0
- package/lib/module/components/UNWirePaymentComponent/index.js.map +1 -0
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.js +2 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/hooks/useIsJailbrokeDevice.js +14 -0
- package/lib/module/hooks/useIsJailbrokeDevice.js.map +1 -0
- package/lib/module/hooks/useSnapshotProtection.js +23 -0
- package/lib/module/hooks/useSnapshotProtection.js.map +1 -0
- package/lib/module/messages/webMessages/multiFactorAuthenticationMessage.js +5 -0
- package/lib/module/messages/webMessages/multiFactorAuthenticationMessage.js.map +1 -0
- package/lib/module/messages/webMessages/onLoadMessage.js +1 -0
- package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/module/messages/webMessages/unitMessages.js +1 -0
- package/lib/module/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
- package/lib/module/nativeComponents/UNBaseView/UNBaseView.js +31 -0
- package/lib/module/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
- package/lib/module/nativeComponents/UNBaseView/index.js +2 -0
- package/lib/module/nativeComponents/UNBaseView/index.js.map +1 -0
- package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +20 -0
- package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
- package/lib/module/nativeModulesHelpers/UNSecurityHelper.js +33 -0
- package/lib/module/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
- package/lib/module/networking/common/UNNetworkConstants.js +2 -1
- package/lib/module/networking/common/UNNetworkConstants.js.map +1 -1
- package/lib/module/scripts/html/bodyScript.js +17 -4
- package/lib/module/scripts/html/bodyScript.js.map +1 -1
- package/lib/module/types/internal/webComponent.types.js +3 -0
- package/lib/module/types/internal/webComponent.types.js.map +1 -1
- package/lib/module/types/shared/env.types.js +1 -0
- package/lib/module/types/shared/env.types.js.map +1 -1
- package/lib/module/types/shared/index.js +1 -0
- package/lib/module/types/shared/index.js.map +1 -1
- package/lib/module/types/shared/multiFactorAuthentication.types.js +2 -0
- package/lib/module/types/shared/multiFactorAuthentication.types.js.map +1 -0
- package/lib/module/types/shared/payeeManagement.types.js.map +1 -1
- package/lib/module/types/shared/payments.types.js +1 -0
- package/lib/module/types/shared/payments.types.js.map +1 -1
- package/lib/module/types/shared/securitySettings.js +6 -0
- package/lib/module/types/shared/securitySettings.js.map +1 -0
- package/lib/module/types/shared/wirePayment.types.js +2 -0
- package/lib/module/types/shared/wirePayment.types.js.map +1 -0
- package/lib/module/unitSdkManager/UnitSdk.constants.js +7 -2
- package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.js +25 -5
- package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
- package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
- package/lib/module/utils/onLoadMessages.utils.js +4 -0
- package/lib/module/utils/onLoadMessages.utils.js.map +1 -0
- package/lib/module/webComponent/WebComponent.js +12 -6
- package/lib/module/webComponent/WebComponent.js.map +1 -1
- package/lib/module/webComponent/WebComponent.utils.js +3 -0
- package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/module/webComponent/html.js +3 -1
- package/lib/module/webComponent/html.js.map +1 -1
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +1 -1
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNCardActionComponent/UNCardActionComponent.d.ts +14 -0
- package/lib/typescript/src/components/UNCardActionComponent/UNCardActionComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNCardActionComponent/UNCardActionComponent.utils.d.ts +4 -0
- package/lib/typescript/src/components/UNCardActionComponent/UNCardActionComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNCardActionComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNCardActionComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts +3 -1
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.d.ts +14 -0
- package/lib/typescript/src/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.d.ts +4 -0
- package/lib/typescript/src/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultiFactorAuthenticationComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNMultiFactorAuthenticationComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.d.ts +2 -1
- package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts +20 -0
- package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts +4 -0
- package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +3 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts +2 -0
- package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSnapshotProtection.d.ts +2 -0
- package/lib/typescript/src/hooks/useSnapshotProtection.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/index.d.ts +2 -1
- package/lib/typescript/src/messages/webMessages/index.d.ts.map +1 -1
- package/lib/typescript/src/messages/webMessages/multiFactorAuthenticationMessage.d.ts +4 -0
- package/lib/typescript/src/messages/webMessages/multiFactorAuthenticationMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts +8 -4
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -1
- package/lib/typescript/src/messages/webMessages/unitMessages.d.ts +11 -1
- package/lib/typescript/src/messages/webMessages/unitMessages.d.ts.map +1 -1
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts +11 -0
- package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts +2 -0
- package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts.map +1 -0
- package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts +6 -0
- package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts.map +1 -0
- package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts +12 -0
- package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts.map +1 -0
- package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts +1 -0
- package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -1
- package/lib/typescript/src/scripts/html/bodyScript.d.ts +1 -0
- package/lib/typescript/src/scripts/html/bodyScript.d.ts.map +1 -1
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts +2 -2
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts.map +1 -1
- package/lib/typescript/src/store/store.d.ts +2 -2
- package/lib/typescript/src/types/internal/webComponent.types.d.ts +4 -1
- package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/achCredit.types.d.ts +1 -1
- package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/env.types.d.ts +2 -1
- package/lib/typescript/src/types/shared/env.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/index.d.ts +1 -0
- package/lib/typescript/src/types/shared/index.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/multiFactorAuthentication.types.d.ts +15 -0
- package/lib/typescript/src/types/shared/multiFactorAuthentication.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/payeeManagement.types.d.ts +32 -0
- package/lib/typescript/src/types/shared/payeeManagement.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/payments.types.d.ts +2 -1
- package/lib/typescript/src/types/shared/payments.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/securitySettings.d.ts +8 -0
- package/lib/typescript/src/types/shared/securitySettings.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/wirePayment.types.d.ts +42 -0
- package/lib/typescript/src/types/shared/wirePayment.types.d.ts.map +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts +2 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -1
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts +6 -2
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -1
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.utils.internal.d.ts.map +1 -1
- package/lib/typescript/src/utils/onLoadMessages.utils.d.ts +2 -0
- package/lib/typescript/src/utils/onLoadMessages.utils.d.ts.map +1 -0
- package/lib/typescript/src/webComponent/WebComponent.d.ts.map +1 -1
- package/lib/typescript/src/webComponent/WebComponent.utils.d.ts +3 -1
- package/lib/typescript/src/webComponent/WebComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/webComponent/html.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-unit-components.podspec +1 -1
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +11 -16
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +11 -17
- package/src/components/UNAccountComponent/UNAccountComponent.tsx +3 -3
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +7 -14
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +14 -17
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +0 -1
- package/src/components/UNCardActionComponent/UNCardActionComponent.tsx +81 -0
- package/src/components/UNCardActionComponent/UNCardActionComponent.utils.ts +16 -0
- package/src/components/UNCardActionComponent/index.ts +1 -0
- package/src/components/UNCardComponent/UNCardComponent.tsx +28 -4
- package/src/components/UNCardComponent/UNCardComponent.utils.ts +2 -1
- package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +7 -14
- package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.tsx +16 -12
- package/src/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.tsx +86 -0
- package/src/components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.ts +27 -0
- package/src/components/UNMultiFactorAuthenticationComponent/index.ts +1 -0
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +6 -14
- package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +3 -3
- package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.ts +1 -1
- package/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx +37 -12
- package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +3 -3
- package/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx +14 -11
- package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.tsx +109 -0
- package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.ts +23 -0
- package/src/components/UNWirePaymentComponent/index.ts +1 -0
- package/src/components/index.ts +3 -0
- package/src/helpers/BottomSheet/BottomSheet.tsx +3 -4
- package/src/hooks/useIsJailbrokeDevice.ts +17 -0
- package/src/hooks/useSnapshotProtection.ts +25 -0
- package/src/messages/webMessages/index.ts +2 -0
- package/src/messages/webMessages/multiFactorAuthenticationMessage.ts +3 -0
- package/src/messages/webMessages/onLoadMessage.ts +9 -2
- package/src/messages/webMessages/unitMessages.ts +14 -2
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +12 -11
- package/src/nativeComponents/UNBaseView/UNBaseView.tsx +50 -0
- package/src/nativeComponents/UNBaseView/index.ts +1 -0
- package/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.ts +21 -0
- package/src/nativeModulesHelpers/UNSecurityHelper.ts +35 -0
- package/src/networking/common/UNNetworkConstants.ts +2 -1
- package/src/scripts/html/bodyScript.ts +18 -4
- package/src/slices/SharedEventsSlice.ts +2 -2
- package/src/types/internal/webComponent.types.ts +3 -0
- package/src/types/shared/achCredit.types.ts +1 -1
- package/src/types/shared/env.types.ts +2 -1
- package/src/types/shared/index.ts +1 -0
- package/src/types/shared/multiFactorAuthentication.types.ts +17 -0
- package/src/types/shared/payeeManagement.types.ts +31 -0
- package/src/types/shared/payments.types.ts +1 -0
- package/src/types/shared/securitySettings.ts +8 -0
- package/src/types/shared/wirePayment.types.ts +43 -0
- package/src/unitSdkManager/UnitSdk.constants.ts +7 -1
- package/src/unitSdkManager/UnitSdkManager.ts +37 -7
- package/src/unitSdkManager/UnitSdkManager.utils.internal.ts +3 -0
- package/src/utils/onLoadMessages.utils.ts +3 -0
- package/src/webComponent/WebComponent.tsx +14 -6
- package/src/webComponent/WebComponent.utils.ts +6 -1
- package/src/webComponent/html.ts +4 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { UNBaseView } from '../../nativeComponents/UNBaseView';
|
|
3
|
+
import { WebComponent } from '../../webComponent/WebComponent';
|
|
4
|
+
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
5
|
+
import { withReduxStore } from '../../helpers/store/helpers';
|
|
6
|
+
import { getMultiFactorAuthenticationParams, getMultiFactorAuthenticationScript } from './UNMultiFactorAuthenticationComponent.utils';
|
|
7
|
+
import { PageMessage } from '../../messages/webMessages/pageMessage';
|
|
8
|
+
import { UnitMessage } from '../../messages/webMessages/unitMessages';
|
|
9
|
+
import { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
10
|
+
import { MultiFactorAuthenticationMessage } from '../../messages/webMessages/multiFactorAuthenticationMessage';
|
|
11
|
+
const UNMultiFactorAuthenticationComponent = props => {
|
|
12
|
+
const [height, setHeight] = useState(0);
|
|
13
|
+
const [presentationMode, setPresentationMode] = useState(PresentationMode.Inherit);
|
|
14
|
+
const handleUnitOnLoad = response => {
|
|
15
|
+
if (!props.onLoad) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (RESPONSE_KEYS.errors in response) {
|
|
19
|
+
props.onLoad(response);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
props.onLoad({
|
|
23
|
+
data: undefined
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const handleWebViewMessage = message => {
|
|
27
|
+
if (!message || !message.details) return;
|
|
28
|
+
switch (message.type) {
|
|
29
|
+
case UnitMessage.UNIT_ON_LOAD:
|
|
30
|
+
handleUnitOnLoad(message.details);
|
|
31
|
+
break;
|
|
32
|
+
case PageMessage.PAGE_HEIGHT:
|
|
33
|
+
{
|
|
34
|
+
const currentHeight = message.details.height;
|
|
35
|
+
setHeight(currentHeight);
|
|
36
|
+
if (presentationMode === PresentationMode.Inherit && currentHeight === 0) {
|
|
37
|
+
setPresentationMode(PresentationMode.Default);
|
|
38
|
+
}
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
case MultiFactorAuthenticationMessage.UNIT_MFA_VERIFICATION_TOKEN_CREATED:
|
|
42
|
+
props.onVerificationTokenCreated && props.onVerificationTokenCreated(message.details);
|
|
43
|
+
break;
|
|
44
|
+
case UnitMessage.UNIT_MULTI_FACTOR_AUTH_FINISHED:
|
|
45
|
+
{
|
|
46
|
+
const data = JSON.parse(message.details.unitVerifiedCustomerTokenString);
|
|
47
|
+
props.onAuthenticationFinished && props.onAuthenticationFinished(data);
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const style = presentationMode === PresentationMode.Inherit ? {
|
|
53
|
+
flex: 1
|
|
54
|
+
} : {
|
|
55
|
+
height: height
|
|
56
|
+
};
|
|
57
|
+
return /*#__PURE__*/React.createElement(UNBaseView, {
|
|
58
|
+
style: style,
|
|
59
|
+
onLoadError: handleUnitOnLoad
|
|
60
|
+
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
61
|
+
type: WebComponentType.multiFactorAuthentication,
|
|
62
|
+
presentationMode: PresentationMode.Inherit,
|
|
63
|
+
params: getMultiFactorAuthenticationParams(props),
|
|
64
|
+
script: getMultiFactorAuthenticationScript(),
|
|
65
|
+
onMessage: message => handleWebViewMessage(message),
|
|
66
|
+
theme: props.theme,
|
|
67
|
+
language: props.language
|
|
68
|
+
}));
|
|
69
|
+
};
|
|
70
|
+
export default withReduxStore(UNMultiFactorAuthenticationComponent);
|
|
71
|
+
//# sourceMappingURL=UNMultiFactorAuthenticationComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","UNBaseView","WebComponent","PresentationMode","WebComponentType","withReduxStore","getMultiFactorAuthenticationParams","getMultiFactorAuthenticationScript","PageMessage","UnitMessage","RESPONSE_KEYS","MultiFactorAuthenticationMessage","UNMultiFactorAuthenticationComponent","props","height","setHeight","presentationMode","setPresentationMode","Inherit","handleUnitOnLoad","response","onLoad","errors","data","undefined","handleWebViewMessage","message","details","type","UNIT_ON_LOAD","PAGE_HEIGHT","currentHeight","Default","UNIT_MFA_VERIFICATION_TOKEN_CREATED","onVerificationTokenCreated","UNIT_MULTI_FACTOR_AUTH_FINISHED","JSON","parse","unitVerifiedCustomerTokenString","onAuthenticationFinished","style","flex","createElement","onLoadError","multiFactorAuthentication","params","script","onMessage","theme","language"],"sourceRoot":"../../../../src","sources":["components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,YAAY,QAAQ,iCAAiC;AAC9D,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,kCAAkC,EAAEC,kCAAkC,QAAQ,8CAA8C;AAErI,SAAsBC,WAAW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B,CAACR,OAAO,CAACC,OAAsC,CAAC;QACpH;MACF,KAAKlB,WAAW,CAAC0B,+BAA+B;QAAE;UAChD,MAAMZ,IAAI,GAAGa,IAAI,CAACC,KAAK,CAAEX,OAAO,CAACC,OAAO,CAA4CW,+BAA+B,CAAC;UACpHzB,KAAK,CAAC0B,wBAAwB,IAAI1B,KAAK,CAAC0B,wBAAwB,CAAChB,IAA2C,CAAC;UAC7G;QACF;IACF;EACF,CAAC;EAED,MAAMiB,KAAK,GAAGxB,gBAAgB,KAAKb,gBAAgB,CAACe,OAAO,GAAG;IAAEuB,IAAI,EAAE;EAAE,CAAC,GAAG;IAAE3B,MAAM,EAAEA;EAAO,CAAC;EAC9F,oBAAOf,KAAA,CAAA2C,aAAA,CAACzC,UAAU;IAACuC,KAAK,EAAEA,KAAM;IAACG,WAAW,EAAExB;EAAiB,gBAC7DpB,KAAA,CAAA2C,aAAA,CAACxC,YAAY;IACX0B,IAAI,EAAExB,gBAAgB,CAACwC,yBAA0B;IACjD5B,gBAAgB,EAAEb,gBAAgB,CAACe,OAAQ;IAC3C2B,MAAM,EAAEvC,kCAAkC,CAACO,KAAK,CAAE;IAClDiC,MAAM,EAAEvC,kCAAkC,CAAC,CAAE;IAC7CwC,SAAS,EAAGrB,OAAuB,IAAKD,oBAAoB,CAACC,OAAO,CAAE;IACtEsB,KAAK,EAAEnC,KAAK,CAACmC,KAAM;IACnBC,QAAQ,EAAEpC,KAAK,CAACoC;EAAS,CAC1B,CACS,CAAC;AACf,CAAC;AAED,eAAe5C,cAAc,CAA4CO,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MultiFactorAuthenticationMessage } from '../../messages/webMessages/multiFactorAuthenticationMessage';
|
|
2
|
+
export const getMultiFactorAuthenticationParams = props => {
|
|
3
|
+
return `
|
|
4
|
+
customer-token="${props.customerToken}"
|
|
5
|
+
`;
|
|
6
|
+
};
|
|
7
|
+
const MULTI_FACTOR_AUTHENTICATION_LISTENERS = {
|
|
8
|
+
verificationTokenCreated: `
|
|
9
|
+
window.addEventListener("${MultiFactorAuthenticationMessage.UNIT_MFA_VERIFICATION_TOKEN_CREATED}", (e) => {
|
|
10
|
+
const response = e.detail
|
|
11
|
+
response.then((data) => {
|
|
12
|
+
postMessageToSDK({ type: "${MultiFactorAuthenticationMessage.UNIT_MFA_VERIFICATION_TOKEN_CREATED}", details: data.data })
|
|
13
|
+
}).catch((e) => {
|
|
14
|
+
console.log(e)
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
`
|
|
18
|
+
};
|
|
19
|
+
export const getMultiFactorAuthenticationScript = () => {
|
|
20
|
+
return `
|
|
21
|
+
${MULTI_FACTOR_AUTHENTICATION_LISTENERS.verificationTokenCreated}
|
|
22
|
+
`;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=UNMultiFactorAuthenticationComponent.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MultiFactorAuthenticationMessage","getMultiFactorAuthenticationParams","props","customerToken","MULTI_FACTOR_AUTHENTICATION_LISTENERS","verificationTokenCreated","UNIT_MFA_VERIFICATION_TOKEN_CREATED","getMultiFactorAuthenticationScript"],"sourceRoot":"../../../../src","sources":["components/UNMultiFactorAuthenticationComponent/UNMultiFactorAuthenticationComponent.utils.ts"],"mappings":"AAAA,SAASA,gCAAgC,QAAQ,6DAA6D;AAG9G,OAAO,MAAMC,kCAAkC,GAAIC,KAAgD,IAAK;EACtG,OAAQ;AACV,sBAAsBA,KAAK,CAACC,aAAc;AAC1C,GAAG;AACH,CAAC;AAED,MAAMC,qCAAqC,GAAG;EAC5CC,wBAAwB,EAAG;AAC7B,+BAA+BL,gCAAgC,CAACM,mCAAoC;AACpG;AACA;AACA,oCAAoCN,gCAAgC,CAACM,mCAAoC;AACzG;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,kCAAkC,GAAGA,CAAA,KAAM;EACtD,OAAQ;AACV,OAAOH,qCAAqC,CAACC,wBAAyB;AACtE,GAAG;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","UNMultiFactorAuthenticationComponent","UNMultiFactorAuthenticationComponentProps"],"sourceRoot":"../../../../src","sources":["components/UNMultiFactorAuthenticationComponent/index.ts"],"mappings":"AAAA,SAASA,OAAO,IAAIC,oCAAoC,EAAEC,yCAAyC,QAAQ,wCAAwC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
|
-
import { Dimensions
|
|
2
|
+
import { Dimensions } from 'react-native';
|
|
3
3
|
import { PageMessage } from '../../messages/webMessages/pageMessage';
|
|
4
4
|
import { WebComponent } from '../../webComponent/WebComponent';
|
|
5
5
|
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
@@ -8,6 +8,7 @@ import { getMultipleCardsParams, getMultipleCardsScript } from './UNMultipleCard
|
|
|
8
8
|
import { UnitMessage } from '../../messages/webMessages/unitMessages';
|
|
9
9
|
import { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
10
10
|
import { MultipleCardsMessage } from '../../messages/webMessages/multipleCardsMessage';
|
|
11
|
+
import { UNBaseView } from '../../nativeComponents/UNBaseView';
|
|
11
12
|
const DEFAULT_HEIGHT = Dimensions.get('window').height * 0.5;
|
|
12
13
|
const UNMultipleCardsComponent = props => {
|
|
13
14
|
const webRef = useRef(null);
|
|
@@ -51,27 +52,25 @@ const UNMultipleCardsComponent = props => {
|
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
presentationMode: PresentationMode.Inherit,
|
|
59
|
-
params: getMultipleCardsParams(props),
|
|
60
|
-
script: getMultipleCardsScript(),
|
|
61
|
-
onMessage: message => handleWebViewMessage(message),
|
|
62
|
-
nestedScrollEnabled: true,
|
|
63
|
-
theme: props.theme,
|
|
64
|
-
language: props.language
|
|
65
|
-
});
|
|
55
|
+
const style = defaultHeight ? {
|
|
56
|
+
height: defaultHeight
|
|
57
|
+
} : {
|
|
58
|
+
flex: 1
|
|
66
59
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
60
|
+
return /*#__PURE__*/React.createElement(UNBaseView, {
|
|
61
|
+
style: style,
|
|
62
|
+
onLoadError: handleUnitOnLoad
|
|
63
|
+
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
64
|
+
ref: webRef,
|
|
65
|
+
type: WebComponentType.multipleCards,
|
|
66
|
+
presentationMode: PresentationMode.Inherit,
|
|
67
|
+
params: getMultipleCardsParams(props),
|
|
68
|
+
script: getMultipleCardsScript(),
|
|
69
|
+
onMessage: message => handleWebViewMessage(message),
|
|
70
|
+
nestedScrollEnabled: true,
|
|
71
|
+
theme: props.theme,
|
|
72
|
+
language: props.language
|
|
73
|
+
}));
|
|
75
74
|
};
|
|
76
75
|
export default withReduxStore(UNMultipleCardsComponent);
|
|
77
76
|
//# sourceMappingURL=UNMultipleCardsComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","useState","Dimensions","
|
|
1
|
+
{"version":3,"names":["React","useRef","useState","Dimensions","PageMessage","WebComponent","PresentationMode","WebComponentType","withReduxStore","getMultipleCardsParams","getMultipleCardsScript","UnitMessage","RESPONSE_KEYS","MultipleCardsMessage","UNBaseView","DEFAULT_HEIGHT","get","height","UNMultipleCardsComponent","props","webRef","defaultHeight","setDefaultHeight","cardClicked","card","onCardClicked","handleUnitOnLoad","response","onLoad","errors","cards","console","error","handleWebViewMessage","message","details","type","UNIT_ON_LOAD","PAGE_HEIGHT","currentHeight","UNIT_MULTIPLE_CARDS_CARD_CLICKED","style","flex","createElement","onLoadError","ref","multipleCards","presentationMode","Inherit","params","script","onMessage","nestedScrollEnabled","the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EnC,KAAK,CAACmC;EAAS,CAC1B,CACS,CAAC;AAEjB,CAAC;AAED,eAAe9C,cAAc,CAAgCU,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
2
|
import { PageMessage } from '../../messages/webMessages/pageMessage';
|
|
4
3
|
import { UnitMessage } from '../../messages/webMessages/unitMessages';
|
|
5
4
|
import { WebComponent } from '../../webComponent/WebComponent';
|
|
@@ -7,6 +6,7 @@ import { getNextRepaymentParams } from './UNNextRepaymentComponent.utils';
|
|
|
7
6
|
import { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
8
7
|
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
9
8
|
import { withReduxStore } from '../../helpers/store/helpers';
|
|
9
|
+
import { UNBaseView } from '../../nativeComponents/UNBaseView';
|
|
10
10
|
const UNNextRepaymentComponent = props => {
|
|
11
11
|
const [height, setHeight] = useState(0);
|
|
12
12
|
const handleUnitOnLoad = response => {
|
|
@@ -34,11 +34,12 @@ const UNNextRepaymentComponent = props => {
|
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
return /*#__PURE__*/React.createElement(
|
|
37
|
+
return /*#__PURE__*/React.createElement(UNBaseView, {
|
|
38
38
|
style: {
|
|
39
39
|
height,
|
|
40
40
|
width: '100%'
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
onLoadError: handleUnitOnLoad
|
|
42
43
|
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
43
44
|
type: WebComponentType.nextRepayment,
|
|
44
45
|
presentationMode: PresentationMode.Default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","
|
|
1
|
+
{"version":3,"names":["React","useState","PageMessage","UnitMessage","WebComponent","getNextRepaymentParams","RESPONSE_KEYS","PresentationMode","WebComponentType","withReduxStore","UNBaseView","UNNextRepaymentComponent","props","height","setHeight","handleUnitOnLoad","response","onLoad","errors","repayment","console","error","handleMessage","message","type","UNIT_ON_LOAD","details","PAGE_HEIGHT","createElement","style","width","onLoadError","nextRepayment","presentationMode","Default","params","theme","language","onMessage","isScrollable"],"sourceRoot":"../../../../src","sources":["components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAAsBC,WAAW,QAAQ,wCAAwC;AACjF,SAASC,WAAW,QAAQ,yCAAyC;AACrE,SAASC,YAAY,QAAQ,iCAAiC;AAE9D,SACEC,sBAAsB,QACjB,kCAAkC;AAEzC,SAASC,aAAa,QAAiC,0CAA0C;AACjG,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAASC,cAAc,QAAQ,6BAA6B;AAE5D,SAASC,UAAU,QAAQ,mCAAmC;AAgB9D,MAAMC,wBAAwB,GAAIC,KAAoC,IAAK;EAEzE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGb,QAAQ,CAAC,CAAC,CAAC;EAEvC,MAAMc,gBAAgB,GAAIC,QAAiC,IAAK;IAC9D,IAAI,CAACJ,KAAK,CAACK,MAAM,EAAE;MACjB;IACF;IAEA,IAAIX,aAAa,CAACY,MAAM,IAAIF,QAAQ,EAAE;MACpCJ,KAAK,CAACK,MAAM,CAACD,QAAmB,CAAC;MACjC;IACF;IAEA,IAAIV,aAAa,CAACa,SAAS,IAAIH,QAAQ,EAAE;MACvCJ,KAAK,CAACK,MAAM,CAACD,QAAQ,CAACV,aAAa,CAACa,SAAS,CAA4C,CAAC;MAC1F;IACF;IAEAC,OAAO,CAACC,KAAK,CAAC,0CAA0C,CAAC;IACzD;EACF,CAAC;EAED,MAAMC,aAAa,GAAIC,OAAuB,IAAK;IACjD,QAAQA,OAAO,CAACC,IAAI;MAClB,KAAKrB,WAAW,CAACsB,YAAY;QAC3BV,gBAAgB,CAACQ,OAAO,CAACG,OAAkC,CAAC;QAC5D;MAEF,KAAKxB,WAAW,CAACyB,WAAW;QAC1Bb,SAAS,CAAES,OAAO,CAACG,OAAO,CAAiBb,MAAM,CAAC;QAClD;IACJ;EACF,CAAC;EAED,oBACEb,KAAA,CAAA4B,aAAA,CAAClB,UAAU;IAACmB,KAAK,EAAE;MAAEhB,MAAM;MAAEiB,KAAK,EAAE;IAAO,CAAE;IAACC,WAAW,EAAGhB;EAAkB,gBAC5Ef,KAAA,CAAA4B,aAAA,CAACxB,YAAY;IACXoB,IAAI,EAAEhB,gBAAgB,CAACwB,aAAc;IACrCC,gBAAgB,EAAE1B,gBAAgB,CAAC2B,OAAQ;IAC3CC,MAAM,EAAE9B,sBAAsB,CAACO,KAAK,CAAE;IACtCwB,KAAK,EAAExB,KAAK,CAACwB,KAAM;IACnBC,QAAQ,EAAEzB,KAAK,CAACyB,QAAS;IACzBC,SAAS,EAAEf,OAAO,IAAID,aAAa,CAACC,OAAO,CAAE;IAC7CgB,YAAY,EAAE;EAAM,CACrB,CACS,CAAC;AAEjB,CAAC;AAED,eAAe9B,cAAc,CAAgCE,wBAAwB,CAAC"}
|
|
@@ -2,7 +2,7 @@ export const getNextRepaymentParams = props => {
|
|
|
2
2
|
return `
|
|
3
3
|
customer-token="${props.customerToken}"
|
|
4
4
|
account-id="${props.accountId}"
|
|
5
|
-
hide-
|
|
5
|
+
hide-title="${props.hideTitle || false}"
|
|
6
6
|
`;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=UNNextRepaymentComponent.utils.js.map
|
package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getNextRepaymentParams","props","customerToken","accountId","hideTitle"],"sourceRoot":"../../../../src","sources":["components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.ts"],"mappings":"AAEA,OAAO,MAAMA,sBAAsB,GAAIC,KAAoC,IAAK;EAE9E,OAAQ;AACV,sBAAsBA,KAAK,CAACC,aAAc;AAC1C,kBAAkBD,KAAK,CAACE,SAAU;AAClC,
|
|
1
|
+
{"version":3,"names":["getNextRepaymentParams","props","customerToken","accountId","hideTitle"],"sourceRoot":"../../../../src","sources":["components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.ts"],"mappings":"AAEA,OAAO,MAAMA,sBAAsB,GAAIC,KAAoC,IAAK;EAE9E,OAAQ;AACV,sBAAsBA,KAAK,CAACC,aAAc;AAC1C,kBAAkBD,KAAK,CAACE,SAAU;AAClC,kBAAkBF,KAAK,CAACG,SAAS,IAAI,KAAM;AAC3C,GAAG;AACH,CAAC"}
|
|
@@ -12,6 +12,8 @@ import { useListenerToEvent } from '../../hooks/useListenerToEvent';
|
|
|
12
12
|
import { openLink } from 'react-native-plaid-link-sdk';
|
|
13
13
|
import { PlaidMessage } from '../../messages/webMessages/plaidMessages';
|
|
14
14
|
import { PayeeManagementMessage } from '../../messages/webMessages/payeeManagementMessage';
|
|
15
|
+
import { UNBaseView } from '../../nativeComponents/UNBaseView';
|
|
16
|
+
import { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
15
17
|
const UNPayeeManagementComponent = props => {
|
|
16
18
|
const dispatch = useDispatch();
|
|
17
19
|
const webRef = useRef(null);
|
|
@@ -70,6 +72,21 @@ const UNPayeeManagementComponent = props => {
|
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
};
|
|
75
|
+
const handleUnitOnLoad = response => {
|
|
76
|
+
if (!props.onLoad) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (RESPONSE_KEYS.errors in response) {
|
|
80
|
+
props.onLoad(response);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (RESPONSE_KEYS.counterpartiesResult in response) {
|
|
84
|
+
props.onLoad(response[RESPONSE_KEYS.counterpartiesResult]);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
console.error('On Load Error: unexpected response type');
|
|
88
|
+
return;
|
|
89
|
+
};
|
|
73
90
|
const handleMessage = message => {
|
|
74
91
|
switch (message.type) {
|
|
75
92
|
case UnitMessage.UNIT_REQUEST_RENDERING:
|
|
@@ -80,6 +97,7 @@ const UNPayeeManagementComponent = props => {
|
|
|
80
97
|
}
|
|
81
98
|
case UnitMessage.UNIT_ON_LOAD:
|
|
82
99
|
{
|
|
100
|
+
handleUnitOnLoad(message.details);
|
|
83
101
|
break;
|
|
84
102
|
}
|
|
85
103
|
case PayeeManagementMessage.UNIT_CONNECTED_ACCOUNT_CREATED:
|
|
@@ -108,7 +126,11 @@ const UNPayeeManagementComponent = props => {
|
|
|
108
126
|
}
|
|
109
127
|
}
|
|
110
128
|
};
|
|
111
|
-
return /*#__PURE__*/React.createElement(
|
|
129
|
+
return /*#__PURE__*/React.createElement(UNBaseView, {
|
|
130
|
+
style: {
|
|
131
|
+
height: '100%'
|
|
132
|
+
}
|
|
133
|
+
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
112
134
|
ref: webRef,
|
|
113
135
|
type: WebComponentType.payeeManagement,
|
|
114
136
|
presentationMode: PresentationMode.Inherit,
|
|
@@ -118,7 +140,7 @@ const UNPayeeManagementComponent = props => {
|
|
|
118
140
|
nestedScrollEnabled: true,
|
|
119
141
|
language: props.language,
|
|
120
142
|
onMessage: message => handleMessage(message)
|
|
121
|
-
});
|
|
143
|
+
}));
|
|
122
144
|
};
|
|
123
145
|
export default withReduxStore(UNPayeeManagementComponent);
|
|
124
146
|
//# sourceMappingURL=UNPayeeManagementComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","UnitMessage","WebComponent","PresentationMode","WebComponentType","withReduxStore","getPayeeParams","getPayeeManagementScript","injectRefreshEventIfNeeded","injectUnitPlaidResponse","injectUnitOpenPlaid","injectUnitPlaidExit","BottomSheetRenderingType","useDispatch","setEvent","BottomSheetNativeMessage","useListenerToEvent","openLink","PlaidMessage","PayeeManagementMessage","UNPayeeManagementComponent","props","dispatch","webRef","requestRefresh","data","current","openPlaid","openPlaidData","linkToken","plaidLinkToken","attributes","tokenConfig","noLoadingState","token","onSuccess","success","onExit","exit","error","catch","e","console","reportCounterpartyDeleted","counterparty","onCounterpartyDeleted","busEventKey","UNIT_REQUEST_REFRESH","action","UNIT_OPEN_PLAID","UNIT_COUNTERPARTY_DELETED","handleRequestRendering","requestRenderingEvent","nativeComponentName","slotData","componentName","type","Slot","key","REQUEST_RENDERING","handleMessage","message","UNIT_REQUEST_RENDERING","details","UNIT_ON_LOAD","UNIT_CONNECTED_ACCOUNT_CREATED","account","onConnectedAccountCreated","UNIT_COUNTERPARTY_CREATED","onCounterpartyCreated","UNIT_MICRO_DEPOSIT_CONNECTION_CREATED","onMicroDepositConnectionCreated","UNIT_MICRO_DEPOSIT_CONNECTION_REJECTED","onMicroDepositConnectionRejected","createElement","ref","payeeManagement","presentationMode","Inherit","params","script","theme","nestedScrollEnabled","language","onMessage"],"sourceRoot":"../../../../src","sources":["components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AAErC,SAEEC,WAAW,QACN,yCAAyC;AAChD,SAASC,YAAY,QAAQ,iCAAiC;AAE9D,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAASC,cAAc,QAAQ,6BAA6B;AAE5D,SAASC,cAAc,EAAEC,wBAAwB,EAAEC,0BAA0B,EAAEC,uBAAuB,EAAEC,mBAAmB,EAAEC,mBAAmB,QAAQ,oCAAoC;AAC5L,SAASC,wBAAwB,QAA4C,wCAAwC;AAErH,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,wBAAwB,QAAQ,kDAAkD;AAC3F,SAASC,kBAAkB,QAAQ,gCAAgC;AACnE,SAAsBC,QAAQ,QAAQ,6BAA6B;AACnE,SAAyBC,YAAY,QAAQ,0CAA0C;AACvF,SAA6DC,sBAAsB,QAA2C,mDAAmD;
|
|
1
|
+
{"version":3,"names":["React","useRef","UnitMessage","WebComponent","PresentationMode","WebComponentType","withReduxStore","getPayeeParams","getPayeeManagementScript","injectRefreshEventIfNeeded","injectUnitPlaidResponse","injectUnitOpenPlaid","injectUnitPlaidExit","BottomSheetRenderingType","useDispatch","setEvent","BottomSheetNativeMessage","useListenerToEvent","openLink","PlaidMessage","PayeeManagementMessage","UNBaseView","RESPONSE_KEYS","UNPayeeManagementComponent","props","dispatch","webRef","requestRefresh","data","current","openPlaid","openPlaidData","linkToken","plaidLinkToken","attributes","tokenConfig","noLoadingState","token","onSuccess","success","onExit","exit","error","catch","e","console","reportCounterpartyDeleted","counterparty","onCounterpartyDeleted","busEventKey","UNIT_REQUEST_REFRESH","action","UNIT_OPEN_PLAID","UNIT_COUNTERPARTY_DELETED","handleRequestRendering","requestRenderingEvent","nativeComponentName","slotData","componentName","type","Slot","key","REQUEST_RENDERING","handleUnitOnLoad","response","onLoad","errors","counterpartiesResult","handleMessage","message","UNIT_REQUEST_RENDERING","details","UNIT_ON_LOAD","UNIT_CONNECTED_ACCOUNT_CREATED","account","onConnectedAccountCreated","UNIT_COUNTERPARTY_CREATED","onCounterpartyCreated","UNIT_MICRO_DEPOSIT_CONNECTION_CREATED","onMicroDepositConnectionCreated","UNIT_MICRO_DEPOSIT_CONNECTION_REJECTED","onMicroDepositConnectionRejected","createElement","style","height","ref","payeeManagement","presentationMode","Inherit","params","script","theme","nestedScrollEnabled","language","onMessage"],"sourceRoot":"../../../../src","sources":["components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AAErC,SAEEC,WAAW,QACN,yCAAyC;AAChD,SAASC,YAAY,QAAQ,iCAAiC;AAE9D,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAASC,cAAc,QAAQ,6BAA6B;AAE5D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KAAK,CAACyD,gCAAgC,IAAIzD,KAAK,CAACyD,gCAAgC,CAACP,OAAO,CAAC;UACzF;QACF;IACF;EACF,CAAC;EAED,oBACE1E,KAAA,CAAAkF,aAAA,CAAC7D,UAAU;IAAC8D,KAAK,EAAE;MAAEC,MAAM,EAAE;IAAO;EAAE,gBACpCpF,KAAA,CAAAkF,aAAA,CAAC/E,YAAY;IACXkF,GAAG,EAAE3D,MAAO;IACZiC,IAAI,EAAEtD,gBAAgB,CAACiF,eAAgB;IACvCC,gBAAgB,EAAEnF,gBAAgB,CAACoF,OAAQ;IAC3CC,MAAM,EAAElF,cAAc,CAACiB,KAAK,CAAE;IAC9BkE,MAAM,EAAElF,wBAAwB,CAAC,CAAE;IACnCmF,KAAK,EAAEnE,KAAK,CAACmE,KAAM;IACnBC,mBAAmB,EAAE,IAAK;IAC1BC,QAAQ,EAAErE,KAAK,CAACqE,QAAS;IACzBC,SAAS,EAAEzB,OAAO,IAAID,aAAa,CAACC,OAAO;EAAE,CAC9C,CACS,CAAC;AAEjB,CAAC;AAED,eAAe/D,cAAc,CAAkCiB,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
2
|
import { WebComponent } from '../../webComponent/WebComponent';
|
|
4
3
|
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
5
4
|
import { getProgramDetailsParams } from './UNProgramDetailsComponent.utils';
|
|
@@ -7,6 +6,7 @@ import { withReduxStore } from '../../helpers/store/helpers';
|
|
|
7
6
|
import { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
8
7
|
import { UnitMessage } from '../../messages/webMessages/unitMessages';
|
|
9
8
|
import { PageMessage } from '../../messages/webMessages/pageMessage';
|
|
9
|
+
import { UNBaseView } from '../../nativeComponents/UNBaseView';
|
|
10
10
|
const UNProgramDetailsComponent = props => {
|
|
11
11
|
const [height, setHeight] = useState(0);
|
|
12
12
|
const handleUnitOnLoad = response => {
|
|
@@ -35,11 +35,12 @@ const UNProgramDetailsComponent = props => {
|
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
return /*#__PURE__*/React.createElement(
|
|
38
|
+
return /*#__PURE__*/React.createElement(UNBaseView, {
|
|
39
39
|
style: {
|
|
40
40
|
height,
|
|
41
41
|
width: '100%'
|
|
42
|
-
}
|
|
42
|
+
},
|
|
43
|
+
onLoadError: handleUnitOnLoad
|
|
43
44
|
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
44
45
|
type: WebComponentType.programDetails,
|
|
45
46
|
presentationMode: PresentationMode.Default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","
|
|
1
|
+
{"version":3,"names":["React","useState","WebComponent","PresentationMode","WebComponentType","getProgramDetailsParams","withReduxStore","RESPONSE_KEYS","UnitMessage","PageMessage","UNBaseView","UNProgramDetailsComponent","props","height","setHeight","handleUnitOnLoad","response","console","log","onLoad","errors","account","error","handleMessage","message","type","UNIT_ON_LOAD","details","PAGE_HEIGHT","createElement","style","width","onLoadError","programDetails","presentationMode","Default","params","theme","language","onMessage"],"sourceRoot":"../../../../src","sources":["components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,YAAY,QAAQ,iCAAiC;AAE9D,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAE5F,SAASC,uBAAuB,QAAQ,mCAAmC;AAC3E,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,aAAa,QAAiC,0CAA0C;AACjG,SAASC,WAAW,QAAQ,yCAAyC;AACrE,SAAsBC,WAAW,QAAQ,wCAAwC;AACjF,SAASC,UAAU,QAAQ,mCAAmC;AAgB9D,MAAMC,yBAAyB,GAAKC,KAAqC,IAAK;EAC5E,MAAM,CAACC,MAAM,EAAEC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c,CAC1B,CACS,CAAC;AAEjB,CAAC;AAED,eAAejB,cAAc,CAAiCK,yBAAyB,CAAC"}
|
|
@@ -14,6 +14,7 @@ import { PageMessage } from '../../messages/webMessages/pageMessage';
|
|
|
14
14
|
import UNStoreManagerHelper from '../../nativeModulesHelpers/UNStoreManagerHelper/UNStoreManagerHelper';
|
|
15
15
|
import { ActivityMessage } from '../../messages/webMessages/activityMessage';
|
|
16
16
|
import { setItemInWindowUnitStore } from '../../utils/windowUnitStore';
|
|
17
|
+
import { UNBaseView } from '../../nativeComponents/UNBaseView';
|
|
17
18
|
const UNWhiteLabelAppComponent = props => {
|
|
18
19
|
const webRef = useRef(null);
|
|
19
20
|
const dispatch = useDispatch();
|
|
@@ -77,7 +78,11 @@ const UNWhiteLabelAppComponent = props => {
|
|
|
77
78
|
action: dispatchActivityFiltersChanged
|
|
78
79
|
});
|
|
79
80
|
const renderWebView = () => {
|
|
80
|
-
return /*#__PURE__*/React.createElement(
|
|
81
|
+
return /*#__PURE__*/React.createElement(UNBaseView, {
|
|
82
|
+
style: {
|
|
83
|
+
flex: 1
|
|
84
|
+
}
|
|
85
|
+
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
81
86
|
ref: webRef,
|
|
82
87
|
type: WebComponentType.whiteLabelApp,
|
|
83
88
|
presentationMode: PresentationMode.Inherit,
|
|
@@ -87,7 +92,7 @@ const UNWhiteLabelAppComponent = props => {
|
|
|
87
92
|
theme: props.theme,
|
|
88
93
|
language: props.language,
|
|
89
94
|
script: getWhiteLabelAppScript()
|
|
90
|
-
});
|
|
95
|
+
}));
|
|
91
96
|
};
|
|
92
97
|
return renderWebView();
|
|
93
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","WebComponent","withReduxStore","PresentationMode","WebComponentType","UnitMessage","BottomSheetRenderingType","setEvent","BottomSheetNativeMessage","useDispatch","useListenerToEvent","getWhiteLabelAppParams","getWhiteLabelAppScript","injectRefreshEventIfNeeded","UserDataKeys","PageMessage","UNStoreManagerHelper","ActivityMessage","setItemInWindowUnitStore","UNWhiteLabelAppComponent","props","webRef","dispatch","handleWebViewMessage","message","type","UNIT_REQUEST_RENDERING","slotData","componentName","whiteLabelApp","requestRenderingEvent","details","data","Slot","key","REQUEST_RENDERING","UNIT_WHITE_LABEL_APP_ON_LOAD","attributes","customerToken","saveValue","unitCustomerToken","PAGE_LOADED","updateWindowUnitStore","token","getValue","current","e","console","log","requestRefresh","dispatchActivityFiltersChanged","query","injectJavaScript","busEventKey","UNIT_REQUEST_REFRESH","action","UNIT_ACTIVITY_FILTERS_CHANGED","renderWebView","createElement","ref","presentationMode","Inherit","params","onMessage","isScrollable","theme","language","script"],"sourceRoot":"../../../../src","sources":["components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,YAAY,QAAQ,iCAAiC;AAC9D,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAAqDC,WAAW,QAAgC,yCAAyC;AAEzI,SACEC,wBAAwB,QAEnB,wCAAwC;AAE/C,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,wBAAwB,QAAQ,kDAAkD;AAC3F,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,kBAAkB,QAAQ,gCAAgC;AAEnE,SACEC,sBAAsB,EACtBC,sBAAsB,EACtBC,0BAA0B,QACrB,kCAAkC;AACzC,SAASC,YAAY,QAAQ,sCAAsC;AACnE,SAASC,WAAW,QAAQ,wCAAwC;AACpE,OAAOC,oBAAoB,MAAM,sEAAsE;AACvG,SAASC,eAAe,QAAQ,4CAA4C;AAC5E,SAASC,wBAAwB,QAAQ,6BAA6B;
|
|
1
|
+
{"version":3,"names":["React","useRef","WebComponent","withReduxStore","PresentationMode","WebComponentType","UnitMessage","BottomSheetRenderingType","setEvent","BottomSheetNativeMessage","useDispatch","useListenerToEvent","getWhiteLabelAppParams","getWhiteLabelAppScript","injectRefreshEventIfNeeded","UserDataKeys","PageMessage","UNStoreManagerHelper","ActivityMessage","setItemInWindowUnitStore","UNBaseView","UNWhiteLabelAppComponent","props","webRef","dispatch","handleWebViewMessage","message","type","UNIT_REQUEST_RENDERING","slotData","componentName","whiteLabelApp","requestRenderingEvent","details","data","Slot","key","REQUEST_RENDERING","UNIT_WHITE_LABEL_APP_ON_LOAD","attributes","customerToken","saveValue","unitCustomerToken","PAGE_LOADED","updateWindowUnitStore","token","getValue","current","e","console","log","requestRefresh","dispatchActivityFiltersChanged","query","injectJavaScript","busEventKey","UNIT_REQUEST_REFRESH","action","UNIT_ACTIVITY_FILTERS_CHANGED","renderWebView","createElement","style","flex","ref","presentationMode","Inherit","params","onMessage","isScrollable","theme","language","script"],"sourceRoot":"../../../../src","sources":["components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,YAAY,QAAQ,iCAAiC;AAC9D,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAAqDC,WAAW,QAAgC,yCAAyC;AAEzI,SACEC,wBAAwB,QAEnB,wCAAwC;AAE/C,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,wBAAwB,QAAQ,kDAAkD;AAC3F,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,kBAAkB,QAAQ,gCAAgC;AAEnE,SACEC,sBAAsB,EACtBC,sBAAsB,EACtBC,0BAA0B,QACrB,kCAAkC;AACzC,SAASC,YAAY,QAAQ,sCAAsC;AACnE,SAASC,WAAW,QAAQ,wCAAwC;AACpE,OAAOC,oBAAoB,MAAM,sEAAsE;AACvG,SAASC,eAAe,QAAQ,4CAA4C;AAC5E,SAASC,wBAAwB,QAAQ,6BAA6B;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B,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { WebComponent } from '../../webComponent/WebComponent';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
4
|
+
import { withReduxStore } from '../../helpers/store/helpers';
|
|
5
|
+
import { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
6
|
+
import { PaymentMessage } from '../../messages/webMessages/paymentsMessage';
|
|
7
|
+
import { UnitMessage } from '../../messages/webMessages/unitMessages';
|
|
8
|
+
import { PageMessage } from '../../messages/webMessages/pageMessage';
|
|
9
|
+
import { getWirePaymentParams, getWirePaymentScript } from './UNWirePaymentComponent.utils';
|
|
10
|
+
import { UNBaseView } from '../../nativeComponents/UNBaseView';
|
|
11
|
+
import { ensureArray } from '../../utils/onLoadMessages.utils';
|
|
12
|
+
const UNWirePaymentComponent = props => {
|
|
13
|
+
const [height, setHeight] = useState(0);
|
|
14
|
+
const [presentationMode, setPresentationMode] = useState(PresentationMode.Inherit);
|
|
15
|
+
const handleUnitOnLoad = response => {
|
|
16
|
+
if (!props.onLoad) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (RESPONSE_KEYS.errors in response) {
|
|
20
|
+
props.onLoad(response);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (RESPONSE_KEYS.account in response) {
|
|
24
|
+
const account = response[RESPONSE_KEYS.account].data;
|
|
25
|
+
const paymentOnLoad = {
|
|
26
|
+
data: ensureArray(account)
|
|
27
|
+
};
|
|
28
|
+
props.onLoad(paymentOnLoad);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
console.error('On Load Error: unexpected response type');
|
|
32
|
+
return;
|
|
33
|
+
};
|
|
34
|
+
const handleWebViewMessage = message => {
|
|
35
|
+
if (!message || !message.details) return;
|
|
36
|
+
switch (message.type) {
|
|
37
|
+
case PaymentMessage.INITIAL_STAGE_BACK_BUTTON_CLICKED:
|
|
38
|
+
{
|
|
39
|
+
props.onInitialStageBackButtonClicked && props.onInitialStageBackButtonClicked();
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
case PaymentMessage.FINAL_STAGE_DONE_BUTTON_CLICKED:
|
|
43
|
+
{
|
|
44
|
+
props.onFinalStageDoneButtonClicked && props.onFinalStageDoneButtonClicked();
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
case PaymentMessage.PAYMENT_CREATED:
|
|
48
|
+
props.onPaymentCreated && props.onPaymentCreated(message.details.data);
|
|
49
|
+
break;
|
|
50
|
+
case UnitMessage.UNIT_ON_LOAD:
|
|
51
|
+
handleUnitOnLoad(message.details);
|
|
52
|
+
break;
|
|
53
|
+
case PageMessage.PAGE_HEIGHT:
|
|
54
|
+
{
|
|
55
|
+
const currentHeight = message.details.height;
|
|
56
|
+
setHeight(currentHeight);
|
|
57
|
+
if (presentationMode === PresentationMode.Inherit && currentHeight === 0) {
|
|
58
|
+
setPresentationMode(PresentationMode.Default);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const style = presentationMode === PresentationMode.Inherit ? {
|
|
65
|
+
flex: 1
|
|
66
|
+
} : {
|
|
67
|
+
height: height
|
|
68
|
+
};
|
|
69
|
+
return /*#__PURE__*/React.createElement(UNBaseView, {
|
|
70
|
+
style: style
|
|
71
|
+
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
72
|
+
type: WebComponentType.wirePayment,
|
|
73
|
+
presentationMode: presentationMode,
|
|
74
|
+
params: getWirePaymentParams(props),
|
|
75
|
+
script: getWirePaymentScript(),
|
|
76
|
+
onMessage: message => handleWebViewMessage(message),
|
|
77
|
+
isScrollable: true,
|
|
78
|
+
theme: props.theme,
|
|
79
|
+
language: props.language
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
export default withReduxStore(UNWirePaymentComponent);
|
|
83
|
+
//# sourceMappingURL=UNWirePaymentComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["WebComponent","React","useState","PresentationMode","WebComponentType","withReduxStore","RESPONSE_KEYS","PaymentMessage","UnitMessage","PageMessage","getWirePaymentParams","getWirePaymentScript","UNBaseView","ensureArray","UNWirePaymentComponent","props","height","setHeight","presentationMode","setPresentationMode","Inherit","handleUnitOnLoad","response","onLoad","errors","account","data","paymentOnLoad","console","error","handleWebViewMessage","message","details","type","INITIAL_STAGE_BACK_BUTTON_CLICKED","onInitialStageBackButtonClicked","FINAL_STAGE_DONE_BUTTON_CLICKED","onFinalStageDoneButtonClicked","PAYMENT_CREATED","onPaymentCreated","UNIT_ON_LOAD","PAGE_HEIGHT","currentHeight","Default","style","flex","createElement","wirePayment","params","script","onMessage","isScrollable","theme","language"],"sourceRoot":"../../../../src","sources":["components/UNWirePaymentComponent/UNWirePaymentComponent.tsx"],"mappings":"AAAA,SAASA,YAAY,QAAQ,iCAAiC;AAC9D,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,aAAa,QAAiC,0CAA0C;AAGjG,SAASC,cAAc,QAAQ,4CAA4C;AAC3E,SAASC,WAAW,QAAQ,yCAAyC;AACrE,SAAsBC,WAAW,QAAQ,wCAAwC;AACjF,SAASC,oBAAoB,EAAEC,oBAAoB,QAAQ,gCAAgC;AAE3F,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,WAAW,QAAQ,kCAAkC;AAuB9D,MAAMC,sBAAsB,GAAIC,KAAkC,IAAK;EACrE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGf,QAAQ,CAAS,CAAC,CAAC;EAC/C,MAAM,CAACgB,gBAAgB,EAAEC,mBAAmB,CAAC,GAAGjB,QAAQ,CAAmBC,gBAAgB,CAACiB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IX,OAAO,CAACC,OAAO,CAAiBhB,MAAM;UAC7DC,SAAS,CAACyB,aAAa,CAAC;UACxB,IAAIxB,gBAAgB,KAAKf,gBAAgB,CAACiB,OAAO,IAAIsB,aAAa,KAAK,CAAC,EAAE;YACxEvB,mBAAmB,CAAChB,gBAAgB,CAACwC,OAAO,CAAC;UAC/C;UACA;QACF;IACF;EACF,CAAC;EAED,MAAMC,KAAK,GAAG1B,gBAAgB,KAAKf,gBAAgB,CAACiB,OAAO,GAAG;IAAEyB,IAAI,EAAE;EAAE,CAAC,GAAG;IAAE7B,MAAM,EAAEA;EAAO,CAAC;EAC9F,oBACEf,KAAA,CAAA6C,aAAA,CAAClC,UAAU;IAACgC,KAAK,EAAEA;EAAM,gBACvB3C,KAAA,CAAA6C,aAAA,CAAC9C,YAAY;IACXiC,IAAI,EAAE7B,gBAAgB,CAAC2C,WAAY;IACnC7B,gBAAgB,EAAEA,gBAAiB;IACnC8B,MAAM,EAAEtC,oBAAoB,CAACK,KAAK,CAAE;IACpCkC,MAAM,EAAEtC,oBAAoB,CAAC,CAAE;IAC/BuC,SAAS,EAAGnB,OAAuB,IAAKD,oBAAoB,CAACC,OAAO,CAAE;IACtEoB,YAAY,EAAE,IAAK;IACnBC,KAAK,EAAErC,KAAK,CAACqC,KAAM;IACnBC,QAAQ,EAAEtC,KAAK,CAACsC;EAAS,CAC1B,CACS,CAAC;AAEjB,CAAC;AAED,eAAehD,cAAc,CAA8BS,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LISTENERS } from '../../scripts/html/bodyScript';
|
|
2
|
+
export const getWirePaymentParams = props => {
|
|
3
|
+
const accountIdParam = props.accountId ? `account-id="${props.accountId}"` : '';
|
|
4
|
+
const feeParam = props.fee ? `fee="${props.fee}"` : '';
|
|
5
|
+
return `
|
|
6
|
+
${accountIdParam}
|
|
7
|
+
customer-token="${props.customerToken}"
|
|
8
|
+
${feeParam}
|
|
9
|
+
is-auto-focus="${props.isAutoFocus || false}"
|
|
10
|
+
initial-stage-back-button="${props.initialStageBackButton ?? false}"
|
|
11
|
+
final-stage-done-button="${props.finalStageDoneButton ?? false}"
|
|
12
|
+
`;
|
|
13
|
+
};
|
|
14
|
+
export const getWirePaymentScript = () => {
|
|
15
|
+
return `
|
|
16
|
+
${LISTENERS.unitPaymentCreated}
|
|
17
|
+
${LISTENERS.unitPaymentInitialStageBackButtonClicked}
|
|
18
|
+
${LISTENERS.unitPaymentFinalStageDoneButtonClicked}
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=UNWirePaymentComponent.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LISTENERS","getWirePaymentParams","props","accountIdParam","accountId","feeParam","fee","customerToken","isAutoFocus","initialStageBackButton","finalStageDoneButton","getWirePaymentScript","unitPaymentCreated","unitPaymentInitialStageBackButtonClicked","unitPaymentFinalStageDoneButtonClicked"],"sourceRoot":"../../../../src","sources":["components/UNWirePaymentComponent/UNWirePaymentComponent.utils.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,+BAA+B;AAGzD,OAAO,MAAMC,oBAAoB,GAAIC,KAAkC,IAAK;EAC1E,MAAMC,cAAc,GAAGD,KAAK,CAACE,SAAS,GAAI,eAAcF,KAAK,CAACE,SAAU,GAAE,GAAG,EAAE;EAC/E,MAAMC,QAAQ,GAAGH,KAAK,CAACI,GAAG,GAAI,QAAOJ,KAAK,CAACI,GAAI,GAAE,GAAG,EAAE;EACtD,OAAQ;AACV,MAAMH,cAAe;AACrB,sBAAsBD,KAAK,CAACK,aAAc;AAC1C,MAAMF,QAAS;AACf,qBAAqBH,KAAK,CAACM,WAAW,IAAI,KAAM;AAChD,iCAAiCN,KAAK,CAACO,sBAAsB,IAAI,KAAM;AACvE,+BAA+BP,KAAK,CAACQ,oBAAoB,IAAI,KAAM;AACnE,GAAG;AACH,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,KAAM;EACxC,OAAQ;AACV,MAAMX,SAAS,CAACY,kBAAmB;AACnC,MAAMZ,SAAS,CAACa,wCAAyC;AACzD,MAAMb,SAAS,CAACc,sCAAuC;AACvD,GAAG;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","UNWirePaymentComponent","UNWirePaymentComponentProps"],"sourceRoot":"../../../../src","sources":["components/UNWirePaymentComponent/index.ts"],"mappings":"AAAA,SAASA,OAAO,IAAIC,sBAAsB,EAAEC,2BAA2B,QAAQ,0BAA0B"}
|
|
@@ -12,4 +12,7 @@ export * from './UNProgramDetailsComponent';
|
|
|
12
12
|
export * from './UNNextRepaymentComponent';
|
|
13
13
|
export * from './UNWhiteLabelAppComponent';
|
|
14
14
|
export * from './UNPayeeManagementComponent';
|
|
15
|
+
export * from './UNWirePaymentComponent';
|
|
16
|
+
export * from './UNMultiFactorAuthenticationComponent';
|
|
17
|
+
export * from './UNCardActionComponent';
|
|
15
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,cAAc,mBAAmB;AACjC,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,0BAA0B;AACxC,cAAc,uBAAuB;AACrC,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,2BAA2B;AACzC,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,8BAA8B"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,cAAc,mBAAmB;AACjC,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,0BAA0B;AACxC,cAAc,uBAAuB;AACrC,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,2BAA2B;AACzC,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,wCAAwC;AACtD,cAAc,yBAAyB"}
|