react-native-unit-components 1.12.0 → 1.14.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 +93 -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 +8 -4
- 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/UNCardComponent/UNCardComponent.js +4 -3
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.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 +88 -0
- package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -0
- package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js +30 -0
- package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNFundAccountPaymentComponent/index.js +21 -0
- package/lib/commonjs/components/UNFundAccountPaymentComponent/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/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -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 +8 -3
- 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 +22 -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/fundAccountPaymentMessage.js +6 -0
- package/lib/commonjs/messages/webMessages/fundAccountPaymentMessage.js.map +1 -0
- package/lib/commonjs/messages/webMessages/onLoadMessage.js +2 -0
- package/lib/commonjs/messages/webMessages/onLoadMessage.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/types/internal/webComponent.types.js +2 -0
- package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
- package/lib/commonjs/types/shared/checkDeposit.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/fundAccountPayment.types.js +6 -0
- package/lib/commonjs/types/shared/fundAccountPayment.types.js.map +1 -0
- package/lib/commonjs/types/shared/index.js +22 -0
- package/lib/commonjs/types/shared/index.js.map +1 -1
- package/lib/commonjs/types/shared/payments.types.js +18 -1
- 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/types.js +10 -0
- package/lib/commonjs/types/shared/types.js.map +1 -1
- 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 +6 -1
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js +25 -4
- 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/unitSdkManager/unitHelpersManager/UnitHelpersManager.js +18 -0
- package/lib/commonjs/unitSdkManager/unitHelpersManager/UnitHelpersManager.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 +4 -3
- package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js +2 -2
- package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/commonjs/webComponent/html.js +1 -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 +9 -5
- 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/UNCardComponent/UNCardComponent.js +4 -3
- package/lib/module/components/UNCardComponent/UNCardComponent.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 +79 -0
- package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -0
- package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js +22 -0
- package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js.map +1 -0
- package/lib/module/components/UNFundAccountPaymentComponent/index.js +2 -0
- package/lib/module/components/UNFundAccountPaymentComponent/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/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -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 +8 -3
- 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 +2 -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/fundAccountPaymentMessage.js +2 -0
- package/lib/module/messages/webMessages/fundAccountPaymentMessage.js.map +1 -0
- package/lib/module/messages/webMessages/onLoadMessage.js +2 -0
- package/lib/module/messages/webMessages/onLoadMessage.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/types/internal/webComponent.types.js +2 -0
- package/lib/module/types/internal/webComponent.types.js.map +1 -1
- package/lib/module/types/shared/checkDeposit.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/fundAccountPayment.types.js +2 -0
- package/lib/module/types/shared/fundAccountPayment.types.js.map +1 -0
- package/lib/module/types/shared/index.js +2 -0
- package/lib/module/types/shared/index.js.map +1 -1
- package/lib/module/types/shared/payments.types.js +17 -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/types.js +6 -0
- package/lib/module/types/shared/types.js.map +1 -1
- 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 +6 -1
- package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.js +25 -4
- 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/unitSdkManager/unitHelpersManager/UnitHelpersManager.js +18 -0
- package/lib/module/unitSdkManager/unitHelpersManager/UnitHelpersManager.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 +4 -3
- package/lib/module/webComponent/WebComponent.js.map +1 -1
- package/lib/module/webComponent/WebComponent.utils.js +2 -2
- package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/module/webComponent/html.js +1 -0
- 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/UNCardComponent/UNCardComponent.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 +19 -0
- package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.d.ts +4 -0
- package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNFundAccountPaymentComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNFundAccountPaymentComponent/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.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 +2 -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/fundAccountPaymentMessage.d.ts +6 -0
- package/lib/typescript/src/messages/webMessages/fundAccountPaymentMessage.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/onLoadMessage.d.ts +10 -3
- package/lib/typescript/src/messages/webMessages/onLoadMessage.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/types/internal/webComponent.types.d.ts +2 -0
- package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/achCredit.types.d.ts +3 -3
- package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/bookPayment.types.d.ts +2 -2
- package/lib/typescript/src/types/shared/bookPayment.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/checkDeposit.types.d.ts +1 -1
- package/lib/typescript/src/types/shared/checkDeposit.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/fundAccountPayment.types.d.ts +38 -0
- package/lib/typescript/src/types/shared/fundAccountPayment.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/index.d.ts +2 -0
- package/lib/typescript/src/types/shared/index.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/payments.types.d.ts +29 -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/types.d.ts +7 -4
- package/lib/typescript/src/types/shared/types.d.ts.map +1 -1
- 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 +7 -1
- 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/unitSdkManager/unitHelpersManager/UnitHelpersManager.d.ts +2 -0
- package/lib/typescript/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.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.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 +9 -5
- 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/UNCardComponent/UNCardComponent.tsx +3 -3
- package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +7 -14
- package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.tsx +111 -0
- package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.ts +24 -0
- package/src/components/UNFundAccountPaymentComponent/index.ts +1 -0
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +6 -14
- package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +3 -3
- package/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx +14 -11
- package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +3 -3
- package/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx +15 -12
- 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 +2 -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/fundAccountPaymentMessage.ts +8 -0
- package/src/messages/webMessages/index.ts +2 -0
- package/src/messages/webMessages/onLoadMessage.ts +13 -2
- package/src/messages/webMessages/unitMessages.ts +1 -1
- 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/types/internal/webComponent.types.ts +2 -0
- package/src/types/shared/achCredit.types.ts +3 -3
- package/src/types/shared/bookPayment.types.ts +2 -2
- package/src/types/shared/checkDeposit.types.ts +1 -2
- package/src/types/shared/env.types.ts +2 -1
- package/src/types/shared/fundAccountPayment.types.ts +38 -0
- package/src/types/shared/index.ts +2 -0
- package/src/types/shared/payments.types.ts +33 -1
- package/src/types/shared/securitySettings.ts +8 -0
- package/src/types/shared/types.ts +9 -4
- package/src/types/shared/wirePayment.types.ts +43 -0
- package/src/unitSdkManager/UnitSdk.constants.ts +6 -0
- package/src/unitSdkManager/UnitSdkManager.ts +37 -4
- package/src/unitSdkManager/UnitSdkManager.utils.internal.ts +3 -0
- package/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.ts +20 -0
- package/src/utils/onLoadMessages.utils.ts +3 -0
- package/src/webComponent/WebComponent.tsx +4 -3
- package/src/webComponent/WebComponent.utils.ts +2 -2
- package/src/webComponent/html.ts +1 -0
- package/lib/commonjs/utils/SDKInfo.js +0 -13
- package/lib/commonjs/utils/SDKInfo.js.map +0 -1
- package/lib/module/utils/SDKInfo.js +0 -5
- package/lib/module/utils/SDKInfo.js.map +0 -1
- package/lib/typescript/src/utils/SDKInfo.d.ts +0 -2
- package/lib/typescript/src/utils/SDKInfo.d.ts.map +0 -1
- package/src/utils/SDKInfo.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_WebComponent","_pageMessage","_unitMessages","_UNCheckDepositComponent","_checkMessage","_onLoadMessage","_webComponent","_helpers","_paymentsMessage","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Camera","NativeModules","UNCheckDepositComponent","props","height","setHeight","useState","presentationMode","setPresentationMode","PresentationMode","Inherit","useEffect","requestCameraAccess","requestAccess","error","console","Platform","OS","handleUnitOnLoad","response","onLoad","RESPONSE_KEYS","errors","account","handleWebViewMessage","message","details","type","PaymentMessage","INITIAL_STAGE_BACK_BUTTON_CLICKED","onInitialStageBackButtonClicked","FINAL_STAGE_DONE_BUTTON_CLICKED","onFinalStageDoneButtonClicked","CheckMessage","CHECK_DEPOSIT_CREATED","onDepositCreated","CHECK_DEPOSIT_RESTART_REQUEST","onRestartRequest","UnitMessage","UNIT_ON_LOAD","PageMessage","PAGE_HEIGHT","currentHeight","Default","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_WebComponent","_pageMessage","_unitMessages","_UNCheckDepositComponent","_checkMessage","_onLoadMessage","_webComponent","_helpers","_paymentsMessage","_UNBaseView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Camera","NativeModules","UNCheckDepositComponent","props","height","setHeight","useState","presentationMode","setPresentationMode","PresentationMode","Inherit","useEffect","requestCameraAccess","requestAccess","error","console","Platform","OS","handleUnitOnLoad","response","onLoad","RESPONSE_KEYS","errors","account","handleWebViewMessage","message","details","type","PaymentMessage","INITIAL_STAGE_BACK_BUTTON_CLICKED","onInitialStageBackButtonClicked","FINAL_STAGE_DONE_BUTTON_CLICKED","onFinalStageDoneButtonClicked","CheckMessage","CHECK_DEPOSIT_CREATED","onDepositCreated","CHECK_DEPOSIT_RESTART_REQUEST","onRestartRequest","UnitMessage","UNIT_ON_LOAD","PageMessage","PAGE_HEIGHT","currentHeight","Default","style","flex","createElement","UNBaseView","onLoadError","WebComponent","WebComponentType","checkDeposit","params","getCheckDepositParams","script","getCheckDepositScript","onMessage","theme","language","isScrollable","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNCheckDepositComponent/UNCheckDepositComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAGA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,gBAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AAA+D,SAAAY,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAd,wBAAAc,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CA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CAAC,EAAE;YACxElC,mBAAmB,CAACC,8BAAgB,CAACkC,OAAO,CAAC;UAC/C;UACA;QACF;IACF;EACF,CAAC;EAED,MAAMC,KAAK,GAAGrC,gBAAgB,KAAKE,8BAAgB,CAACC,OAAO,GAAG;IAAEmC,IAAI,EAAE;EAAE,CAAC,GAAG;IAAEzC,MAAM,EAAEA;EAAO,CAAC;EAE9F,oBACEvC,MAAA,CAAAoB,OAAA,CAAA6D,aAAA,CAACpE,WAAA,CAAAqE,UAAU;IAACH,KAAK,EAAEA,KAAM;IAACI,WAAW,EAAG9B;EAAkB,gBACxDrD,MAAA,CAAAoB,OAAA,CAAA6D,aAAA,CAAC7E,aAAA,CAAAgF,YAAY;IACXtB,IAAI,EAAEuB,8BAAgB,CAACC,YAAa;IACpC5C,gBAAgB,EAAEA,gBAAiB;IACnC6C,MAAM,EAAE,IAAAC,8CAAqB,EAAClD,KAAK,CAAE;IACrCmD,MAAM,EAAE,IAAAC,8CAAqB,EAAC,CAAE;IAChCC,SAAS,EAAG/B,OAAuB,IAAKD,oBAAoB,CAACC,OAAO,CAAE;IACtEgC,KAAK,EAAEtD,KAAK,CAACsD,KAAM;IACnBC,QAAQ,EAAEvD,KAAK,CAACuD,QAAS;IACzBC,YAAY,EAAE;EAAK,CACpB,CACS,CAAC;AAEjB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA5E,OAAA,GAEa,IAAA6E,uBAAc,EAA+B5D,uBAAuB,CAAC"}
|
package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _unitMessages = require("../../messages/webMessages/unitMessages");
|
|
9
|
+
var _WebComponent = require("../../webComponent/WebComponent");
|
|
10
|
+
var _UNFundAccountPaymentComponent = require("./UNFundAccountPaymentComponent.utils");
|
|
11
|
+
var _webComponent = require("../../types/internal/webComponent.types");
|
|
12
|
+
var _helpers = require("../../helpers/store/helpers");
|
|
13
|
+
var _reactNative = require("react-native");
|
|
14
|
+
var _onLoadMessage = require("../../messages/webMessages/onLoadMessage");
|
|
15
|
+
var _paymentsMessage = require("../../messages/webMessages/paymentsMessage");
|
|
16
|
+
var _UNBaseView = require("../../nativeComponents/UNBaseView");
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
/* eslint-disable no-case-declarations */
|
|
20
|
+
|
|
21
|
+
const UNFundAccountPaymentComponent = props => {
|
|
22
|
+
const webRef = (0, _react.useRef)(null);
|
|
23
|
+
const handleUnitOnLoad = response => {
|
|
24
|
+
if (!props.onLoad) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (_onLoadMessage.RESPONSE_KEYS.errors in response) {
|
|
28
|
+
props.onLoad(response);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (_onLoadMessage.RESPONSE_KEYS.astraExternalCard in response) {
|
|
32
|
+
// AstraOnLoadResponse
|
|
33
|
+
props.onLoad(response[_onLoadMessage.RESPONSE_KEYS.astraExternalCard]);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (_onLoadMessage.RESPONSE_KEYS.accountCards in response) {
|
|
37
|
+
props.onLoad(response[_onLoadMessage.RESPONSE_KEYS.accountCards]);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
console.error('On Load Error: unexpected response type');
|
|
41
|
+
return;
|
|
42
|
+
};
|
|
43
|
+
const handleMessage = message => {
|
|
44
|
+
switch (message.type) {
|
|
45
|
+
case _unitMessages.UnitMessage.UNIT_ON_LOAD:
|
|
46
|
+
handleUnitOnLoad(message.details);
|
|
47
|
+
break;
|
|
48
|
+
case _paymentsMessage.PaymentMessage.PAYMENT_CREATED:
|
|
49
|
+
const fundAccountPayment = message.details;
|
|
50
|
+
props.onPaymentCreated && props.onPaymentCreated(fundAccountPayment.data);
|
|
51
|
+
break;
|
|
52
|
+
case _paymentsMessage.PaymentMessage.INITIAL_STAGE_BACK_BUTTON_CLICKED:
|
|
53
|
+
{
|
|
54
|
+
props.onInitialStageBackButtonClicked && props.onInitialStageBackButtonClicked();
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
case _paymentsMessage.PaymentMessage.FINAL_STAGE_DONE_BUTTON_CLICKED:
|
|
58
|
+
{
|
|
59
|
+
props.onFinalStageDoneButtonClicked && props.onFinalStageDoneButtonClicked();
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.SafeAreaView, {
|
|
65
|
+
style: {
|
|
66
|
+
flex: 1,
|
|
67
|
+
minHeight: 400
|
|
68
|
+
}
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_UNBaseView.UNBaseView, {
|
|
70
|
+
style: {
|
|
71
|
+
flex: 1
|
|
72
|
+
},
|
|
73
|
+
onLoadError: handleUnitOnLoad
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(_WebComponent.WebComponent, {
|
|
75
|
+
ref: webRef,
|
|
76
|
+
type: _webComponent.WebComponentType.fundAccountPayment,
|
|
77
|
+
presentationMode: _webComponent.PresentationMode.Inherit,
|
|
78
|
+
params: (0, _UNFundAccountPaymentComponent.getFundAccountPaymentParams)(props),
|
|
79
|
+
script: (0, _UNFundAccountPaymentComponent.getFundAccountPaymentScript)(),
|
|
80
|
+
theme: props.theme,
|
|
81
|
+
language: props.language,
|
|
82
|
+
onMessage: message => handleMessage(message),
|
|
83
|
+
isScrollable: true,
|
|
84
|
+
nestedScrollEnabled: true
|
|
85
|
+
})));
|
|
86
|
+
};
|
|
87
|
+
var _default = exports.default = (0, _helpers.withReduxStore)(UNFundAccountPaymentComponent);
|
|
88
|
+
//# sourceMappingURL=UNFundAccountPaymentComponent.js.map
|
package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_unitMessages","_WebComponent","_UNFundAccountPaymentComponent","_webComponent","_helpers","_reactNative","_onLoadMessage","_paymentsMessage","_UNBaseView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UNFundAccountPaymentComponent","props","webRef","useRef","handleUnitOnLoad","response","onLoad","RESPONSE_KEYS","errors","astraExternalCard","accountCards","console","error","handleMessage","message","type","UnitMessage","UNIT_ON_LOAD","details","PaymentMessage","PAYMENT_CREATED","fundAccountPayment","onPaymentCreated","data","INITIAL_STAGE_BACK_BUTTON_CLICKED","onInitialStageBackButtonClicked","FINAL_STAGE_DONE_BUTTON_CLICKED","onFinalStageDoneButtonClicked","createElement","SafeAreaView","style","flex","minHeight","UNBaseView","onLoadError","WebComponent","ref","WebComponentType","presentationMode","PresentationMode","Inherit","params","getFundAccountPaymentParams","script","getFundAccountPaymentScript","theme","language","onMessage","isScrollable","nestedScrollEnabled","_default","exports","withReduxStore"],"sourceRo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AqCpD,6BAA6B,CAAC"}
|
package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getFundAccountPaymentScript = exports.getFundAccountPaymentParams = void 0;
|
|
7
|
+
var _bodyScript = require("../../scripts/html/bodyScript");
|
|
8
|
+
const getFundAccountPaymentParams = props => {
|
|
9
|
+
const accountIdParam = props.accountId ? `account-id="${props.accountId}"` : '';
|
|
10
|
+
const feeParam = props.fee ? `fee="${props.fee}"` : '';
|
|
11
|
+
return `
|
|
12
|
+
customer-token="${props.customerToken}"
|
|
13
|
+
${accountIdParam}
|
|
14
|
+
${feeParam}
|
|
15
|
+
is-auto-focus="${props.isAutoFocus ?? false}"
|
|
16
|
+
initial-stage-back-button="${props.initialStageBackButton ?? false}"
|
|
17
|
+
final-stage-done-button="${props.finalStageDoneButton ?? false}"
|
|
18
|
+
style="height: 100%"
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
exports.getFundAccountPaymentParams = getFundAccountPaymentParams;
|
|
22
|
+
const getFundAccountPaymentScript = () => {
|
|
23
|
+
return `
|
|
24
|
+
${_bodyScript.LISTENERS.unitPaymentCreated}
|
|
25
|
+
${_bodyScript.LISTENERS.unitPaymentInitialStageBackButtonClicked}
|
|
26
|
+
${_bodyScript.LISTENERS.unitPaymentFinalStageDoneButtonClicked}
|
|
27
|
+
`;
|
|
28
|
+
};
|
|
29
|
+
exports.getFundAccountPaymentScript = getFundAccountPaymentScript;
|
|
30
|
+
//# sourceMappingURL=UNFundAccountPaymentComponent.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_bodyScript","require","getFundAccountPaymentParams","props","accountIdParam","accountId","feeParam","fee","customerToken","isAutoFocus","initialStageBackButton","finalStageDoneButton","exports","getFundAccountPaymentScript","LISTENERS","unitPaymentCreated","unitPaymentInitialStageBackButtonClicked","unitPaymentFinalStageDoneButtonClicked"],"sourceRoot":"../../../../src","sources":["components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.ts"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEO,MAAMC,2BAA2B,GAAIC,KAAyC,IAAK;EACxF,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,sBAAsBJ,KAAK,CAACK,aAAc;AAC1C,MAAMJ,cAAe;AACrB,MAAME,QAAS;AACf,qBAAqBH,KAAK,CAACM,WAAW,IAAI,KAAM;AAChD,iCAAiCN,KAAK,CAACO,sBAAsB,IAAI,KAAM;AACvE,+BAA+BP,KAAK,CAACQ,oBAAoB,IAAI,KAAM;AACnE;AACA,GAAG;AACH,CAAC;AAACC,OAAA,CAAAV,2BAAA,GAAAA,2BAAA;AAEK,MAAMW,2BAA2B,GAAGA,CAAA,KAAM;EAC/C,OAAQ;AACV,MAAMC,qBAAS,CAACC,kBAAmB;AACnC,MAAMD,qBAAS,CAACE,wCAAyC;AACzD,MAAMF,qBAAS,CAACG,sCAAuC;AACvD,GAAG;AACH,CAAC;AAACL,OAAA,CAAAC,2BAAA,GAAAA,2BAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "UNFundAccountPaymentComponent", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _UNFundAccountPaymentComponent.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "UNFundAccountPaymentComponentProps", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _UNFundAccountPaymentComponent.UNFundAccountPaymentComponentProps;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _UNFundAccountPaymentComponent = _interopRequireWildcard(require("./UNFundAccountPaymentComponent"));
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_UNFundAccountPaymentComponent","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set"],"sourceRoot":"../../../../src","sources":["components/UNFundAccountPaymentComponent/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,8BAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+H,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAgB,GAAA,CAAAnB,CAAA,EAAAQ,CAAA,GAAAA,CAAA"}
|
|
@@ -14,6 +14,7 @@ var _UNMultipleCardsComponent = require("./UNMultipleCardsComponent.utils");
|
|
|
14
14
|
var _unitMessages = require("../../messages/webMessages/unitMessages");
|
|
15
15
|
var _onLoadMessage = require("../../messages/webMessages/onLoadMessage");
|
|
16
16
|
var _multipleCardsMessage = require("../../messages/webMessages/multipleCardsMessage");
|
|
17
|
+
var _UNBaseView = require("../../nativeComponents/UNBaseView");
|
|
17
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
20
|
const DEFAULT_HEIGHT = _reactNative.Dimensions.get('window').height * 0.5;
|
|
@@ -59,27 +60,25 @@ const UNMultipleCardsComponent = props => {
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
presentationMode: _webComponent.PresentationMode.Inherit,
|
|
67
|
-
params: (0, _UNMultipleCardsComponent.getMultipleCardsParams)(props),
|
|
68
|
-
script: (0, _UNMultipleCardsComponent.getMultipleCardsScript)(),
|
|
69
|
-
onMessage: message => handleWebViewMessage(message),
|
|
70
|
-
nestedScrollEnabled: true,
|
|
71
|
-
theme: props.theme,
|
|
72
|
-
language: props.language
|
|
73
|
-
});
|
|
63
|
+
const style = defaultHeight ? {
|
|
64
|
+
height: defaultHeight
|
|
65
|
+
} : {
|
|
66
|
+
flex: 1
|
|
74
67
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
return /*#__PURE__*/_react.default.createElement(_UNBaseView.UNBaseView, {
|
|
69
|
+
style: style,
|
|
70
|
+
onLoadError: handleUnitOnLoad
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_WebComponent.WebComponent, {
|
|
72
|
+
ref: webRef,
|
|
73
|
+
type: _webComponent.WebComponentType.multipleCards,
|
|
74
|
+
presentationMode: _webComponent.PresentationMode.Inherit,
|
|
75
|
+
params: (0, _UNMultipleCardsComponent.getMultipleCardsParams)(props),
|
|
76
|
+
script: (0, _UNMultipleCardsComponent.getMultipleCardsScript)(),
|
|
77
|
+
onMessage: message => handleWebViewMessage(message),
|
|
78
|
+
nestedScrollEnabled: true,
|
|
79
|
+
theme: props.theme,
|
|
80
|
+
language: props.language
|
|
81
|
+
}));
|
|
83
82
|
};
|
|
84
83
|
var _default = exports.default = (0, _helpers.withReduxStore)(UNMultipleCardsComponent);
|
|
85
84
|
//# sourceMappingURL=UNMultipleCardsComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_pageMessage","_WebComponent","_webComponent","_helpers","_UNMultipleCardsComponent","_unitMessages","_onLoadMessage","_multipleCardsMessage","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DEFAULT_HEIGHT","Dimensions","height","UNMultipleCardsComponent","props","webRef","useRef","defaultHeight","setDefaultHeight","useState","cardClicked","card","onCardClicked","handleUnitOnLoad","response","onLoad","RESPONSE_KEYS","errors","cards","console","error","handleWebViewMessage","message","details","type","UnitMessage","UNIT_ON_LOAD","PageMessage","PAGE_HEIGHT","currentHeight","MultipleCardsMessage","UNIT_MULTIPLE_CARDS_CARD_CLICKED","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_pageMessage","_WebComponent","_webComponent","_helpers","_UNMultipleCardsComponent","_unitMessages","_onLoadMessage","_multipleCardsMessage","_UNBaseView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DEFAULT_HEIGHT","Dimensions","height","UNMultipleCardsComponent","props","webRef","useRef","defaultHeight","setDefaultHeight","useState","cardClicked","card","onCardClicked","handleUnitOnLoad","response","onLoad","RESPONSE_KEYS","errors","cards","console","error","handleWebViewMessage","message","details","type","UnitMessage","UNIT_ON_LOAD","PageMessage","PAGE_HEIGHT","currentHeight","MultipleCardsMessage","UNIT_MULTIPLE_CARDS_CARD_CLICKED","style","flex","createElement","UNBaseView","onLoadError","WebComponent","ref","WebComponentType","multipleCards","presentationMode","PresentationMode","Inherit","params","getMultipleCardsParams","script","getMultipleCardsScript","onMessage","nestedScrollEnabled","theme","language","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAIA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,yBAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAEA,IAAAQ,cAAA,GAAAR,OAAA;AASA,IAAAS,qBAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAA+D,SAAAW,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,G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gB,CAACC,OAAQ;IAC3CC,MAAM,EAAE,IAAAC,gDAAsB,EAACzC,KAAK,CAAE;IACtC0C,MAAM,EAAE,IAAAC,gDAAsB,EAAC,CAAE;IACjCC,SAAS,EAAG1B,OAAuB,IAAKD,oBAAoB,CAACC,OAAO,CAAE;IACtE2B,mBAAmB,EAAE,IAAK;IAC1BC,KAAK,EAAE9C,KAAK,CAAC8C,KAAM;IACnBC,QAAQ,EAAE/C,KAAK,CAAC+C;EAAS,CAC1B,CACS,CAAC;AAEjB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAApE,OAAA,GAEa,IAAAqE,uBAAc,EAAgCnD,wBAAwB,CAAC"}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
8
|
var _pageMessage = require("../../messages/webMessages/pageMessage");
|
|
10
9
|
var _unitMessages = require("../../messages/webMessages/unitMessages");
|
|
11
10
|
var _WebComponent = require("../../webComponent/WebComponent");
|
|
@@ -13,6 +12,7 @@ var _UNNextRepaymentComponent = require("./UNNextRepaymentComponent.utils");
|
|
|
13
12
|
var _onLoadMessage = require("../../messages/webMessages/onLoadMessage");
|
|
14
13
|
var _webComponent = require("../../types/internal/webComponent.types");
|
|
15
14
|
var _helpers = require("../../helpers/store/helpers");
|
|
15
|
+
var _UNBaseView = require("../../nativeComponents/UNBaseView");
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
const UNNextRepaymentComponent = props => {
|
|
@@ -42,11 +42,12 @@ const UNNextRepaymentComponent = props => {
|
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_UNBaseView.UNBaseView, {
|
|
46
46
|
style: {
|
|
47
47
|
height,
|
|
48
48
|
width: '100%'
|
|
49
|
-
}
|
|
49
|
+
},
|
|
50
|
+
onLoadError: handleUnitOnLoad
|
|
50
51
|
}, /*#__PURE__*/_react.default.createElement(_WebComponent.WebComponent, {
|
|
51
52
|
type: _webComponent.WebComponentType.nextRepayment,
|
|
52
53
|
presentationMode: _webComponent.PresentationMode.Default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_pageMessage","_unitMessages","_WebComponent","_UNNextRepaymentComponent","_onLoadMessage","_webComponent","_helpers","_UNBaseView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UNNextRepaymentComponent","props","height","setHeight","useState","handleUnitOnLoad","response","onLoad","RESPONSE_KEYS","errors","repayment","console","error","handleMessage","message","type","UnitMessage","UNIT_ON_LOAD","details","PageMessage","PAGE_HEIGHT","createElement","UNBaseView","style","width","onLoadError","WebComponent","WebComponentType","nextRepayment","presentationMode","PresentationMode","Default","params","getNextRepaymentParams","theme","language","onMessage","isScrollable","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNNextRepaymentCom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AoC,aAAA,CAAChD,aAAA,CAAAqD,YAAY;IACXX,IAAI,EAAEY,8BAAgB,CAACC,aAAc;IACrCC,gBAAgB,EAAEC,8BAAgB,CAACC,OAAQ;IAC3CC,MAAM,EAAE,IAAAC,gDAAsB,EAAChC,KAAK,CAAE;IACtCiC,KAAK,EAAEjC,KAAK,CAACiC,KAAM;IACnBC,QAAQ,EAAElC,KAAK,CAACkC,QAAS;IACzBC,SAAS,EAAEtB,OAAO,IAAID,aAAa,CAACC,OAAO,CAAE;IAC7CuB,YAAY,EAAE;EAAM,CACrB,CACS,CAAC;AAEjB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtD,OAAA,GAEa,IAAAuD,uBAAc,EAAgCxC,wBAAwB,CAAC"}
|
|
@@ -18,6 +18,7 @@ var _useListenerToEvent = require("../../hooks/useListenerToEvent");
|
|
|
18
18
|
var _reactNativePlaidLinkSdk = require("react-native-plaid-link-sdk");
|
|
19
19
|
var _plaidMessages = require("../../messages/webMessages/plaidMessages");
|
|
20
20
|
var _payeeManagementMessage = require("../../messages/webMessages/payeeManagementMessage");
|
|
21
|
+
var _UNBaseView = require("../../nativeComponents/UNBaseView");
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
24
|
const UNPayeeManagementComponent = props => {
|
|
@@ -116,7 +117,11 @@ const UNPayeeManagementComponent = props => {
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
120
|
+
return /*#__PURE__*/_react.default.createElement(_UNBaseView.UNBaseView, {
|
|
121
|
+
style: {
|
|
122
|
+
height: '100%'
|
|
123
|
+
}
|
|
124
|
+
}, /*#__PURE__*/_react.default.createElement(_WebComponent.WebComponent, {
|
|
120
125
|
ref: webRef,
|
|
121
126
|
type: _webComponent.WebComponentType.payeeManagement,
|
|
122
127
|
presentationMode: _webComponent.PresentationMode.Inherit,
|
|
@@ -126,7 +131,7 @@ const UNPayeeManagementComponent = props => {
|
|
|
126
131
|
nestedScrollEnabled: true,
|
|
127
132
|
language: props.language,
|
|
128
133
|
onMessage: message => handleMessage(message)
|
|
129
|
-
});
|
|
134
|
+
}));
|
|
130
135
|
};
|
|
131
136
|
var _default = exports.default = (0, _helpers.withReduxStore)(UNPayeeManagementComponent);
|
|
132
137
|
//# sourceMappingURL=UNPayeeManagementComponent.js.map
|
package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_unitMessages","_WebComponent","_webComponent","_helpers","_UNPayeeManagementComponent","_bottomSheet","_reactRedux","_SharedEventsSlice","_bottomSheetMessage","_useListenerToEvent","_reactNativePlaidLinkSdk","_plaidMessages","_payeeManagementMessage","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UNPayeeManagementComponent","props","dispatch","useDispatch","webRef","useRef","requestRefresh","data","injectRefreshEventIfNeeded","current","openPlaid","openPlaidData","injectUnitOpenPlaid","linkToken","plaidLinkToken","attributes","openLink","tokenConfig","noLoadingState","token","onSuccess","success","injectUnitPlaidResponse","onExit","exit","injectUnitPlaidExit","error","catch","console","reportCounterpartyDeleted","counterparty","onCounterpartyDeleted","useListenerToEvent","busEventKey","UnitMessage","UNIT_REQUEST_REFRESH","action","PlaidMessage","UNIT_OPEN_PLAID","PayeeManagementMessage","UNIT_COUNTERPARTY_DELETED","handleRequestRendering","requestRenderingEvent","nativeComponentName","slotData","componentName","type","BottomSheetRenderingType","Slot","setEvent","key","BottomSheetNativeMessage","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","WebComponent","ref","WebComponentType","payeeManagement","presentationMode","PresentationMode","Inherit","params","getPayeeParams","script","getPayeeManagementScript","theme","nestedScrollEnabled","language","onMessage","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAIA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,2BAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AACA,IAAAS,mBAAA,GAAAT,OAAA;AACA,IAAAU,mBAAA,GAAAV,OAAA;AACA,IAAAW,wBAAA,GAAAX,OAAA;AACA,IAAAY,cAAA,GAAAZ,OAAA;AACA,IAAAa,uBAAA,GAAAb,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_unitMessages","_WebComponent","_webComponent","_helpers","_UNPayeeManagementComponent","_bottomSheet","_reactRedux","_SharedEventsSlice","_bottomSheetMessage","_useListenerToEvent","_reactNativePlaidLinkSdk","_plaidMessages","_payeeManagementMessage","_UNBaseView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UNPayeeManagementComponent","props","dispatch","useDispatch","webRef","useRef","requestRefresh","data","injectRefreshEventIfNeeded","current","openPlaid","openPlaidData","injectUnitOpenPlaid","linkToken","plaidLinkToken","attributes","openLink","tokenConfig","noLoadingState","token","onSuccess","success","injectUnitPlaidResponse","onExit","exit","injectUnitPlaidExit","error","catch","console","reportCounterpartyDeleted","counterparty","onCounterpartyDeleted","useListenerToEvent","busEventKey","UnitMessage","UNIT_REQUEST_REFRESH","action","PlaidMessage","UNIT_OPEN_PLAID","PayeeManagementMessage","UNIT_COUNTERPARTY_DELETED","handleRequestRendering","requestRenderingEvent","nativeComponentName","slotData","componentName","type","BottomSheetRenderingType","Slot","setEvent","key","BottomSheetNativeMessage","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","UNBaseView","style","height","WebComponent","ref","WebComponentType","payeeManagement","presentationMode","PresentationMode","Inherit","params","getPayeeParams","script","getPayeeManagementScript","theme","nestedScrollEnabled","language","onMessage","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GA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B,EAAE,IAAK;IAC1BC,QAAQ,EAAEnF,KAAK,CAACmF,QAAS;IACzBC,SAAS,EAAE/B,OAAO,IAAID,aAAa,CAACC,OAAO;EAAE,CAC9C,CACS,CAAC;AAEjB,CAAC;AAAC,IAAAgC,QAAA,GAAAC,OAAA,CAAAtG,OAAA,GAEa,IAAAuG,uBAAc,EAAkCxF,0BAA0B,CAAC"}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
8
|
var _WebComponent = require("../../webComponent/WebComponent");
|
|
10
9
|
var _webComponent = require("../../types/internal/webComponent.types");
|
|
11
10
|
var _UNProgramDetailsComponent = require("./UNProgramDetailsComponent.utils");
|
|
@@ -13,6 +12,7 @@ var _helpers = require("../../helpers/store/helpers");
|
|
|
13
12
|
var _onLoadMessage = require("../../messages/webMessages/onLoadMessage");
|
|
14
13
|
var _unitMessages = require("../../messages/webMessages/unitMessages");
|
|
15
14
|
var _pageMessage = require("../../messages/webMessages/pageMessage");
|
|
15
|
+
var _UNBaseView = require("../../nativeComponents/UNBaseView");
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
const UNProgramDetailsComponent = props => {
|
|
@@ -43,11 +43,12 @@ const UNProgramDetailsComponent = props => {
|
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_UNBaseView.UNBaseView, {
|
|
47
47
|
style: {
|
|
48
48
|
height,
|
|
49
49
|
width: '100%'
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
|
+
onLoadError: handleUnitOnLoad
|
|
51
52
|
}, /*#__PURE__*/_react.default.createElement(_WebComponent.WebComponent, {
|
|
52
53
|
type: _webComponent.WebComponentType.programDetails,
|
|
53
54
|
presentationMode: _webComponent.PresentationMode.Default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_WebComponent","_webComponent","_UNProgramDetailsComponent","_helpers","_onLoadMessage","_unitMessages","_pageMessage","_UNBaseView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UNProgramDetailsComponent","props","height","setHeight","useState","handleUnitOnLoad","response","console","log","onLoad","RESPONSE_KEYS","errors","account","error","handleMessage","message","type","UnitMessage","UNIT_ON_LOAD","details","PageMessage","PAGE_HEIGHT","createElement","UNBaseView","style","width","onLoadError","WebComponent","WebComponentType","programDetails","presentationMode","PresentationMode","Default","params","getProgramDetailsParams","theme","language","onMessage","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAA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MAAM,EAAE,IAAAC,kDAAuB,EAACjC,KAAK,CAAE;IACvCkC,KAAK,EAAElC,KAAK,CAACkC,KAAM;IACnBC,QAAQ,EAAEnC,KAAK,CAACmC,QAAS;IACzBC,SAAS,EAAEvB;EAAc,CAC1B,CACS,CAAC;AAEjB,CAAC;AAAC,IAAAwB,QAAA,GAAAC,OAAA,CAAAtD,OAAA,GAEa,IAAAuD,uBAAc,EAAiCxC,yBAAyB,CAAC"}
|
|
@@ -20,6 +20,7 @@ var _pageMessage = require("../../messages/webMessages/pageMessage");
|
|
|
20
20
|
var _UNStoreManagerHelper = _interopRequireDefault(require("../../nativeModulesHelpers/UNStoreManagerHelper/UNStoreManagerHelper"));
|
|
21
21
|
var _activityMessage = require("../../messages/webMessages/activityMessage");
|
|
22
22
|
var _windowUnitStore = require("../../utils/windowUnitStore");
|
|
23
|
+
var _UNBaseView = require("../../nativeComponents/UNBaseView");
|
|
23
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
25
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -65,7 +66,7 @@ const UNWhiteLabelAppComponent = props => {
|
|
|
65
66
|
try {
|
|
66
67
|
const token = await _UNStoreManagerHelper.default.getValue(_unitStore.UserDataKeys.unitCustomerToken);
|
|
67
68
|
if (token) {
|
|
68
|
-
(0, _windowUnitStore.setItemInWindowUnitStore)(webRef.current, _unitStore.UserDataKeys.unitCustomerToken, token
|
|
69
|
+
(0, _windowUnitStore.setItemInWindowUnitStore)(webRef.current, _unitStore.UserDataKeys.unitCustomerToken, token);
|
|
69
70
|
}
|
|
70
71
|
} catch (e) {
|
|
71
72
|
console.log(e);
|
|
@@ -86,7 +87,11 @@ const UNWhiteLabelAppComponent = props => {
|
|
|
86
87
|
action: dispatchActivityFiltersChanged
|
|
87
88
|
});
|
|
88
89
|
const renderWebView = () => {
|
|
89
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement(_UNBaseView.UNBaseView, {
|
|
91
|
+
style: {
|
|
92
|
+
flex: 1
|
|
93
|
+
}
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_WebComponent.WebComponent, {
|
|
90
95
|
ref: webRef,
|
|
91
96
|
type: _webComponent.WebComponentType.whiteLabelApp,
|
|
92
97
|
presentationMode: _webComponent.PresentationMode.Inherit,
|
|
@@ -96,7 +101,7 @@ const UNWhiteLabelAppComponent = props => {
|
|
|
96
101
|
theme: props.theme,
|
|
97
102
|
language: props.language,
|
|
98
103
|
script: (0, _UNWhiteLabelAppComponent.getWhiteLabelAppScript)()
|
|
99
|
-
});
|
|
104
|
+
}));
|
|
100
105
|
};
|
|
101
106
|
return renderWebView();
|
|
102
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_WebComponent","_helpers","_webComponent","_unitMessages","_bottomSheet","_SharedEventsSlice","_bottomSheetMessage","_reactRedux","_useListenerToEvent","_UNWhiteLabelAppComponent","_unitStore","_pageMessage","_UNStoreManagerHelper","_interopRequireDefault","_activityMessage","_windowUnitStore","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UNWhiteLabelAppComponent","props","webRef","useRef","dispatch","useDispatch","handleWebViewMessage","message","type","UnitMessage","UNIT_REQUEST_RENDERING","slotData","componentName","WebComponentType","whiteLabelApp","requestRenderingEvent","details","data","BottomSheetRenderingType","Slot","setEvent","key","BottomSheetNativeMessage","REQUEST_RENDERING","UNIT_WHITE_LABEL_APP_ON_LOAD","attributes","customerToken","UNStoreManagerHelper","saveValue","UserDataKeys","unitCustomerToken","PageMessage","PAGE_LOADED","updateWindowUnitStore","token","getValue","setItemInWindowUnitStore","current","console","log","requestRefresh","injectRefreshEventIfNeeded","dispatchActivityFiltersChanged","query","injectJavaScript","useListenerToEvent","busEventKey","UNIT_REQUEST_REFRESH","action","ActivityMessage","UNIT_ACTIVITY_FILTERS_CHANGED","renderWebView","createElement","WebComponent","ref","presentationMode","PresentationMode","Inherit","params","getWhiteLabelAppParams","onMessage","isScrollable","theme","language","script","getWhiteLabelAppScript","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AAKA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,mBAAA,GAAAT,OAAA;AAEA,IAAAU,yBAAA,GAAAV,OAAA;AAKA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,qBAAA,GAAAC,sBAAA,CAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAf,OAAA;AACA,IAAAgB,gBAAA,GAAAhB,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_WebComponent","_helpers","_webComponent","_unitMessages","_bottomSheet","_SharedEventsSlice","_bottomSheetMessage","_reactRedux","_useListenerToEvent","_UNWhiteLabelAppComponent","_unitStore","_pageMessage","_UNStoreManagerHelper","_interopRequireDefault","_activityMessage","_windowUnitStore","_UNBaseView","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UNWhiteLabelAppComponent","props","webRef","useRef","dispatch","useDispatch","handleWebViewMessage","message","type","UnitMessage","UNIT_REQUEST_RENDERING","slotData","componentName","WebComponentType","whiteLabelApp","requestRenderingEvent","details","data","BottomSheetRenderingType","Slot","setEvent","key","BottomSheetNativeMessage","REQUEST_RENDERING","UNIT_WHITE_LABEL_APP_ON_LOAD","attributes","customerToken","UNStoreManagerHelper","saveValue","UserDataKeys","unitCustomerToken","PageMessage","PAGE_LOADED","updateWindowUnitStore","token","getValue","setItemInWindowUnitStore","current","console","log","requestRefresh","injectRefreshEventIfNeeded","dispatchActivityFiltersChanged","query","injectJavaScript","useListenerToEvent","busEventKey","UNIT_REQUEST_REFRESH","action","ActivityMessage","UNIT_ACTIVITY_FILTERS_CHANGED","renderWebView","createElement","UNBaseView","style","flex","WebComponent","ref","presentationMode","PresentationMode","Inherit","params","getWhiteLabelAppParams","onMessage","isScrollable","theme","language","script","getWhiteLabelAppScript","_default","exports","withReduxStore"],"sourceRoot":"../../../../src","sources":["components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AAKA,IAAAM,kBAAA,GA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