react-native-unit-components 1.9.1 → 1.11.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/build.gradle +36 -88
- package/android/gradle.properties +2 -2
- package/android/src/main/AndroidManifestNew.xml +14 -0
- package/android/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +2 -2
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsEvent.kt +3 -3
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +9 -12
- package/android/src/main/java/com/unitreactnativecomponents/appInfo/UNAppInfoModule.kt +59 -0
- package/android/src/main/java/com/unitreactnativecomponents/extensions/ContextExtensions.kt +35 -0
- package/android/src/main/java/com/unitreactnativecomponents/visapresentation/UNGooglePayView.kt +147 -152
- package/ios/Extensions/Bundle+Extensions.swift +23 -0
- package/ios/UNAppInfo/IOSAppInfo.swift +47 -0
- package/ios/UNAppInfo/UNAppInfoExportModule.m +5 -2
- package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +34 -0
- package/lib/commonjs/assets/images/index.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +15 -6
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +13 -2
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/index.js +2 -2
- package/lib/commonjs/components/UNACHCreditComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +15 -6
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +12 -2
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/index.js +2 -2
- package/lib/commonjs/components/UNACHDebitComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +41 -21
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js +9 -8
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/index.js +2 -2
- package/lib/commonjs/components/UNAccountComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +28 -15
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js +8 -2
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/index.js +8 -2
- package/lib/commonjs/components/UNActivityComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +13 -4
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js +11 -4
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/index.js +2 -2
- package/lib/commonjs/components/UNBookPaymentComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +13 -3
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js +156 -246
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +13 -16
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +50 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js +17 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +166 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js +17 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/index.js +15 -4
- package/lib/commonjs/components/UNBottomSheetComponent/components/index.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +14 -12
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js +7 -5
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/index.js +2 -2
- package/lib/commonjs/components/UNCardComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +14 -4
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js +7 -1
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/index.js +2 -2
- package/lib/commonjs/components/UNCheckDepositComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +85 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +42 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/index.js +21 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +61 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +15 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/index.js +21 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +61 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js +15 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/index.js +21 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/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/custom.d.js.map +1 -1
- package/lib/commonjs/flows/UNFlows.js +1 -1
- package/lib/commonjs/flows/UNFlows.js.map +1 -1
- package/lib/commonjs/flows/card/UNCardFlows.js +27 -23
- package/lib/commonjs/flows/card/UNCardFlows.js.map +1 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +26 -29
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.styles.js +0 -2
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.styles.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/helpers.js +34 -0
- package/lib/commonjs/helpers/pushProvisioningService/helpers.js.map +1 -0
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js +31 -2
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/startProvisioning.js +3 -3
- package/lib/commonjs/helpers/pushProvisioningService/startProvisioning.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/types.js +40 -0
- package/lib/commonjs/helpers/pushProvisioningService/types.js.map +1 -0
- package/lib/commonjs/helpers/store/helpers.js.map +1 -1
- package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
- package/lib/commonjs/hooks/useListenerToEvent.js +26 -0
- package/lib/commonjs/hooks/useListenerToEvent.js.map +1 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/bottomSheetMessage.js +7 -9
- package/lib/commonjs/messages/nativeMessages/bottomSheetMessage.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/cardMessage.js +3 -4
- package/lib/commonjs/messages/nativeMessages/cardMessage.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/index.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/sdkMessage.js +3 -4
- package/lib/commonjs/messages/nativeMessages/sdkMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/accountMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/accountMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/achCreditMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/activityMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/activityMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/bookPaymentMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/cardMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/cardMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/checkMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/checkMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/index.js.map +1 -1
- package/lib/commonjs/messages/webMessages/multipleCardsMessage.js +11 -0
- package/lib/commonjs/messages/webMessages/multipleCardsMessage.js.map +1 -0
- package/lib/commonjs/messages/webMessages/onLoadMessage.js +6 -5
- package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/pageMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/pageMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/paymentsMessage.js +5 -4
- package/lib/commonjs/messages/webMessages/paymentsMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/unitMessages.js +9 -6
- package/lib/commonjs/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.js.map +1 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +79 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js +20 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js.map +1 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js +14 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js.map +1 -0
- package/lib/commonjs/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.js +1 -2
- package/lib/commonjs/nativeComponents/UNAddToWallet/UnitAddToWalletButton.js.map +1 -0
- package/lib/commonjs/networking/common/UNNetworkConstants.js +2 -4
- package/lib/commonjs/networking/common/UNNetworkConstants.js.map +1 -1
- package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js +27 -3
- package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyHtml.js +1 -2
- package/lib/commonjs/scripts/html/bodyHtml.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyScript.js +46 -32
- package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
- package/lib/commonjs/scripts/html/fontFaces.js +2 -3
- package/lib/commonjs/scripts/html/fontFaces.js.map +1 -1
- package/lib/commonjs/slices/BottomSheetSlice.js +74 -0
- package/lib/commonjs/slices/BottomSheetSlice.js.map +1 -0
- package/lib/commonjs/slices/ConfigurationSlice.js +35 -0
- package/lib/commonjs/slices/ConfigurationSlice.js.map +1 -0
- package/lib/commonjs/slices/SharedEventsSlice.js +29 -0
- package/lib/commonjs/slices/SharedEventsSlice.js.map +1 -0
- package/lib/commonjs/slices/pushProvisioningSlice.js +1 -2
- package/lib/commonjs/slices/pushProvisioningSlice.js.map +1 -1
- package/lib/commonjs/store/index.js.map +1 -1
- package/lib/commonjs/store/store.js +8 -3
- package/lib/commonjs/store/store.js.map +1 -1
- package/lib/commonjs/styles/fonts.js.map +1 -1
- package/lib/commonjs/styles/variables.js +5 -3
- package/lib/commonjs/styles/variables.js.map +1 -1
- package/lib/commonjs/types/internal/bottomSheet.types.js +22 -7
- package/lib/commonjs/types/internal/bottomSheet.types.js.map +1 -1
- package/lib/commonjs/types/internal/errorHelpers.js +20 -0
- package/lib/commonjs/types/internal/errorHelpers.js.map +1 -0
- package/lib/commonjs/types/internal/webComponent.types.js +9 -8
- package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
- package/lib/commonjs/types/shared/account.types.js +19 -16
- package/lib/commonjs/types/shared/account.types.js.map +1 -1
- package/lib/commonjs/types/shared/achCredit.types.js.map +1 -1
- package/lib/commonjs/types/shared/activity.types.js +6 -0
- package/lib/commonjs/types/shared/activity.types.js.map +1 -1
- package/lib/commonjs/types/shared/authorization.types.js.map +1 -1
- package/lib/commonjs/types/shared/bookPayment.types.js.map +1 -1
- package/lib/commonjs/types/shared/card.types.js +13 -5
- package/lib/commonjs/types/shared/card.types.js.map +1 -1
- package/lib/commonjs/types/shared/checkDeposit.types.js +3 -4
- package/lib/commonjs/types/shared/checkDeposit.types.js.map +1 -1
- package/lib/commonjs/types/shared/error.types.js +28 -0
- package/lib/commonjs/types/shared/error.types.js.map +1 -0
- package/lib/commonjs/types/shared/fonts.types.js +3 -4
- package/lib/commonjs/types/shared/fonts.types.js.map +1 -1
- package/lib/commonjs/types/shared/index.js +22 -0
- package/lib/commonjs/types/shared/index.js.map +1 -1
- package/lib/commonjs/types/shared/multipleCards.types.js +12 -0
- package/lib/commonjs/types/shared/multipleCards.types.js.map +1 -0
- package/lib/commonjs/types/shared/onLoadResponse.types.js +4 -0
- package/lib/commonjs/types/shared/onLoadResponse.types.js.map +1 -1
- package/lib/commonjs/types/shared/payments.types.js +9 -5
- package/lib/commonjs/types/shared/payments.types.js.map +1 -1
- package/lib/commonjs/types/shared/repayment.types.js +2 -0
- package/lib/commonjs/types/shared/repayment.types.js.map +1 -0
- package/lib/commonjs/types/shared/transactions.types.js +6 -8
- package/lib/commonjs/types/shared/transactions.types.js.map +1 -1
- package/lib/commonjs/types/shared/types.js.map +1 -1
- package/lib/commonjs/types/shared/versioning.types.js +4 -4
- package/lib/commonjs/types/shared/versioning.types.js.map +1 -1
- package/lib/commonjs/types/shared/wallet.types.js +9 -12
- package/lib/commonjs/types/shared/wallet.types.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdk.api.js +6 -13
- package/lib/commonjs/unitSdkManager/UnitSdk.api.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +2 -3
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js +56 -75
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
- package/lib/commonjs/unitSdkManager/unitUiManager/unitUiManager.js +4 -7
- package/lib/commonjs/unitSdkManager/unitUiManager/unitUiManager.js.map +1 -1
- package/lib/commonjs/utils/AppInfo.js +49 -0
- package/lib/commonjs/utils/AppInfo.js.map +1 -0
- package/lib/commonjs/utils/SDKInfo.js +13 -0
- package/lib/commonjs/utils/SDKInfo.js.map +1 -0
- package/lib/commonjs/utils/webVersioningStrategy.utils.js +7 -0
- package/lib/commonjs/utils/webVersioningStrategy.utils.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.js +40 -36
- package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js +19 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/commonjs/webComponent/html.js +2 -4
- package/lib/commonjs/webComponent/html.js.map +1 -1
- package/lib/module/assets/images/index.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +12 -2
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +13 -2
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/index.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +12 -2
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +12 -2
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/index.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js +40 -17
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js +10 -8
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/module/components/UNAccountComponent/index.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js +29 -14
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js +8 -2
- package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
- package/lib/module/components/UNActivityComponent/index.js +1 -1
- package/lib/module/components/UNActivityComponent/index.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +10 -0
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js +11 -4
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/index.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +12 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js +151 -240
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +11 -14
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +42 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js +2 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +158 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js +2 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/index.js +2 -1
- package/lib/module/components/UNBottomSheetComponent/components/index.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/index.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.js +12 -8
- package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js +7 -5
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/module/components/UNCardComponent/index.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +11 -0
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js +7 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/index.js.map +1 -1
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +77 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +34 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -0
- package/lib/module/components/UNMultipleCardsComponent/index.js +2 -0
- package/lib/module/components/UNMultipleCardsComponent/index.js.map +1 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +53 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +8 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -0
- package/lib/module/components/UNNextRepaymentComponent/index.js +2 -0
- package/lib/module/components/UNNextRepaymentComponent/index.js.map +1 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +53 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js +8 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js.map +1 -0
- package/lib/module/components/UNProgramDetailsComponent/index.js +2 -0
- package/lib/module/components/UNProgramDetailsComponent/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/custom.d.js.map +1 -1
- package/lib/module/flows/UNFlows.js +1 -1
- package/lib/module/flows/UNFlows.js.map +1 -1
- package/lib/module/flows/card/UNCardFlows.js +28 -23
- package/lib/module/flows/card/UNCardFlows.js.map +1 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.js +25 -27
- package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.styles.js +1 -3
- package/lib/module/helpers/BottomSheet/BottomSheet.styles.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/helpers.js +24 -0
- package/lib/module/helpers/pushProvisioningService/helpers.js.map +1 -0
- package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js +34 -5
- package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/startProvisioning.js +3 -3
- package/lib/module/helpers/pushProvisioningService/startProvisioning.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/types.js +34 -0
- package/lib/module/helpers/pushProvisioningService/types.js.map +1 -0
- package/lib/module/helpers/store/helpers.js.map +1 -1
- package/lib/module/hooks/useAppStateListener.js.map +1 -1
- package/lib/module/hooks/useListenerToEvent.js +19 -0
- package/lib/module/hooks/useListenerToEvent.js.map +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/messages/nativeMessages/bottomSheetMessage.js +7 -7
- package/lib/module/messages/nativeMessages/bottomSheetMessage.js.map +1 -1
- package/lib/module/messages/nativeMessages/cardMessage.js +3 -3
- package/lib/module/messages/nativeMessages/cardMessage.js.map +1 -1
- package/lib/module/messages/nativeMessages/index.js.map +1 -1
- package/lib/module/messages/nativeMessages/sdkMessage.js +3 -3
- package/lib/module/messages/nativeMessages/sdkMessage.js.map +1 -1
- package/lib/module/messages/webMessages/accountMessage.js +3 -3
- package/lib/module/messages/webMessages/accountMessage.js.map +1 -1
- package/lib/module/messages/webMessages/achCreditMessage.js.map +1 -1
- package/lib/module/messages/webMessages/activityMessage.js +3 -3
- package/lib/module/messages/webMessages/activityMessage.js.map +1 -1
- package/lib/module/messages/webMessages/bookPaymentMessage.js.map +1 -1
- package/lib/module/messages/webMessages/cardMessage.js +3 -3
- package/lib/module/messages/webMessages/cardMessage.js.map +1 -1
- package/lib/module/messages/webMessages/checkMessage.js +3 -3
- package/lib/module/messages/webMessages/checkMessage.js.map +1 -1
- package/lib/module/messages/webMessages/index.js.map +1 -1
- package/lib/module/messages/webMessages/multipleCardsMessage.js +5 -0
- package/lib/module/messages/webMessages/multipleCardsMessage.js.map +1 -0
- package/lib/module/messages/webMessages/onLoadMessage.js +6 -4
- package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/module/messages/webMessages/pageMessage.js +3 -3
- package/lib/module/messages/webMessages/pageMessage.js.map +1 -1
- package/lib/module/messages/webMessages/paymentsMessage.js +5 -3
- package/lib/module/messages/webMessages/paymentsMessage.js.map +1 -1
- package/lib/module/messages/webMessages/unitMessages.js +8 -4
- package/lib/module/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +70 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js +12 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js +2 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UnitAddToWalletButton.js.map +1 -0
- package/lib/module/networking/common/UNNetworkConstants.js.map +1 -1
- package/lib/module/networking/requests/UNWalletPayloadRequest.js +27 -3
- package/lib/module/networking/requests/UNWalletPayloadRequest.js.map +1 -1
- package/lib/module/scripts/html/bodyHtml.js.map +1 -1
- package/lib/module/scripts/html/bodyScript.js +34 -8
- package/lib/module/scripts/html/bodyScript.js.map +1 -1
- package/lib/module/scripts/html/fontFaces.js +2 -3
- package/lib/module/scripts/html/fontFaces.js.map +1 -1
- package/lib/module/slices/BottomSheetSlice.js +59 -0
- package/lib/module/slices/BottomSheetSlice.js.map +1 -0
- package/lib/module/slices/ConfigurationSlice.js +25 -0
- package/lib/module/slices/ConfigurationSlice.js.map +1 -0
- package/lib/module/slices/SharedEventsSlice.js +22 -0
- package/lib/module/slices/SharedEventsSlice.js.map +1 -0
- package/lib/module/slices/pushProvisioningSlice.js.map +1 -1
- package/lib/module/store/index.js.map +1 -1
- package/lib/module/store/store.js +7 -1
- package/lib/module/store/store.js.map +1 -1
- package/lib/module/styles/fonts.js.map +1 -1
- package/lib/module/styles/variables.js +4 -1
- package/lib/module/styles/variables.js.map +1 -1
- package/lib/module/types/internal/bottomSheet.types.js +21 -5
- package/lib/module/types/internal/bottomSheet.types.js.map +1 -1
- package/lib/module/types/internal/errorHelpers.js +12 -0
- package/lib/module/types/internal/errorHelpers.js.map +1 -0
- package/lib/module/types/internal/webComponent.types.js +9 -6
- package/lib/module/types/internal/webComponent.types.js.map +1 -1
- package/lib/module/types/shared/account.types.js +18 -12
- package/lib/module/types/shared/account.types.js.map +1 -1
- package/lib/module/types/shared/achCredit.types.js.map +1 -1
- package/lib/module/types/shared/activity.types.js +5 -1
- package/lib/module/types/shared/activity.types.js.map +1 -1
- package/lib/module/types/shared/authorization.types.js.map +1 -1
- package/lib/module/types/shared/bookPayment.types.js.map +1 -1
- package/lib/module/types/shared/card.types.js +12 -3
- package/lib/module/types/shared/card.types.js.map +1 -1
- package/lib/module/types/shared/checkDeposit.types.js +3 -3
- package/lib/module/types/shared/checkDeposit.types.js.map +1 -1
- package/lib/module/types/shared/error.types.js +22 -0
- package/lib/module/types/shared/error.types.js.map +1 -0
- package/lib/module/types/shared/fonts.types.js +3 -3
- package/lib/module/types/shared/fonts.types.js.map +1 -1
- package/lib/module/types/shared/index.js +2 -0
- package/lib/module/types/shared/index.js.map +1 -1
- package/lib/module/types/shared/multipleCards.types.js +6 -0
- package/lib/module/types/shared/multipleCards.types.js.map +1 -0
- package/lib/module/types/shared/onLoadResponse.types.js +1 -1
- package/lib/module/types/shared/onLoadResponse.types.js.map +1 -1
- package/lib/module/types/shared/payments.types.js +8 -3
- package/lib/module/types/shared/payments.types.js.map +1 -1
- package/lib/module/types/shared/repayment.types.js +2 -0
- package/lib/module/types/shared/repayment.types.js.map +1 -0
- package/lib/module/types/shared/transactions.types.js +6 -6
- package/lib/module/types/shared/transactions.types.js.map +1 -1
- package/lib/module/types/shared/types.js.map +1 -1
- package/lib/module/types/shared/versioning.types.js +4 -3
- package/lib/module/types/shared/versioning.types.js.map +1 -1
- package/lib/module/types/shared/wallet.types.js +9 -9
- package/lib/module/types/shared/wallet.types.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdk.api.js +5 -10
- package/lib/module/unitSdkManager/UnitSdk.api.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdk.constants.js +1 -1
- package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.js +56 -73
- package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
- package/lib/module/unitSdkManager/unitUiManager/unitUiManager.js +4 -7
- package/lib/module/unitSdkManager/unitUiManager/unitUiManager.js.map +1 -1
- package/lib/module/utils/AppInfo.js +39 -0
- package/lib/module/utils/AppInfo.js.map +1 -0
- package/lib/module/utils/SDKInfo.js +5 -0
- package/lib/module/utils/SDKInfo.js.map +1 -0
- package/lib/module/utils/webVersioningStrategy.utils.js +7 -0
- package/lib/module/utils/webVersioningStrategy.utils.js.map +1 -1
- package/lib/module/webComponent/WebComponent.js +40 -34
- package/lib/module/webComponent/WebComponent.js.map +1 -1
- package/lib/module/webComponent/WebComponent.utils.js +15 -0
- package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/module/webComponent/html.js.map +1 -1
- package/lib/typescript/{assets → src/assets}/images/index.d.ts +1 -0
- package/lib/typescript/src/assets/images/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHCreditComponent/UNACHCreditComponent.d.ts +10 -1
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHCreditComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNACHCreditComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHDebitComponent/UNACHDebitComponent.d.ts +10 -1
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHDebitComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNACHDebitComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNAccountComponent/UNAccountComponent.d.ts +6 -0
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNAccountComponent/UNAccountComponent.utils.d.ts +2 -1
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNAccountComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNAccountComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts +23 -0
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNActivityComponent/UNActivityComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNActivityComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNActivityComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +10 -4
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBookPaymentComponent/UNBookPaymentComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBookPaymentComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNBookPaymentComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts +8 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +4 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBottomSheetComponent/UNBottomSheetComponent.styles.d.ts +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts +2 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts +8 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts +11 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/index.d.ts +3 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBottomSheetComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCardComponent/UNCardComponent.d.ts +3 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCardComponent/UNCardComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCardComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNCardComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCheckDepositComponent/UNCheckDepositComponent.d.ts +7 -1
- package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCheckDepositComponent/UNCheckDepositComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCheckDepositComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNCheckDepositComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts +18 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts +4 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts +14 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.d.ts +3 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts +13 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.d.ts +3 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/index.d.ts +4 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/{flows → src/flows}/UNFlows.d.ts +1 -0
- package/lib/typescript/src/flows/UNFlows.d.ts.map +1 -0
- package/lib/typescript/{flows → src/flows}/card/UNCardFlows.d.ts +1 -0
- package/lib/typescript/src/flows/card/UNCardFlows.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/BottomSheet/BottomSheet.d.ts +5 -3
- package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/BottomSheet/BottomSheet.styles.d.ts +1 -1
- package/lib/typescript/src/helpers/BottomSheet/BottomSheet.styles.d.ts.map +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/helpers.d.ts +5 -0
- package/lib/typescript/src/helpers/pushProvisioningService/helpers.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/hooks/useCardWallet.d.ts +2 -1
- package/lib/typescript/src/helpers/pushProvisioningService/hooks/useCardWallet.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/hooks/useLaunchInitialize.d.ts +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/hooks/useLaunchInitialize.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/startProvisioning.d.ts +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/startProvisioning.d.ts.map +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/types.d.ts +50 -0
- package/lib/typescript/src/helpers/pushProvisioningService/types.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/store/helpers.d.ts +1 -0
- package/lib/typescript/src/helpers/store/helpers.d.ts.map +1 -0
- package/lib/typescript/{hooks → src/hooks}/useAppStateListener.d.ts +1 -0
- package/lib/typescript/src/hooks/useAppStateListener.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useListenerToEvent.d.ts +10 -0
- package/lib/typescript/src/hooks/useListenerToEvent.d.ts.map +1 -0
- package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/messages/nativeMessages/bottomSheetMessage.d.ts +10 -0
- package/lib/typescript/src/messages/nativeMessages/bottomSheetMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/nativeMessages/cardMessage.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/cardMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/nativeMessages/index.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/index.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/nativeMessages/sdkMessage.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/sdkMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/accountMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/accountMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/achCreditMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/achCreditMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/activityMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/activityMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/bookPaymentMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/bookPaymentMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/cardMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/cardMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/checkMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/checkMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/index.d.ts +4 -2
- package/lib/typescript/src/messages/webMessages/index.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts +7 -0
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/onLoadMessage.d.ts +10 -4
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/pageMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/pageMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/paymentsMessage.d.ts +6 -0
- package/lib/typescript/src/messages/webMessages/paymentsMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/unitMessages.d.ts +11 -5
- package/lib/typescript/src/messages/webMessages/unitMessages.d.ts.map +1 -0
- package/lib/typescript/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → src/nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.d.ts +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts +8 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.d.ts +5 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.d.ts +2 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.d.ts.map +1 -0
- package/lib/typescript/{nativeComponent → src/nativeComponents/UNAddToWallet}/UnitAddToWalletButton.d.ts +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UnitAddToWalletButton.d.ts.map +1 -0
- package/lib/typescript/{networking → src/networking}/common/UNNetworkConstants.d.ts +1 -0
- package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -0
- package/lib/typescript/{networking → src/networking}/requests/UNWalletPayloadRequest.d.ts +2 -1
- package/lib/typescript/src/networking/requests/UNWalletPayloadRequest.d.ts.map +1 -0
- package/lib/typescript/{scripts → src/scripts}/html/bodyHtml.d.ts +1 -0
- package/lib/typescript/src/scripts/html/bodyHtml.d.ts.map +1 -0
- package/lib/typescript/{scripts → src/scripts}/html/bodyScript.d.ts +5 -1
- package/lib/typescript/src/scripts/html/bodyScript.d.ts.map +1 -0
- package/lib/typescript/{scripts → src/scripts}/html/fontFaces.d.ts +1 -0
- package/lib/typescript/src/scripts/html/fontFaces.d.ts.map +1 -0
- package/lib/typescript/src/slices/BottomSheetSlice.d.ts +16 -0
- package/lib/typescript/src/slices/BottomSheetSlice.d.ts.map +1 -0
- package/lib/typescript/src/slices/ConfigurationSlice.d.ts +11 -0
- package/lib/typescript/src/slices/ConfigurationSlice.d.ts.map +1 -0
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts +53 -0
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts.map +1 -0
- package/lib/typescript/{slices → src/slices}/pushProvisioningSlice.d.ts +1 -0
- package/lib/typescript/src/slices/pushProvisioningSlice.d.ts.map +1 -0
- package/lib/typescript/src/store/index.d.ts +2 -0
- package/lib/typescript/src/store/index.d.ts.map +1 -0
- package/lib/typescript/src/store/store.d.ts +73 -0
- package/lib/typescript/src/store/store.d.ts.map +1 -0
- package/lib/typescript/{styles → src/styles}/fonts.d.ts +1 -0
- package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/{styles → src/styles}/variables.d.ts +4 -0
- package/lib/typescript/src/styles/variables.d.ts.map +1 -0
- package/lib/typescript/src/types/internal/bottomSheet.types.d.ts +57 -0
- package/lib/typescript/src/types/internal/bottomSheet.types.d.ts.map +1 -0
- package/lib/typescript/src/types/internal/errorHelpers.d.ts +5 -0
- package/lib/typescript/src/types/internal/errorHelpers.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/internal/webComponent.types.d.ts +5 -1
- package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/account.types.d.ts +6 -0
- package/lib/typescript/src/types/shared/account.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/achCredit.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/activity.types.d.ts +12 -0
- package/lib/typescript/src/types/shared/activity.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/authorization.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/authorization.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/bookPayment.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/bookPayment.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/card.types.d.ts +9 -0
- package/lib/typescript/src/types/shared/card.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/checkDeposit.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/checkDeposit.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/error.types.d.ts +37 -0
- package/lib/typescript/src/types/shared/error.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/fonts.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/fonts.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/index.d.ts +3 -0
- package/lib/typescript/src/types/shared/index.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/multipleCards.types.d.ts +7 -0
- package/lib/typescript/src/types/shared/multipleCards.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts +6 -0
- package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/payments.types.d.ts +5 -0
- package/lib/typescript/src/types/shared/payments.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/repayment.types.d.ts +12 -0
- package/lib/typescript/src/types/shared/repayment.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/transactions.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/transactions.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/types.d.ts +1 -0
- package/lib/typescript/src/types/shared/types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/versioning.types.d.ts +6 -1
- package/lib/typescript/src/types/shared/versioning.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/wallet.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/wallet.types.d.ts.map +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.api.d.ts +2 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.api.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdk.constants.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdkManager.d.ts +5 -8
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdkManager.utils.internal.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.utils.internal.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/unitUiManager/unitUiManager.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/unitUiManager/unitUiManager.d.ts.map +1 -0
- package/lib/typescript/src/utils/AppInfo.d.ts +5 -0
- package/lib/typescript/src/utils/AppInfo.d.ts.map +1 -0
- package/lib/typescript/src/utils/SDKInfo.d.ts +2 -0
- package/lib/typescript/src/utils/SDKInfo.d.ts.map +1 -0
- package/lib/typescript/{utils → src/utils}/webVersioningStrategy.utils.d.ts +1 -0
- package/lib/typescript/src/utils/webVersioningStrategy.utils.d.ts.map +1 -0
- package/lib/typescript/{webComponent → src/webComponent}/WebComponent.d.ts +1 -0
- package/lib/typescript/src/webComponent/WebComponent.d.ts.map +1 -0
- package/lib/typescript/{webComponent → src/webComponent}/WebComponent.utils.d.ts +4 -0
- package/lib/typescript/src/webComponent/WebComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{webComponent → src/webComponent}/html.d.ts +1 -0
- package/lib/typescript/src/webComponent/html.d.ts.map +1 -0
- package/package.json +26 -38
- package/react-native-unit-components.podspec +9 -2
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +28 -6
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.ts +13 -2
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +28 -6
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.ts +12 -2
- package/src/components/UNAccountComponent/UNAccountComponent.tsx +62 -23
- package/src/components/UNAccountComponent/UNAccountComponent.utils.ts +9 -6
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +60 -22
- package/src/components/UNActivityComponent/UNActivityComponent.utils.ts +6 -1
- package/src/components/UNActivityComponent/index.ts +1 -1
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +23 -5
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.ts +11 -4
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.ts +20 -1
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +184 -265
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.ts +5 -6
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.tsx +60 -0
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.ts +1 -0
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.tsx +181 -0
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.ts +1 -0
- package/src/components/UNBottomSheetComponent/components/index.ts +2 -1
- package/src/components/UNCardComponent/UNCardComponent.tsx +14 -11
- package/src/components/UNCardComponent/UNCardComponent.utils.ts +2 -0
- package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +16 -3
- package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.ts +8 -2
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +120 -0
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.ts +37 -0
- package/src/components/UNMultipleCardsComponent/index.ts +3 -0
- package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +80 -0
- package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.ts +10 -0
- package/src/components/UNNextRepaymentComponent/index.ts +3 -0
- package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +77 -0
- package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.ts +9 -0
- package/src/components/UNProgramDetailsComponent/index.ts +3 -0
- package/src/components/index.ts +3 -0
- package/src/flows/UNFlows.ts +1 -1
- package/src/flows/card/UNCardFlows.ts +19 -14
- package/src/helpers/BottomSheet/BottomSheet.styles.ts +7 -8
- package/src/helpers/BottomSheet/BottomSheet.tsx +44 -39
- package/src/helpers/pushProvisioningService/helpers.ts +31 -0
- package/src/helpers/pushProvisioningService/hooks/useCardWallet.ts +38 -8
- package/src/helpers/pushProvisioningService/startProvisioning.ts +3 -5
- package/src/helpers/pushProvisioningService/types.ts +52 -0
- package/src/helpers/store/helpers.tsx +1 -1
- package/src/hooks/useListenerToEvent.ts +32 -0
- package/src/messages/nativeMessages/bottomSheetMessage.ts +7 -7
- package/src/messages/webMessages/index.ts +3 -0
- package/src/messages/webMessages/multipleCardsMessage.ts +9 -0
- package/src/messages/webMessages/onLoadMessage.ts +16 -4
- package/src/messages/webMessages/paymentsMessage.ts +3 -1
- package/src/messages/webMessages/unitMessages.ts +19 -13
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +93 -0
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.ts +15 -0
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.ts +1 -0
- package/src/networking/requests/UNWalletPayloadRequest.ts +25 -4
- package/src/scripts/html/bodyScript.ts +36 -8
- package/src/slices/BottomSheetSlice.ts +72 -0
- package/src/slices/ConfigurationSlice.ts +31 -0
- package/src/slices/SharedEventsSlice.ts +88 -0
- package/src/store/store.ts +8 -2
- package/src/styles/variables.ts +5 -2
- package/src/types/internal/bottomSheet.types.ts +51 -7
- package/src/types/internal/errorHelpers.ts +22 -0
- package/src/types/internal/webComponent.types.ts +3 -1
- package/src/types/shared/account.types.ts +6 -0
- package/src/types/shared/activity.types.ts +7 -2
- package/src/types/shared/card.types.ts +10 -1
- package/src/types/shared/error.types.ts +38 -0
- package/src/types/shared/index.ts +2 -0
- package/src/types/shared/multipleCards.types.ts +8 -0
- package/src/types/shared/onLoadResponse.types.ts +2 -12
- package/src/types/shared/payments.types.ts +10 -5
- package/src/types/shared/repayment.types.ts +12 -0
- package/src/types/shared/versioning.types.ts +7 -1
- package/src/unitSdkManager/UnitSdk.api.ts +5 -8
- package/src/unitSdkManager/UnitSdk.constants.ts +1 -1
- package/src/unitSdkManager/UnitSdkManager.ts +8 -20
- package/src/utils/AppInfo.ts +40 -0
- package/src/utils/SDKInfo.ts +5 -0
- package/src/utils/webVersioningStrategy.utils.ts +7 -0
- package/src/webComponent/WebComponent.tsx +52 -37
- package/src/webComponent/WebComponent.utils.ts +17 -0
- package/android/src/main/java/com/unitreactnativecomponents/getapplicationid/UNAppInfoModule.kt +0 -35
- package/ios/UNAppInfo/UNAppInfo.swift +0 -23
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -86
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +0 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map +0 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +0 -17
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +0 -1
- package/lib/commonjs/components/utils/nativeModulesInfo.js +0 -20
- package/lib/commonjs/components/utils/nativeModulesInfo.js.map +0 -1
- package/lib/commonjs/helpers/EventBus.js +0 -58
- package/lib/commonjs/helpers/EventBus.js.map +0 -1
- package/lib/commonjs/hooks/listenerToBus.js +0 -34
- package/lib/commonjs/hooks/listenerToBus.js.map +0 -1
- package/lib/commonjs/nativeComponent/UnitAddToWalletButton.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -76
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +0 -2
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +0 -1
- package/lib/module/components/utils/nativeModulesInfo.js +0 -13
- package/lib/module/components/utils/nativeModulesInfo.js.map +0 -1
- package/lib/module/helpers/EventBus.js +0 -51
- package/lib/module/helpers/EventBus.js.map +0 -1
- package/lib/module/hooks/listenerToBus.js +0 -25
- package/lib/module/hooks/listenerToBus.js.map +0 -1
- package/lib/module/nativeComponent/UnitAddToWalletButton.js.map +0 -1
- package/lib/typescript/components/UNActivityComponent/UNActivityComponent.d.ts +0 -13
- package/lib/typescript/components/UNActivityComponent/index.d.ts +0 -1
- package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts +0 -1
- package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +0 -8
- package/lib/typescript/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.d.ts +0 -10
- package/lib/typescript/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.d.ts +0 -1
- package/lib/typescript/components/UNBottomSheetComponent/components/index.d.ts +0 -1
- package/lib/typescript/components/utils/nativeModulesInfo.d.ts +0 -1
- package/lib/typescript/helpers/EventBus.d.ts +0 -13
- package/lib/typescript/hooks/listenerToBus.d.ts +0 -7
- package/lib/typescript/messages/nativeMessages/bottomSheetMessage.d.ts +0 -9
- package/lib/typescript/messages/webMessages/paymentsMessage.d.ts +0 -3
- package/lib/typescript/store/index.d.ts +0 -1
- package/lib/typescript/store/store.d.ts +0 -6
- package/lib/typescript/types/internal/bottomSheet.types.d.ts +0 -35
- package/lib/typescript/types/shared/activity.types.d.ts +0 -7
- package/lib/typescript/types/shared/onLoadResponse.types.d.ts +0 -14
- package/lib/typescript/unitSdkManager/UnitSdk.api.d.ts +0 -3
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.tsx +0 -104
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.ts +0 -1
- package/src/components/utils/nativeModulesInfo.ts +0 -11
- package/src/helpers/EventBus.ts +0 -58
- package/src/hooks/listenerToBus.ts +0 -31
- /package/lib/commonjs/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.js +0 -0
- /package/lib/module/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.js +0 -0
- /package/lib/module/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.js +0 -0
- /package/src/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.ts +0 -0
- /package/src/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.tsx +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { WebComponent } from '../../webComponent/WebComponent';
|
|
4
|
+
import { UNAccountData, UNError, UNOnLoadResponse, UNOnLoadResponseData } from '../../types/shared';
|
|
5
|
+
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
6
|
+
import { WebViewMessage } from '../../messages/webMessages';
|
|
7
|
+
import { getProgramDetailsParams } from './UNProgramDetailsComponent.utils';
|
|
8
|
+
import { withReduxStore } from '../../helpers/store/helpers';
|
|
9
|
+
import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessages/onLoadMessage';
|
|
10
|
+
import { UnitMessage } from '../../messages/webMessages/unitMessages';
|
|
11
|
+
import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
|
|
12
|
+
|
|
13
|
+
export interface UNProgramDetailsComponentProps {
|
|
14
|
+
// inputs
|
|
15
|
+
customerToken: string;
|
|
16
|
+
accountId: string;
|
|
17
|
+
|
|
18
|
+
// ui
|
|
19
|
+
theme?: string;
|
|
20
|
+
language?: string;
|
|
21
|
+
hideTitle?: boolean;
|
|
22
|
+
|
|
23
|
+
// events
|
|
24
|
+
onLoad?: (response: UNOnLoadResponse<[UNAccountData]>) => void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const UNProgramDetailsComponent = (props: UNProgramDetailsComponentProps) => {
|
|
28
|
+
const [height, setHeight] = useState(0);
|
|
29
|
+
|
|
30
|
+
const handleUnitOnLoad = (response: UnitOnLoadResponseEvent) => {
|
|
31
|
+
console.log('handleUnitOnLoad', response);
|
|
32
|
+
|
|
33
|
+
if (!props.onLoad) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (RESPONSE_KEYS.errors in response) {
|
|
38
|
+
props.onLoad(response as UNError);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (RESPONSE_KEYS.account in response) {
|
|
43
|
+
props.onLoad(response[RESPONSE_KEYS.account] as UNOnLoadResponseData<[UNAccountData]>);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
console.error('On Load Error: unexpected response type.');
|
|
48
|
+
return;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const handleMessage = (message: WebViewMessage) => {
|
|
52
|
+
switch (message.type) {
|
|
53
|
+
case UnitMessage.UNIT_ON_LOAD:
|
|
54
|
+
handleUnitOnLoad(message.details as UnitOnLoadResponseEvent);
|
|
55
|
+
break;
|
|
56
|
+
|
|
57
|
+
case PageMessage.PAGE_HEIGHT:
|
|
58
|
+
setHeight((message.details as HeightEvent).height);
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<View style={{ height, width: '100%' }}>
|
|
65
|
+
<WebComponent
|
|
66
|
+
type={WebComponentType.programDetails}
|
|
67
|
+
presentationMode={PresentationMode.Default}
|
|
68
|
+
params={getProgramDetailsParams(props)}
|
|
69
|
+
theme={props.theme}
|
|
70
|
+
language={props.language}
|
|
71
|
+
onMessage={handleMessage}
|
|
72
|
+
/>
|
|
73
|
+
</View>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default withReduxStore<UNProgramDetailsComponentProps>(UNProgramDetailsComponent);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UNProgramDetailsComponentProps } from './UNProgramDetailsComponent';
|
|
2
|
+
|
|
3
|
+
export const getProgramDetailsParams = (props: UNProgramDetailsComponentProps) => {
|
|
4
|
+
return `
|
|
5
|
+
customer-token="${props.customerToken}"
|
|
6
|
+
account-id="${props.accountId}"
|
|
7
|
+
hide-title="${props.hideTitle || false}"
|
|
8
|
+
`;
|
|
9
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './UNCardComponent';
|
|
2
|
+
export * from './UNMultipleCardsComponent';
|
|
2
3
|
export * from './UNBottomSheetComponent';
|
|
3
4
|
export * from './UNBookPaymentComponent';
|
|
4
5
|
export * from './UNActivityComponent';
|
|
@@ -6,3 +7,5 @@ export * from './UNAccountComponent';
|
|
|
6
7
|
export * from './UNCheckDepositComponent';
|
|
7
8
|
export * from './UNACHDebitComponent';
|
|
8
9
|
export * from './UNACHCreditComponent';
|
|
10
|
+
export * from './UNProgramDetailsComponent';
|
|
11
|
+
export * from './UNNextRepaymentComponent';
|
package/src/flows/UNFlows.ts
CHANGED
|
@@ -8,6 +8,6 @@ export class UNFlows {
|
|
|
8
8
|
|
|
9
9
|
public async startPushProvisioning(cardId: string, customerToken: string) {
|
|
10
10
|
UnitSDK.setCustomerToken(customerToken);
|
|
11
|
-
UNCardFlows.startPushProvisioning(cardId, customerToken);
|
|
11
|
+
await UNCardFlows.startPushProvisioning(cardId, customerToken);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
BottomSheetNativeComponentType, BottomSheetNativePlaceType,
|
|
3
|
+
BottomSheetRenderingType, NativeComponentRendering,
|
|
4
|
+
} from '../../types/internal/bottomSheet.types';
|
|
4
5
|
import { BottomSheetNativeMessage } from '../../messages/nativeMessages/bottomSheetMessage';
|
|
6
|
+
import { setEvent } from '../../slices/SharedEventsSlice';
|
|
7
|
+
import { store } from '../../store/store';
|
|
8
|
+
import {
|
|
9
|
+
UNAddToWalletComponentProps,
|
|
10
|
+
} from '../../nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent';
|
|
5
11
|
|
|
6
12
|
export class UNCardFlows {
|
|
7
13
|
public static startPushProvisioning = async (cardId: string, customerToken: string) => {
|
|
8
14
|
try {
|
|
9
|
-
const
|
|
10
|
-
type:
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
const data: NativeComponentRendering = {
|
|
16
|
+
type: BottomSheetRenderingType.NativeComponent,
|
|
17
|
+
data: {
|
|
18
|
+
nativePlace: BottomSheetNativePlaceType.overFullScreen,
|
|
19
|
+
component: {
|
|
20
|
+
type: BottomSheetNativeComponentType.AddToWalletComponent,
|
|
21
|
+
props: { cardId: cardId, customerToken: customerToken } as UNAddToWalletComponentProps,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
13
24
|
};
|
|
14
|
-
|
|
15
|
-
const event: WebComponentRendering = {
|
|
16
|
-
type: BottomSheetRenderingType.WebComponent,
|
|
17
|
-
data: addToWalletComponentData,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
EventBus.Instance.event(BottomSheetNativeMessage.START_FLOW, event);
|
|
25
|
+
store.dispatch(setEvent({ key: BottomSheetNativeMessage.REQUEST_RENDERING, data }));
|
|
21
26
|
} catch (error) {
|
|
22
27
|
console.error(error);
|
|
23
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
|
|
3
3
|
import { VARIABLES } from '../../styles/variables';
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -10,7 +10,7 @@ export const getStylesObject = (fadeAnim: any) => {
|
|
|
10
10
|
top: 0,
|
|
11
11
|
bottom: 0,
|
|
12
12
|
right: 0,
|
|
13
|
-
left: 0
|
|
13
|
+
left: 0,
|
|
14
14
|
},
|
|
15
15
|
animation: {
|
|
16
16
|
backgroundColor: 'black',
|
|
@@ -20,7 +20,6 @@ export const getStylesObject = (fadeAnim: any) => {
|
|
|
20
20
|
container: {
|
|
21
21
|
position: 'relative',
|
|
22
22
|
flex: 1,
|
|
23
|
-
marginTop: Dimensions.get('window').height * (1 - BOTTOM_SHEET_MAX_PERCENTAGE_SIZE),
|
|
24
23
|
shadowColor: VARIABLES.COLORS.BLACK,
|
|
25
24
|
shadowOffset: {
|
|
26
25
|
width: 0,
|
|
@@ -32,12 +31,12 @@ export const getStylesObject = (fadeAnim: any) => {
|
|
|
32
31
|
borderTopLeftRadius: 15,
|
|
33
32
|
borderTopRightRadius: 15,
|
|
34
33
|
backgroundColor: VARIABLES.COLORS.WHITE,
|
|
35
|
-
overflow: 'hidden'
|
|
34
|
+
overflow: 'hidden',
|
|
36
35
|
},
|
|
37
36
|
lineContainer: {
|
|
38
37
|
borderTopLeftRadius: 30,
|
|
39
38
|
borderTopRightRadius: 30,
|
|
40
|
-
alignItems: 'center'
|
|
39
|
+
alignItems: 'center',
|
|
41
40
|
},
|
|
42
41
|
line: {
|
|
43
42
|
width: 35,
|
|
@@ -64,7 +63,7 @@ export const getStylesObject = (fadeAnim: any) => {
|
|
|
64
63
|
padding: 7,
|
|
65
64
|
top: 12,
|
|
66
65
|
right: 12,
|
|
67
|
-
zIndex: 100
|
|
68
|
-
}
|
|
66
|
+
zIndex: 100,
|
|
67
|
+
},
|
|
69
68
|
});
|
|
70
69
|
};
|
|
@@ -2,35 +2,42 @@ import React, { ReactNode, useEffect, useRef, useState } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Animated,
|
|
4
4
|
BackHandler,
|
|
5
|
-
Dimensions,
|
|
6
5
|
Easing,
|
|
7
6
|
Image,
|
|
8
|
-
KeyboardAvoidingView,
|
|
9
7
|
LayoutChangeEvent,
|
|
10
8
|
PanResponder,
|
|
9
|
+
Platform,
|
|
11
10
|
TouchableOpacity,
|
|
12
11
|
View,
|
|
13
12
|
} from 'react-native';
|
|
14
13
|
import PropTypes from 'prop-types';
|
|
15
14
|
import { CloseIcon } from '../../assets/images';
|
|
16
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
androidStatusBarHeight,
|
|
17
|
+
fullScreenHeight, isAndroid10AndAbove,
|
|
18
|
+
statusBarHeight,
|
|
19
|
+
} from '../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';
|
|
17
20
|
import { getStylesObject } from './BottomSheet.styles';
|
|
18
21
|
import { useAppStateListener } from '../../hooks/useAppStateListener';
|
|
22
|
+
import { BottomSheetNativePlaceType } from '../../types/internal/bottomSheet.types';
|
|
19
23
|
|
|
20
24
|
export interface BottomSheetProps {
|
|
21
|
-
isOpen: boolean
|
|
22
|
-
children: ReactNode
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
onClose: () => void
|
|
25
|
+
isOpen: boolean,
|
|
26
|
+
children: ReactNode,
|
|
27
|
+
onOpen: () => void,
|
|
28
|
+
onClose: () => void,
|
|
26
29
|
height: number,
|
|
27
30
|
animationDuration: number,
|
|
28
|
-
expandToMaxHeightEnabled: boolean
|
|
29
|
-
handleWebViewScroll: () => void
|
|
30
|
-
shouldEnableBottomSheetScroll: boolean
|
|
31
|
+
expandToMaxHeightEnabled: boolean,
|
|
32
|
+
handleWebViewScroll: () => void,
|
|
33
|
+
shouldEnableBottomSheetScroll: boolean,
|
|
34
|
+
nativePlace?: BottomSheetNativePlaceType,
|
|
35
|
+
isComponentLoading?: boolean,
|
|
36
|
+
sliderMaxHeight: number
|
|
31
37
|
}
|
|
32
38
|
|
|
33
39
|
const BottomSheet = (props: BottomSheetProps) => {
|
|
40
|
+
const isStatic = props.nativePlace === BottomSheetNativePlaceType.modal;
|
|
34
41
|
const panelHeightValue = useRef(new Animated.Value(props.sliderMaxHeight)).current;
|
|
35
42
|
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
36
43
|
const styles = getStylesObject(fadeAnim);
|
|
@@ -45,6 +52,7 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
45
52
|
|
|
46
53
|
const _parentPanResponder = PanResponder.create({
|
|
47
54
|
onMoveShouldSetPanResponderCapture: (_, gestureState) => {
|
|
55
|
+
if (isStatic) return false;
|
|
48
56
|
return props.shouldEnableBottomSheetScroll && Math.abs(gestureState.dy) > 10;
|
|
49
57
|
},
|
|
50
58
|
onPanResponderMove(_, gestureState) {
|
|
@@ -52,7 +60,7 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
52
60
|
props.handleWebViewScroll();
|
|
53
61
|
}
|
|
54
62
|
if (currentHeight + gestureState.dy < 0) return;
|
|
55
|
-
if (!props.expandToMaxHeightEnabled && contentHeight && currentHeight + gestureState.dy < sliderMaxHeight - contentHeight) return;
|
|
63
|
+
if (!props.expandToMaxHeightEnabled && contentHeight && currentHeight + gestureState.dy < props.sliderMaxHeight - contentHeight) return;
|
|
56
64
|
panelHeightValue.setValue(currentHeight + gestureState.dy);
|
|
57
65
|
setDy(gestureState.dy);
|
|
58
66
|
},
|
|
@@ -64,13 +72,13 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
64
72
|
} else {
|
|
65
73
|
expand();
|
|
66
74
|
}
|
|
67
|
-
}
|
|
75
|
+
},
|
|
68
76
|
});
|
|
69
77
|
|
|
70
78
|
useEffect(() => {
|
|
71
79
|
// on App Active State change reset the bottom-sheet
|
|
72
80
|
setContentHeight(0);
|
|
73
|
-
_dismiss(
|
|
81
|
+
_dismiss();
|
|
74
82
|
}, [isAppActive]);
|
|
75
83
|
|
|
76
84
|
useEffect(() => {
|
|
@@ -97,31 +105,28 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
97
105
|
Animated.timing(fadeAnim, {
|
|
98
106
|
toValue: 0.3,
|
|
99
107
|
duration: 500,
|
|
100
|
-
useNativeDriver: false
|
|
108
|
+
useNativeDriver: false,
|
|
101
109
|
}).start();
|
|
102
110
|
};
|
|
103
111
|
|
|
104
|
-
const fadeOut = (
|
|
112
|
+
const fadeOut = () => {
|
|
105
113
|
/*
|
|
106
114
|
withTimeout - most of the time we declare 'Close' after the animation is end.
|
|
107
115
|
In a case that the app is not active we do it without timeout. (Otherwise a race condition may occur.)
|
|
108
116
|
*/
|
|
109
117
|
setIsPanelOpened(false);
|
|
110
|
-
!withTimeout && props.onClose();
|
|
111
118
|
Animated.timing(fadeAnim, {
|
|
112
119
|
toValue: 0,
|
|
113
120
|
duration: 500,
|
|
114
|
-
useNativeDriver: false
|
|
115
|
-
}).start(
|
|
116
|
-
withTimeout && props.onClose();
|
|
117
|
-
});
|
|
121
|
+
useNativeDriver: false,
|
|
122
|
+
}).start();
|
|
118
123
|
};
|
|
119
124
|
|
|
120
125
|
const setToContentHeight = (contentHeight: number) => {
|
|
121
126
|
Animated.timing(panelHeightValue, {
|
|
122
127
|
duration: props.animationDuration,
|
|
123
128
|
easing: Easing.quad,
|
|
124
|
-
toValue: sliderMaxHeight - contentHeight,
|
|
129
|
+
toValue: props.sliderMaxHeight - contentHeight,
|
|
125
130
|
useNativeDriver: false,
|
|
126
131
|
}).start();
|
|
127
132
|
};
|
|
@@ -129,7 +134,7 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
129
134
|
const expand = () => {
|
|
130
135
|
const { animationDuration } = props;
|
|
131
136
|
props.onOpen();
|
|
132
|
-
if (contentHeight && currentHeight > (sliderMaxHeight - contentHeight)) {
|
|
137
|
+
if (contentHeight && currentHeight > (props.sliderMaxHeight - contentHeight)) {
|
|
133
138
|
setToContentHeight(contentHeight);
|
|
134
139
|
return;
|
|
135
140
|
}
|
|
@@ -143,7 +148,7 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
143
148
|
};
|
|
144
149
|
|
|
145
150
|
const collapse = () => {
|
|
146
|
-
if (contentHeight && currentHeight > (sliderMaxHeight - contentHeight)) {
|
|
151
|
+
if (contentHeight && currentHeight > (props.sliderMaxHeight - contentHeight)) {
|
|
147
152
|
_dismiss();
|
|
148
153
|
return;
|
|
149
154
|
}
|
|
@@ -157,29 +162,28 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
157
162
|
|
|
158
163
|
const _setSize = (e: LayoutChangeEvent) => {
|
|
159
164
|
const newContentHeight = e.nativeEvent.layout.height;
|
|
160
|
-
|
|
161
165
|
setContentHeight(newContentHeight);
|
|
162
166
|
setToContentHeight(newContentHeight);
|
|
163
167
|
};
|
|
164
168
|
|
|
165
|
-
const _dismiss = (
|
|
169
|
+
const _dismiss = () => {
|
|
166
170
|
const { animationDuration } = props;
|
|
167
171
|
Animated.timing(panelHeightValue, {
|
|
168
172
|
duration: animationDuration,
|
|
169
173
|
easing: Easing.quad,
|
|
170
|
-
toValue: sliderMaxHeight,
|
|
174
|
+
toValue: props.sliderMaxHeight,
|
|
171
175
|
useNativeDriver: false,
|
|
172
176
|
}).start(() => {
|
|
173
|
-
|
|
177
|
+
props.onClose();
|
|
174
178
|
});
|
|
175
|
-
fadeOut(
|
|
179
|
+
fadeOut();
|
|
176
180
|
};
|
|
177
181
|
|
|
178
182
|
const {
|
|
179
|
-
sliderMaxHeight,
|
|
180
183
|
children,
|
|
181
184
|
} = props;
|
|
182
185
|
|
|
186
|
+
const isModal = props.nativePlace === BottomSheetNativePlaceType.modal;
|
|
183
187
|
return (
|
|
184
188
|
<>
|
|
185
189
|
<TouchableOpacity
|
|
@@ -195,10 +199,14 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
195
199
|
{..._parentPanResponder.panHandlers}
|
|
196
200
|
style={{
|
|
197
201
|
...styles.container,
|
|
198
|
-
|
|
202
|
+
borderTopLeftRadius: isModal ? 0 : styles.container.borderTopLeftRadius,
|
|
203
|
+
borderTopRightRadius: isModal ? 0 : styles.container.borderTopRightRadius,
|
|
204
|
+
height: props.sliderMaxHeight,
|
|
205
|
+
marginTop: fullScreenHeight - props.sliderMaxHeight - ((!isModal && isAndroid10AndAbove) ? androidStatusBarHeight : 0),
|
|
199
206
|
transform: [
|
|
200
207
|
{ translateY: panelHeightValue },
|
|
201
208
|
],
|
|
209
|
+
paddingTop: Platform.OS === 'ios' && isModal ? statusBarHeight : 0,
|
|
202
210
|
}}
|
|
203
211
|
>
|
|
204
212
|
<View
|
|
@@ -215,13 +223,12 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
215
223
|
<View
|
|
216
224
|
onLayout={_setSize}
|
|
217
225
|
>
|
|
218
|
-
<
|
|
219
|
-
behavior="padding"
|
|
226
|
+
<View
|
|
220
227
|
style={{ height: props.height }}
|
|
221
|
-
keyboardVerticalOffset={props.height * (1 - BOTTOM_SHEET_MAX_PERCENTAGE_SIZE)}
|
|
222
228
|
>
|
|
223
229
|
{children}
|
|
224
|
-
</
|
|
230
|
+
</View>
|
|
231
|
+
|
|
225
232
|
</View>
|
|
226
233
|
</View>
|
|
227
234
|
</Animated.View>
|
|
@@ -232,22 +239,20 @@ const BottomSheet = (props: BottomSheetProps) => {
|
|
|
232
239
|
BottomSheet.propTypes = {
|
|
233
240
|
children: PropTypes.oneOfType([PropTypes.node]),
|
|
234
241
|
isOpen: PropTypes.bool,
|
|
235
|
-
sliderMaxHeight: PropTypes.number,
|
|
236
242
|
animation: PropTypes.func,
|
|
237
243
|
animationDuration: PropTypes.number,
|
|
238
244
|
onOpen: PropTypes.func,
|
|
239
245
|
onClose: PropTypes.func,
|
|
240
|
-
expandToMaxHeightEnabled: PropTypes.bool
|
|
246
|
+
expandToMaxHeightEnabled: PropTypes.bool,
|
|
241
247
|
};
|
|
242
248
|
|
|
243
249
|
BottomSheet.defaultProps = {
|
|
244
250
|
children: <View />,
|
|
245
251
|
isOpen: true,
|
|
246
|
-
sliderMaxHeight: Dimensions.get('window').height * BOTTOM_SHEET_MAX_PERCENTAGE_SIZE,
|
|
247
252
|
animationDuration: 200,
|
|
248
253
|
onOpen: () => null,
|
|
249
254
|
onClose: () => null,
|
|
250
|
-
expandToMaxHeightEnabled: false
|
|
255
|
+
expandToMaxHeightEnabled: false,
|
|
251
256
|
};
|
|
252
257
|
|
|
253
258
|
export default BottomSheet;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { UNNativePromiseReject, UNVPError, UNVPErrorType } from './types';
|
|
3
|
+
|
|
4
|
+
export const isUNVPError = (error: any): error is UNVPError => {
|
|
5
|
+
return 'code' in error &&
|
|
6
|
+
'description' in error &&
|
|
7
|
+
'type' in error &&
|
|
8
|
+
isUNVPErrorType(error.type) &&
|
|
9
|
+
'correlationId' in error;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const isUNVPErrorType = (type: any): type is UNVPErrorType => {
|
|
13
|
+
return Object.values(UNVPErrorType).includes(type);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const isUNNativePromiseReject = (error: any): error is UNNativePromiseReject => {
|
|
17
|
+
return 'code' in error && 'message' in error;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const promiseRejectToUNVPErrorType = (error: any): UNVPErrorType | null => {
|
|
21
|
+
// validate the shape of a promise reject we get from iOS/Android native
|
|
22
|
+
if (!isUNNativePromiseReject(error)) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const parsedError = JSON.parse(error.message);
|
|
26
|
+
// validate the shape of an error we get from VDE SDK
|
|
27
|
+
if (!isUNVPError(parsedError)) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return parsedError.type;
|
|
31
|
+
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
import { UNWalletCode,
|
|
1
|
+
import { useEffect, useState, useRef } from 'react';
|
|
2
|
+
import { UNWalletCode, UNWalletName } from '../../../types/shared/wallet.types';
|
|
3
|
+
import type { UNWallet } from '../../../types/shared/wallet.types';
|
|
3
4
|
import { UnitSDK } from '../../../unitSdkManager/UnitSdkManager';
|
|
4
5
|
import { getMobileWalletPayload } from '../../../networking/requests/UNWalletPayloadRequest';
|
|
5
|
-
import { useSelector } from 'react-redux';
|
|
6
|
-
import { selectWallet } from '../../../slices/pushProvisioningSlice';
|
|
6
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
7
|
+
import { selectWallet, setSignedNonce } from '../../../slices/pushProvisioningSlice';
|
|
7
8
|
import { useLaunchInitialize } from './useLaunchInitialize';
|
|
9
|
+
import { UNVPErrorType } from '../types';
|
|
10
|
+
import { promiseRejectToUNVPErrorType } from '../helpers';
|
|
11
|
+
import { UNErrorCodes, UNErrorData } from '../../../types/shared/error.types';
|
|
12
|
+
import { isUNError } from '../../../types/internal/errorHelpers';
|
|
8
13
|
|
|
9
14
|
export type CardToEncryptedPayload = {
|
|
10
15
|
[cardId: string]: string;
|
|
@@ -14,13 +19,19 @@ export const useCardWallet = (cardId: string) => {
|
|
|
14
19
|
const [currentUNWallet, setCurrentUNWallet] = useState<UNWallet>();
|
|
15
20
|
const { signedNonce } = useSelector(selectWallet);
|
|
16
21
|
const { initializePushProvisioning } = useLaunchInitialize();
|
|
22
|
+
const dispatch = useDispatch();
|
|
23
|
+
const isRecoveringSignedNonceRef = useRef<boolean>(false);
|
|
24
|
+
|
|
25
|
+
const shouldRecoverVPSDKForError = (errorType: UNVPErrorType) => {
|
|
26
|
+
const recoveringTypes = [UNVPErrorType.PayloadDecryptionFailed, UNVPErrorType.SessionExpired, UNVPErrorType.InvalidNonce];
|
|
27
|
+
return recoveringTypes.includes(errorType);
|
|
28
|
+
};
|
|
17
29
|
|
|
18
30
|
useEffect(() => {
|
|
19
31
|
const getEncryptedPayload = async () => {
|
|
20
32
|
const env = UnitSDK.getEnv();
|
|
21
33
|
const customerToken = UnitSDK.getCustomerToken();
|
|
22
34
|
if (!env || !customerToken) return;
|
|
23
|
-
|
|
24
35
|
// In case we use flow
|
|
25
36
|
if (!signedNonce) {
|
|
26
37
|
await initializePushProvisioning();
|
|
@@ -37,13 +48,32 @@ export const useCardWallet = (cardId: string) => {
|
|
|
37
48
|
const encryptedPayload = await getEncryptedPayload();
|
|
38
49
|
if (!encryptedPayload) return;
|
|
39
50
|
const walletsResponse = await currentProvisioningModule.launchGetWallets(JSON.stringify({ encPayload: encryptedPayload }));
|
|
40
|
-
|
|
41
51
|
const unWallet: UNWallet | null = parseWalletsResponse(walletsResponse);
|
|
42
52
|
if (!unWallet) return;
|
|
43
53
|
setCurrentUNWallet(unWallet);
|
|
44
54
|
return;
|
|
45
55
|
} catch (error) {
|
|
46
|
-
|
|
56
|
+
console.error('Coudln\'t get card wallet data:', error);
|
|
57
|
+
if (isRecoveringSignedNonceRef.current) return;
|
|
58
|
+
isRecoveringSignedNonceRef.current = true;
|
|
59
|
+
|
|
60
|
+
// handle unit network api errors
|
|
61
|
+
if (isUNError(error)) {
|
|
62
|
+
const errors: UNErrorData[] = error.errors;
|
|
63
|
+
// errors will return in an array but hold only a single error element
|
|
64
|
+
if (errors[0]?.code === UNErrorCodes.INVALID_NONCE) {
|
|
65
|
+
dispatch(setSignedNonce(null));
|
|
66
|
+
}
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// handle VDE SDK errors
|
|
71
|
+
const errorType = promiseRejectToUNVPErrorType(error);
|
|
72
|
+
if (!errorType) return;
|
|
73
|
+
if (shouldRecoverVPSDKForError(errorType)) {
|
|
74
|
+
dispatch(setSignedNonce(null));
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
47
77
|
}
|
|
48
78
|
};
|
|
49
79
|
|
|
@@ -51,7 +81,7 @@ export const useCardWallet = (cardId: string) => {
|
|
|
51
81
|
}, [signedNonce, cardId]);
|
|
52
82
|
|
|
53
83
|
return {
|
|
54
|
-
currentUNWallet
|
|
84
|
+
currentUNWallet,
|
|
55
85
|
};
|
|
56
86
|
|
|
57
87
|
};
|
|
@@ -9,12 +9,10 @@ export const launchStartCardProvisioning = async (wallet: UNWallet | null) => {
|
|
|
9
9
|
const response = await pushProvisioningModule.launchStartCardProvisioning(
|
|
10
10
|
JSON.stringify({
|
|
11
11
|
walletCode: wallet?.code,
|
|
12
|
-
walletName: wallet?.name
|
|
12
|
+
walletName: wallet?.name,
|
|
13
13
|
}));
|
|
14
14
|
return response;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
catch (error) {
|
|
18
|
-
return Promise.reject(error);
|
|
15
|
+
} catch (error) {
|
|
16
|
+
console.log('ERROR -pushProvisioningModule.launchStartCardProvisioning: ', error);
|
|
19
17
|
}
|
|
20
18
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export enum UNVPErrorType {
|
|
2
|
+
EmptyAppId = 'EmptyAppId',
|
|
3
|
+
DeviceAuthenticationFailed = 'DeviceAuthenticationFailed',
|
|
4
|
+
DeviceRootDetection = 'DeviceRootDetection',
|
|
5
|
+
HookDetection = 'HookDetection',
|
|
6
|
+
PlayIntegrityCheckFailed = 'PlayIntegrityCheckFailed',
|
|
7
|
+
EmptyEncryptedPayload = 'EmptyEncryptedPayload',
|
|
8
|
+
NoWallets = 'NoWallets',
|
|
9
|
+
InvalidCardId = 'InvalidCardId',
|
|
10
|
+
ProvisioningNotAllowed = 'ProvisioningNotAllowed',
|
|
11
|
+
CancelledByUser = 'CancelledByUser',
|
|
12
|
+
GoogleWalletCreationFailed = 'GoogleWalletCreationFailed',
|
|
13
|
+
UnknownErrorOccurred = 'UnknownErrorOccurred',
|
|
14
|
+
WalletProvisioningInconclusive = 'WalletProvisioningInconclusive',
|
|
15
|
+
WalletProvisioningError = 'WalletProvisioningError',
|
|
16
|
+
NetworkFailure = 'NetworkFailure',
|
|
17
|
+
SessionExpired = 'SessionExpired',
|
|
18
|
+
InvalidInfo = 'InvalidInfo',
|
|
19
|
+
PayloadDecryptionFailed = 'PayloadDecryptionFailed',
|
|
20
|
+
ApiError = 'ApiError',
|
|
21
|
+
InvalidNonce = 'InvalidNonce',
|
|
22
|
+
SDKLockout = 'SDKLockout',
|
|
23
|
+
NoBrowserFound = 'NoBrowserFound',
|
|
24
|
+
TLCMFeatureNotSupported = 'TLCMFeatureNotSupported',
|
|
25
|
+
TLCMUnsupportedWallet = 'TLCMUnsupportedWallet',
|
|
26
|
+
TLCMDetailsNotFoundInPaySdk = 'TLCMDetailsNotFoundInPaySdk',
|
|
27
|
+
TLCMTokenStatusExists = 'TLCMTokenStatusExists',
|
|
28
|
+
TLCMInvalidOperationInput = 'TLCMInvalidOperationInput',
|
|
29
|
+
TLCMInvalidRequest = 'TLCMInvalidRequest',
|
|
30
|
+
TLCMUpdateStatusNotAllowed = 'TLCMUpdateStatusNotAllowed',
|
|
31
|
+
TLCMTokenNotFound = 'TLCMTokenNotFound',
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface UNVPError {
|
|
35
|
+
code: string;
|
|
36
|
+
description: string;
|
|
37
|
+
type: UNVPErrorType;
|
|
38
|
+
correlationId: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type UNNativePromiseReject = {
|
|
42
|
+
code: string;
|
|
43
|
+
message: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface UNMobileWalletPayload {
|
|
47
|
+
data: {
|
|
48
|
+
attributes: {
|
|
49
|
+
payload: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Provider } from 'react-redux';
|
|
3
3
|
import { store } from '../../store';
|
|
4
4
|
|
|
5
|
-
export const withReduxStore = <Props
|
|
5
|
+
export const withReduxStore = <Props,>(Component: React.ComponentType<any>) => {
|
|
6
6
|
const Wrapper = (props: Props) => {
|
|
7
7
|
return (
|
|
8
8
|
<Provider store={store} >
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
|
+
import { useSelector } from 'react-redux';
|
|
5
|
+
import type { RootState } from '../store';
|
|
6
|
+
import type { NativeMessageType } from '../messages/nativeMessages';
|
|
7
|
+
import type { WebViewMessageType } from '../messages/webMessages';
|
|
8
|
+
|
|
9
|
+
export type BusEventKey = NativeMessageType | WebViewMessageType
|
|
10
|
+
|
|
11
|
+
type EventListener = {
|
|
12
|
+
busEventKey: BusEventKey,
|
|
13
|
+
action: (data: any) => void
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const useListenerToEvent = (listener: EventListener) => {
|
|
17
|
+
const isFirstRun = useRef(true);
|
|
18
|
+
const event = useSelector((state: RootState) => state.sharedEvents.event);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (isFirstRun.current) {
|
|
21
|
+
isFirstRun.current = false;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (event == null || event == undefined || event?.key != listener.busEventKey) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
listener.action(event.data);
|
|
30
|
+
|
|
31
|
+
}, [event]);
|
|
32
|
+
};
|