react-native-unit-components 1.10.0 → 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 +1 -1
- package/android/src/main/java/com/unitreactnativecomponents/visapresentation/UNGooglePayView.kt +147 -152
- package/lib/commonjs/assets/images/index.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +13 -4
- 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 +13 -4
- 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 +31 -15
- 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 +16 -7
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js +4 -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 +151 -255
- 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 +4 -5
- 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 +3 -4
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +1 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNMultipleCardsComponent/index.js +2 -2
- package/lib/commonjs/components/UNMultipleCardsComponent/index.js.map +1 -1
- 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 +22 -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 +26 -26
- 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.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js +1 -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 +3 -4
- package/lib/commonjs/helpers/pushProvisioningService/types.js.map +1 -1
- 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 +1 -1
- package/lib/commonjs/hooks/useListenerToEvent.js.map +1 -1
- 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 +3 -4
- package/lib/commonjs/messages/webMessages/multipleCardsMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/onLoadMessage.js +4 -4
- 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.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 +1 -2
- package/lib/commonjs/slices/ConfigurationSlice.js.map +1 -1
- package/lib/commonjs/slices/SharedEventsSlice.js +3 -2
- package/lib/commonjs/slices/SharedEventsSlice.js.map +1 -1
- 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 +4 -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.map +1 -1
- package/lib/commonjs/types/internal/webComponent.types.js +8 -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 +3 -4
- 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 +3 -4
- package/lib/commonjs/types/shared/error.types.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/types/shared/multipleCards.types.js +3 -4
- package/lib/commonjs/types/shared/multipleCards.types.js.map +1 -1
- 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.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 +54 -63
- 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.map +1 -1
- package/lib/commonjs/utils/SDKInfo.js.map +1 -1
- 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 +10 -4
- package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js +2 -2
- package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/commonjs/webComponent/html.js +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 +10 -0
- 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 +10 -0
- 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 +30 -12
- 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 +17 -7
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js +4 -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 +147 -250
- 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 +1 -1
- 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.map +1 -1
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +1 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -1
- package/lib/module/components/UNMultipleCardsComponent/index.js.map +1 -1
- 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 +2 -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 +27 -27
- 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.map +1 -1
- package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js +1 -2
- 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 +3 -3
- package/lib/module/helpers/pushProvisioningService/types.js.map +1 -1
- 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 +1 -1
- package/lib/module/hooks/useListenerToEvent.js.map +1 -1
- 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 +3 -3
- package/lib/module/messages/webMessages/multipleCardsMessage.js.map +1 -1
- package/lib/module/messages/webMessages/onLoadMessage.js +4 -3
- 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.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.map +1 -1
- package/lib/module/slices/SharedEventsSlice.js +3 -0
- package/lib/module/slices/SharedEventsSlice.js.map +1 -1
- package/lib/module/slices/pushProvisioningSlice.js.map +1 -1
- package/lib/module/store/index.js.map +1 -1
- package/lib/module/store/store.js +3 -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.map +1 -1
- package/lib/module/types/internal/webComponent.types.js +8 -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 +3 -3
- 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 +3 -3
- package/lib/module/types/shared/error.types.js.map +1 -1
- 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.map +1 -1
- package/lib/module/types/shared/multipleCards.types.js +3 -3
- package/lib/module/types/shared/multipleCards.types.js.map +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.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 +54 -62
- 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.map +1 -1
- package/lib/module/utils/SDKInfo.js.map +1 -1
- 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 +8 -1
- package/lib/module/webComponent/WebComponent.js.map +1 -1
- package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/module/webComponent/html.js.map +1 -1
- package/lib/typescript/src/assets/images/index.d.ts +1 -0
- package/lib/typescript/src/assets/images/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts +10 -1
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -0
- package/lib/typescript/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/src/components/UNACHCreditComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNACHCreditComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts +10 -1
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -0
- package/lib/typescript/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/src/components/UNACHDebitComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNACHDebitComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts +6 -0
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -0
- package/lib/typescript/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/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 +8 -1
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -0
- package/lib/typescript/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 -1
- package/lib/typescript/src/components/UNActivityComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +10 -4
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -0
- package/lib/typescript/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/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 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +2 -6
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -0
- package/lib/typescript/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/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 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts +3 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -0
- package/lib/typescript/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/src/components/UNCardComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNCardComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts +7 -1
- package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -0
- package/lib/typescript/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/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 +3 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/index.d.ts +1 -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/src/components/index.d.ts +3 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/flows/UNFlows.d.ts +1 -0
- package/lib/typescript/src/flows/UNFlows.d.ts.map +1 -0
- package/lib/typescript/src/flows/card/UNCardFlows.d.ts +1 -0
- package/lib/typescript/src/flows/card/UNCardFlows.d.ts.map +1 -0
- package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts +5 -3
- package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/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 +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/helpers.d.ts.map +1 -0
- package/lib/typescript/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/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/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 +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/types.d.ts.map +1 -0
- package/lib/typescript/src/helpers/store/helpers.d.ts +1 -0
- package/lib/typescript/src/helpers/store/helpers.d.ts.map +1 -0
- package/lib/typescript/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 +1 -0
- package/lib/typescript/src/hooks/useListenerToEvent.d.ts.map +1 -0
- package/lib/typescript/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 +5 -4
- package/lib/typescript/src/messages/nativeMessages/bottomSheetMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/nativeMessages/cardMessage.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/cardMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/nativeMessages/index.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/index.d.ts.map +1 -0
- package/lib/typescript/src/messages/nativeMessages/sdkMessage.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/sdkMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/accountMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/accountMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/achCreditMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/achCreditMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/activityMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/activityMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/bookPaymentMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/bookPaymentMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/cardMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/cardMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/checkMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/checkMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/index.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/index.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts +5 -3
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -0
- package/lib/typescript/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 +4 -1
- package/lib/typescript/src/messages/webMessages/paymentsMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/unitMessages.d.ts +11 -5
- package/lib/typescript/src/messages/webMessages/unitMessages.d.ts.map +1 -0
- package/lib/typescript/src/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → 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/src/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.d.ts +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UnitAddToWalletButton.d.ts.map +1 -0
- package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts +1 -0
- package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -0
- package/lib/typescript/src/networking/requests/UNWalletPayloadRequest.d.ts +1 -0
- package/lib/typescript/src/networking/requests/UNWalletPayloadRequest.d.ts.map +1 -0
- package/lib/typescript/src/scripts/html/bodyHtml.d.ts +1 -0
- package/lib/typescript/src/scripts/html/bodyHtml.d.ts.map +1 -0
- package/lib/typescript/src/scripts/html/bodyScript.d.ts +5 -1
- package/lib/typescript/src/scripts/html/bodyScript.d.ts.map +1 -0
- package/lib/typescript/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 +1 -0
- package/lib/typescript/src/slices/ConfigurationSlice.d.ts.map +1 -0
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts +7 -10
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts.map +1 -0
- package/lib/typescript/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 +1 -0
- package/lib/typescript/src/store/index.d.ts.map +1 -0
- package/lib/typescript/src/store/store.d.ts +5 -8
- package/lib/typescript/src/store/store.d.ts.map +1 -0
- package/lib/typescript/src/styles/fonts.d.ts +1 -0
- package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/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 +29 -7
- package/lib/typescript/src/types/internal/bottomSheet.types.d.ts.map +1 -0
- package/lib/typescript/src/types/internal/errorHelpers.d.ts +1 -0
- package/lib/typescript/src/types/internal/errorHelpers.d.ts.map +1 -0
- package/lib/typescript/src/types/internal/webComponent.types.d.ts +4 -1
- package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -0
- package/lib/typescript/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/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 +4 -3
- package/lib/typescript/src/types/shared/activity.types.d.ts.map +1 -0
- package/lib/typescript/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/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/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/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 +1 -0
- package/lib/typescript/src/types/shared/error.types.d.ts.map +1 -0
- package/lib/typescript/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/src/types/shared/index.d.ts +1 -0
- package/lib/typescript/src/types/shared/index.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/multipleCards.types.d.ts +2 -1
- package/lib/typescript/src/types/shared/multipleCards.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts.map +1 -0
- package/lib/typescript/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/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/src/types/shared/types.d.ts +1 -0
- package/lib/typescript/src/types/shared/types.d.ts.map +1 -0
- package/lib/typescript/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/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 +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.api.d.ts.map +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -0
- package/lib/typescript/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/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 +1 -0
- package/lib/typescript/src/utils/AppInfo.d.ts.map +1 -0
- package/lib/typescript/src/utils/SDKInfo.d.ts +1 -0
- package/lib/typescript/src/utils/SDKInfo.d.ts.map +1 -0
- package/lib/typescript/src/utils/webVersioningStrategy.utils.d.ts +1 -0
- package/lib/typescript/src/utils/webVersioningStrategy.utils.d.ts.map +1 -0
- package/lib/typescript/src/webComponent/WebComponent.d.ts +1 -0
- package/lib/typescript/src/webComponent/WebComponent.d.ts.map +1 -0
- package/lib/typescript/src/webComponent/WebComponent.utils.d.ts +1 -0
- package/lib/typescript/src/webComponent/WebComponent.utils.d.ts.map +1 -0
- package/lib/typescript/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 +26 -4
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.ts +13 -2
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +26 -4
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.ts +12 -2
- package/src/components/UNAccountComponent/UNAccountComponent.tsx +40 -14
- package/src/components/UNAccountComponent/UNAccountComponent.utils.ts +9 -6
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +30 -9
- package/src/components/UNActivityComponent/UNActivityComponent.utils.ts +2 -0
- 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 +174 -281
- 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 +4 -2
- 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 +1 -0
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.ts +1 -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 +2 -0
- package/src/flows/UNFlows.ts +1 -1
- package/src/flows/card/UNCardFlows.ts +16 -17
- package/src/helpers/BottomSheet/BottomSheet.styles.ts +7 -8
- package/src/helpers/BottomSheet/BottomSheet.tsx +44 -39
- package/src/helpers/pushProvisioningService/hooks/useCardWallet.ts +3 -2
- package/src/helpers/pushProvisioningService/startProvisioning.ts +3 -5
- package/src/helpers/store/helpers.tsx +1 -1
- package/src/messages/nativeMessages/bottomSheetMessage.ts +7 -7
- package/src/messages/webMessages/onLoadMessage.ts +4 -3
- 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/scripts/html/bodyScript.ts +36 -8
- package/src/slices/BottomSheetSlice.ts +72 -0
- package/src/slices/SharedEventsSlice.ts +7 -12
- package/src/store/store.ts +2 -0
- package/src/styles/variables.ts +5 -2
- package/src/types/internal/bottomSheet.types.ts +51 -7
- package/src/types/internal/webComponent.types.ts +2 -0
- package/src/types/shared/account.types.ts +6 -0
- package/src/types/shared/activity.types.ts +3 -3
- package/src/types/shared/card.types.ts +10 -1
- package/src/types/shared/multipleCards.types.ts +1 -1
- 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.constants.ts +1 -1
- package/src/utils/webVersioningStrategy.utils.ts +7 -0
- package/src/webComponent/WebComponent.tsx +21 -9
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -91
- 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/nativeComponent/UnitAddToWalletButton.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -81
- 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/nativeComponent/UnitAddToWalletButton.js.map +0 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.d.ts +0 -10
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.d.ts +0 -1
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.tsx +0 -109
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.ts +0 -1
- /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 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","View","PageMessage","UnitMessage","WebComponent","getNextRepaymentParams","RESPONSE_KEYS","PresentationMode","WebComponentType","withReduxStore","UNNextRepaymentComponent","props","height","setHeight","handleUnitOnLoad","response","onLoad","errors","repayment","console","error","handleMessage","message","type","UNIT_ON_LOAD","details","PAGE_HEIGHT","createElement","style","width","nextRepayment","presentationMode","Default","params","theme","language","onMessage","isScrollable"],"sourceRoot":"../../../../src","sources":["components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAAsBC,WAAW,QAAQ,wCAAwC;AACjF,SAASC,WAAW,QAAQ,yCAAyC;AACrE,SAASC,YAAY,QAAQ,iCAAiC;AAE9D,SACEC,sBAAsB,QACjB,kCAAkC;AAEzC,SAASC,aAAa,QAAiC,0CAA0C;AACjG,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAC5F,SAASC,cAAc,QAAQ,6BAA6B;AAiB5D,MAAMC,wBAAwB,GAAIC,KAAoC,IAAK;EAEzE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGb,QAAQ,CAAC,CAAC,CAAC;EAEvC,MAAMc,gBAAgB,GAAIC,QAAiC,IAAK;IAC9D,IAAI,CAACJ,KAAK,CAACK,MAAM,EAAE;MACjB;IACF;IAEA,IAAIV,aAAa,CAACW,MAAM,IAAIF,QAAQ,EAAE;MACpCJ,KAAK,CAACK,MAAM,CAACD,QAAmB,CAAC;MACjC;IACF;IAEA,IAAIT,aAAa,CAACY,SAAS,IAAIH,QAAQ,EAAE;MACvCJ,KAAK,CAACK,MAAM,CAACD,QAAQ,CAACT,aAAa,CAACY,SAAS,CAA4C,CAAC;MAC1F;IACF;IAEAC,OAAO,CAACC,KAAK,CAAC,0CAA0C,CAAC;IACzD;EACF,CAAC;EAED,MAAMC,aAAa,GAAIC,OAAuB,IAAK;IACjD,QAAQA,OAAO,CAACC,IAAI;MAClB,KAAKpB,WAAW,CAACqB,YAAY;QAC3BV,gBAAgB,CAACQ,OAAO,CAACG,OAAkC,CAAC;QAC5D;MAEF,KAAKvB,WAAW,CAACwB,WAAW;QAC1Bb,SAAS,CAAES,OAAO,CAACG,OAAO,CAAiBb,MAAM,CAAC;QAClD;IACJ;EACF,CAAC;EAED,oBACEb,KAAA,CAAA4B,aAAA,CAAC1B,IAAI;IAAC2B,KAAK,EAAE;MAAEhB,MAAM;MAAEiB,KAAK,EAAE;IAAO;EAAE,gBACrC9B,KAAA,CAAA4B,aAAA,CAACvB,YAAY;IACXmB,IAAI,EAAEf,gBAAgB,CAACsB,aAAc;IACrCC,gBAAgB,EAAExB,gBAAgB,CAACyB,OAAQ;IAC3CC,MAAM,EAAE5B,sBAAsB,CAACM,KAAK,CAAE;IACtCuB,KAAK,EAAEvB,KAAK,CAACuB,KAAM;IACnBC,QAAQ,EAAExB,KAAK,CAACwB,QAAS;IACzBC,SAAS,EAAEd,OAAO,IAAID,aAAa,CAACC,OAAO,CAAE;IAC7Ce,YAAY,EAAE;EAAM,CACrB,CACG,CAAC;AAEX,CAAC;AAED,eAAe5B,cAAc,CAAgCC,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getNextRepaymentParams","props","customerToken","accountId","hideTitle"],"sourceRoot":"../../../../src","sources":["components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.ts"],"mappings":"AAEA,OAAO,MAAMA,sBAAsB,GAAIC,KAAoC,IAAK;EAE9E,OAAQ;AACV,sBAAsBA,KAAK,CAACC,aAAc;AAC1C,kBAAkBD,KAAK,CAACE,SAAU;AAClC,gCAAgCF,KAAK,CAACG,SAAS,IAAI,KAAM;AACzD,GAAG;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","UNNextRepaymentComponent","UNNextRepaymentComponentProps"],"sourceRoot":"../../../../src","sources":["components/UNNextRepaymentComponent/index.ts"],"mappings":"AAAA,SACEA,OAAO,IAAIC,wBAAwB,EAACC,6BAA6B,QAC5D,4BAA4B"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { WebComponent } from '../../webComponent/WebComponent';
|
|
4
|
+
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
5
|
+
import { getProgramDetailsParams } from './UNProgramDetailsComponent.utils';
|
|
6
|
+
import { withReduxStore } from '../../helpers/store/helpers';
|
|
7
|
+
import { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
8
|
+
import { UnitMessage } from '../../messages/webMessages/unitMessages';
|
|
9
|
+
import { PageMessage } from '../../messages/webMessages/pageMessage';
|
|
10
|
+
const UNProgramDetailsComponent = props => {
|
|
11
|
+
const [height, setHeight] = useState(0);
|
|
12
|
+
const handleUnitOnLoad = response => {
|
|
13
|
+
console.log('handleUnitOnLoad', response);
|
|
14
|
+
if (!props.onLoad) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (RESPONSE_KEYS.errors in response) {
|
|
18
|
+
props.onLoad(response);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (RESPONSE_KEYS.account in response) {
|
|
22
|
+
props.onLoad(response[RESPONSE_KEYS.account]);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
console.error('On Load Error: unexpected response type.');
|
|
26
|
+
return;
|
|
27
|
+
};
|
|
28
|
+
const handleMessage = message => {
|
|
29
|
+
switch (message.type) {
|
|
30
|
+
case UnitMessage.UNIT_ON_LOAD:
|
|
31
|
+
handleUnitOnLoad(message.details);
|
|
32
|
+
break;
|
|
33
|
+
case PageMessage.PAGE_HEIGHT:
|
|
34
|
+
setHeight(message.details.height);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
39
|
+
style: {
|
|
40
|
+
height,
|
|
41
|
+
width: '100%'
|
|
42
|
+
}
|
|
43
|
+
}, /*#__PURE__*/React.createElement(WebComponent, {
|
|
44
|
+
type: WebComponentType.programDetails,
|
|
45
|
+
presentationMode: PresentationMode.Default,
|
|
46
|
+
params: getProgramDetailsParams(props),
|
|
47
|
+
theme: props.theme,
|
|
48
|
+
language: props.language,
|
|
49
|
+
onMessage: handleMessage
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
52
|
+
export default withReduxStore(UNProgramDetailsComponent);
|
|
53
|
+
//# sourceMappingURL=UNProgramDetailsComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","View","WebComponent","PresentationMode","WebComponentType","getProgramDetailsParams","withReduxStore","RESPONSE_KEYS","UnitMessage","PageMessage","UNProgramDetailsComponent","props","height","setHeight","handleUnitOnLoad","response","console","log","onLoad","errors","account","error","handleMessage","message","type","UNIT_ON_LOAD","details","PAGE_HEIGHT","createElement","style","width","programDetails","presentationMode","Default","params","theme","language","onMessage"],"sourceRoot":"../../../../src","sources":["components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,YAAY,QAAQ,iCAAiC;AAE9D,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,yCAAyC;AAE5F,SAASC,uBAAuB,QAAQ,mCAAmC;AAC3E,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,aAAa,QAAiC,0CAA0C;AACjG,SAASC,WAAW,QAA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K,EAAExB,KAAK,CAACwB,KAAM;IACnBC,QAAQ,EAAEzB,KAAK,CAACyB,QAAS;IACzBC,SAAS,EAAEf;EAAc,CAC1B,CACG,CAAC;AAEX,CAAC;AAED,eAAehB,cAAc,CAAiCI,yBAAyB,CAAC"}
|
package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getProgramDetailsParams","props","customerToken","accountId","hideTitle"],"sourceRoot":"../../../../src","sources":["components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.ts"],"mappings":"AAEA,OAAO,MAAMA,uBAAuB,GAAIC,KAAqC,IAAK;EAChF,OAAQ;AACV,sBAAsBA,KAAK,CAACC,aAAc;AAC1C,kBAAkBD,KAAK,CAACE,SAAU;AAClC,kBAAkBF,KAAK,CAACG,SAAS,IAAI,KAAM;AAC3C,KAAK;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","UNProgramDetailsComponent","UNProgramDetailsComponentProps"],"sourceRoot":"../../../../src","sources":["components/UNProgramDetailsComponent/index.ts"],"mappings":"AAAA,SACEA,OAAO,IAAIC,yBAAyB,EAAEC,8BAA8B,QAC/D,6BAA6B"}
|
|
@@ -7,4 +7,6 @@ export * from './UNAccountComponent';
|
|
|
7
7
|
export * from './UNCheckDepositComponent';
|
|
8
8
|
export * from './UNACHDebitComponent';
|
|
9
9
|
export * from './UNACHCreditComponent';
|
|
10
|
+
export * from './UNProgramDetailsComponent';
|
|
11
|
+
export * from './UNNextRepaymentComponent';
|
|
10
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,cAAc,mBAAmB;AACjC,cAAc,4BAA4B;AAC1C,cAAc,0BAA0B;AACxC,cAAc,0BAA0B;AACxC,cAAc,uBAAuB;AACrC,cAAc,sBAAsB;AACpC,cAAc,2BAA2B;AACzC,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["custom.d.ts"],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["custom.d.ts"],"mappings":""}
|
|
@@ -6,7 +6,7 @@ export class UNFlows {
|
|
|
6
6
|
}
|
|
7
7
|
async startPushProvisioning(cardId, customerToken) {
|
|
8
8
|
UnitSDK.setCustomerToken(customerToken);
|
|
9
|
-
UNCardFlows.startPushProvisioning(cardId, customerToken);
|
|
9
|
+
await UNCardFlows.startPushProvisioning(cardId, customerToken);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=UNFlows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["UNCardFlows","UnitSDK","UNFlows","constructor","console","log","startPushProvisioning","cardId","customerToken","setCustomerToken"],"
|
|
1
|
+
{"version":3,"names":["UNCardFlows","UnitSDK","UNFlows","constructor","console","log","startPushProvisioning","cardId","customerToken","setCustomerToken"],"sourceRoot":"../../../src","sources":["flows/UNFlows.ts"],"mappings":"AAAA,SAASA,WAAW,QAAQ,oBAAoB;AAChD,SAASC,OAAO,QAAQ,kCAAkC;AAE1D,OAAO,MAAMC,OAAO,CAAC;EACnBC,WAAWA,CAAA,EAAG;IACZC,OAAO,CAACC,GAAG,CAAC,4BAA4B,CAAC;EAC3C;EAEA,MAAaC,qBAAqBA,CAACC,MAAc,EAAEC,aAAqB,EAAE;IACxEP,OAAO,CAACQ,gBAAgB,CAACD,aAAa,CAAC;IACvC,MAAMR,WAAW,CAACM,qBAAqB,CAACC,MAAM,EAAEC,aAAa,CAAC;EAChE;AACF"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
-
import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
|
|
5
|
-
import { BottomSheetRenderingType } from '../../types/internal/bottomSheet.types';
|
|
1
|
+
import { BottomSheetNativeComponentType, BottomSheetNativePlaceType, BottomSheetRenderingType } from '../../types/internal/bottomSheet.types';
|
|
6
2
|
import { BottomSheetNativeMessage } from '../../messages/nativeMessages/bottomSheetMessage';
|
|
7
|
-
import { useDispatch } from 'react-redux';
|
|
8
3
|
import { setEvent } from '../../slices/SharedEventsSlice';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
4
|
+
import { store } from '../../store/store';
|
|
5
|
+
export class UNCardFlows {
|
|
6
|
+
static startPushProvisioning = async (cardId, customerToken) => {
|
|
7
|
+
try {
|
|
8
|
+
const data = {
|
|
9
|
+
type: BottomSheetRenderingType.NativeComponent,
|
|
10
|
+
data: {
|
|
11
|
+
nativePlace: BottomSheetNativePlaceType.overFullScreen,
|
|
12
|
+
component: {
|
|
13
|
+
type: BottomSheetNativeComponentType.AddToWalletComponent,
|
|
14
|
+
props: {
|
|
15
|
+
cardId: cardId,
|
|
16
|
+
customerToken: customerToken
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
store.dispatch(setEvent({
|
|
22
|
+
key: BottomSheetNativeMessage.REQUEST_RENDERING,
|
|
23
|
+
data
|
|
24
|
+
}));
|
|
25
|
+
} catch (error) {
|
|
26
|
+
console.error(error);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
30
|
//# sourceMappingURL=UNCardFlows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["BottomSheetNativeComponentType","BottomSheetNativePlaceType","BottomSheetRenderingType","BottomSheetNativeMessage","setEvent","store","UNCardFlows","startPushProvisioning","cardId","customerToken","data","type","NativeComponent","nativePlace","overFullScreen","component","AddToWalletComponent","props","dispatch","key","REQUEST_RENDERING","error","console"],"sourceRoot":"../../../../src","sources":["flows/card/UNCardFlows.ts"],"mappings":"AAAA,SACEA,8BAA8B,EAAEC,0BAA0B,EAC1DC,wBAAwB,QACnB,wCAAwC;AAC/C,SAASC,wBAAwB,QAAQ,kDAAkD;AAC3F,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,KAAK,QAAQ,mBAAmB;AAKzC,OAAO,MAAMC,WAAW,CAAC;EACvB,OAAcC,qBAAqB,GAAG,MAAAA,CAAOC,MAAc,EAAEC,aAAqB,KAAK;IACrF,IAAI;MACF,MAAMC,IAA8B,GAAG;QACrCC,IAAI,EAAET,wBAAwB,CAACU,eAAe;QAC9CF,IAAI,EAAE;UACJG,WAAW,EAAEZ,0BAA0B,CAACa,cAAc;UACtDC,SAAS,EAAE;YACTJ,IAAI,EAAEX,8BAA8B,CAACgB,oBAAoB;YACzDC,KAAK,EAAE;cAAET,MAAM,EAAEA,MAAM;cAAEC,aAAa,EAAEA;YAAc;UACxD;QACF;MACF,CAAC;MACDJ,KAAK,CAACa,QAAQ,CAACd,QAAQ,CAAC;QAAEe,GAAG,EAAEhB,wBAAwB,CAACiB,iBAAiB;QAAEV;MAAK,CAAC,CAAC,CAAC;IACrF,CAAC,CAAC,OAAOW,KAAK,EAAE;MACdC,OAAO,CAACD,KAAK,CAACA,KAAK,CAAC;IACtB;EACF,CAAC;AACH"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { Animated, BackHandler,
|
|
3
|
+
import { Animated, BackHandler, Easing, Image, PanResponder, Platform, TouchableOpacity, View } from 'react-native';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { CloseIcon } from '../../assets/images';
|
|
6
|
-
import {
|
|
6
|
+
import { androidStatusBarHeight, fullScreenHeight, isAndroid10AndAbove, statusBarHeight } from '../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';
|
|
7
7
|
import { getStylesObject } from './BottomSheet.styles';
|
|
8
8
|
import { useAppStateListener } from '../../hooks/useAppStateListener';
|
|
9
|
+
import { BottomSheetNativePlaceType } from '../../types/internal/bottomSheet.types';
|
|
9
10
|
const BottomSheet = props => {
|
|
11
|
+
const isStatic = props.nativePlace === BottomSheetNativePlaceType.modal;
|
|
10
12
|
const panelHeightValue = useRef(new Animated.Value(props.sliderMaxHeight)).current;
|
|
11
13
|
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
12
14
|
const styles = getStylesObject(fadeAnim);
|
|
@@ -17,6 +19,7 @@ const BottomSheet = props => {
|
|
|
17
19
|
const isAppActive = useAppStateListener();
|
|
18
20
|
const _parentPanResponder = PanResponder.create({
|
|
19
21
|
onMoveShouldSetPanResponderCapture: (_, gestureState) => {
|
|
22
|
+
if (isStatic) return false;
|
|
20
23
|
return props.shouldEnableBottomSheetScroll && Math.abs(gestureState.dy) > 10;
|
|
21
24
|
},
|
|
22
25
|
onPanResponderMove(_, gestureState) {
|
|
@@ -24,7 +27,7 @@ const BottomSheet = props => {
|
|
|
24
27
|
props.handleWebViewScroll();
|
|
25
28
|
}
|
|
26
29
|
if (currentHeight + gestureState.dy < 0) return;
|
|
27
|
-
if (!props.expandToMaxHeightEnabled && contentHeight && currentHeight + gestureState.dy < sliderMaxHeight - contentHeight) return;
|
|
30
|
+
if (!props.expandToMaxHeightEnabled && contentHeight && currentHeight + gestureState.dy < props.sliderMaxHeight - contentHeight) return;
|
|
28
31
|
panelHeightValue.setValue(currentHeight + gestureState.dy);
|
|
29
32
|
setDy(gestureState.dy);
|
|
30
33
|
},
|
|
@@ -41,7 +44,7 @@ const BottomSheet = props => {
|
|
|
41
44
|
useEffect(() => {
|
|
42
45
|
// on App Active State change reset the bottom-sheet
|
|
43
46
|
setContentHeight(0);
|
|
44
|
-
_dismiss(
|
|
47
|
+
_dismiss();
|
|
45
48
|
}, [isAppActive]);
|
|
46
49
|
useEffect(() => {
|
|
47
50
|
if (props.isOpen && !isPanelOpened) {
|
|
@@ -67,27 +70,23 @@ const BottomSheet = props => {
|
|
|
67
70
|
useNativeDriver: false
|
|
68
71
|
}).start();
|
|
69
72
|
};
|
|
70
|
-
const fadeOut =
|
|
71
|
-
let withTimeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
73
|
+
const fadeOut = () => {
|
|
72
74
|
/*
|
|
73
75
|
withTimeout - most of the time we declare 'Close' after the animation is end.
|
|
74
76
|
In a case that the app is not active we do it without timeout. (Otherwise a race condition may occur.)
|
|
75
77
|
*/
|
|
76
78
|
setIsPanelOpened(false);
|
|
77
|
-
!withTimeout && props.onClose();
|
|
78
79
|
Animated.timing(fadeAnim, {
|
|
79
80
|
toValue: 0,
|
|
80
81
|
duration: 500,
|
|
81
82
|
useNativeDriver: false
|
|
82
|
-
}).start(
|
|
83
|
-
withTimeout && props.onClose();
|
|
84
|
-
});
|
|
83
|
+
}).start();
|
|
85
84
|
};
|
|
86
85
|
const setToContentHeight = contentHeight => {
|
|
87
86
|
Animated.timing(panelHeightValue, {
|
|
88
87
|
duration: props.animationDuration,
|
|
89
88
|
easing: Easing.quad,
|
|
90
|
-
toValue: sliderMaxHeight - contentHeight,
|
|
89
|
+
toValue: props.sliderMaxHeight - contentHeight,
|
|
91
90
|
useNativeDriver: false
|
|
92
91
|
}).start();
|
|
93
92
|
};
|
|
@@ -96,7 +95,7 @@ const BottomSheet = props => {
|
|
|
96
95
|
animationDuration
|
|
97
96
|
} = props;
|
|
98
97
|
props.onOpen();
|
|
99
|
-
if (contentHeight && currentHeight > sliderMaxHeight - contentHeight) {
|
|
98
|
+
if (contentHeight && currentHeight > props.sliderMaxHeight - contentHeight) {
|
|
100
99
|
setToContentHeight(contentHeight);
|
|
101
100
|
return;
|
|
102
101
|
}
|
|
@@ -108,7 +107,7 @@ const BottomSheet = props => {
|
|
|
108
107
|
}).start();
|
|
109
108
|
};
|
|
110
109
|
const collapse = () => {
|
|
111
|
-
if (contentHeight && currentHeight > sliderMaxHeight - contentHeight) {
|
|
110
|
+
if (contentHeight && currentHeight > props.sliderMaxHeight - contentHeight) {
|
|
112
111
|
_dismiss();
|
|
113
112
|
return;
|
|
114
113
|
}
|
|
@@ -123,25 +122,24 @@ const BottomSheet = props => {
|
|
|
123
122
|
setContentHeight(newContentHeight);
|
|
124
123
|
setToContentHeight(newContentHeight);
|
|
125
124
|
};
|
|
126
|
-
const _dismiss =
|
|
127
|
-
let withTimeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
125
|
+
const _dismiss = () => {
|
|
128
126
|
const {
|
|
129
127
|
animationDuration
|
|
130
128
|
} = props;
|
|
131
129
|
Animated.timing(panelHeightValue, {
|
|
132
130
|
duration: animationDuration,
|
|
133
131
|
easing: Easing.quad,
|
|
134
|
-
toValue: sliderMaxHeight,
|
|
132
|
+
toValue: props.sliderMaxHeight,
|
|
135
133
|
useNativeDriver: false
|
|
136
134
|
}).start(() => {
|
|
137
|
-
|
|
135
|
+
props.onClose();
|
|
138
136
|
});
|
|
139
|
-
fadeOut(
|
|
137
|
+
fadeOut();
|
|
140
138
|
};
|
|
141
139
|
const {
|
|
142
|
-
sliderMaxHeight,
|
|
143
140
|
children
|
|
144
141
|
} = props;
|
|
142
|
+
const isModal = props.nativePlace === BottomSheetNativePlaceType.modal;
|
|
145
143
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
146
144
|
style: styles.outsideContainer,
|
|
147
145
|
activeOpacity: 1,
|
|
@@ -151,10 +149,14 @@ const BottomSheet = props => {
|
|
|
151
149
|
})), /*#__PURE__*/React.createElement(Animated.View, _extends({}, _parentPanResponder.panHandlers, {
|
|
152
150
|
style: {
|
|
153
151
|
...styles.container,
|
|
154
|
-
|
|
152
|
+
borderTopLeftRadius: isModal ? 0 : styles.container.borderTopLeftRadius,
|
|
153
|
+
borderTopRightRadius: isModal ? 0 : styles.container.borderTopRightRadius,
|
|
154
|
+
height: props.sliderMaxHeight,
|
|
155
|
+
marginTop: fullScreenHeight - props.sliderMaxHeight - (!isModal && isAndroid10AndAbove ? androidStatusBarHeight : 0),
|
|
155
156
|
transform: [{
|
|
156
157
|
translateY: panelHeightValue
|
|
157
|
-
}]
|
|
158
|
+
}],
|
|
159
|
+
paddingTop: Platform.OS === 'ios' && isModal ? statusBarHeight : 0
|
|
158
160
|
}
|
|
159
161
|
}), /*#__PURE__*/React.createElement(View, {
|
|
160
162
|
style: styles.outerContent
|
|
@@ -166,18 +168,15 @@ const BottomSheet = props => {
|
|
|
166
168
|
source: CloseIcon
|
|
167
169
|
})), /*#__PURE__*/React.createElement(View, {
|
|
168
170
|
onLayout: _setSize
|
|
169
|
-
}, /*#__PURE__*/React.createElement(
|
|
170
|
-
behavior: "padding",
|
|
171
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
171
172
|
style: {
|
|
172
173
|
height: props.height
|
|
173
|
-
}
|
|
174
|
-
keyboardVerticalOffset: props.height * (1 - BOTTOM_SHEET_MAX_PERCENTAGE_SIZE)
|
|
174
|
+
}
|
|
175
175
|
}, children)))));
|
|
176
176
|
};
|
|
177
177
|
BottomSheet.propTypes = {
|
|
178
178
|
children: PropTypes.oneOfType([PropTypes.node]),
|
|
179
179
|
isOpen: PropTypes.bool,
|
|
180
|
-
sliderMaxHeight: PropTypes.number,
|
|
181
180
|
animation: PropTypes.func,
|
|
182
181
|
animationDuration: PropTypes.number,
|
|
183
182
|
onOpen: PropTypes.func,
|
|
@@ -187,7 +186,6 @@ BottomSheet.propTypes = {
|
|
|
187
186
|
BottomSheet.defaultProps = {
|
|
188
187
|
children: /*#__PURE__*/React.createElement(View, null),
|
|
189
188
|
isOpen: true,
|
|
190
|
-
sliderMaxHeight: Dimensions.get('window').height * BOTTOM_SHEET_MAX_PERCENTAGE_SIZE,
|
|
191
189
|
animationDuration: 200,
|
|
192
190
|
onOpen: () => null,
|
|
193
191
|
onClose: () => null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","useState","Animated","BackHandler","Dimensions","Easing","Image","KeyboardAvoidingView","PanResponder","TouchableOpacity","View","PropTypes","CloseIcon","BOTTOM_SHEET_MAX_PERCENTAGE_SIZE","getStylesObject","useAppStateListener","BottomSheet","props","panelHeightValue","Value","sliderMaxHeight","current","fadeAnim","styles","isPanelOpened","setIsPanelOpened","isOpen","contentHeight","setContentHeight","undefined","currentHeight","setCurrentHeight","dy","setDy","isAppActive","_parentPanResponder","create","onMoveShouldSetPanResponderCapture","_","gestureState","shouldEnableBottomSheetScroll","Math","abs","onPanResponderMove","handleWebViewScroll","expandToMaxHeightEnabled","setValue","onPanResponderRelease","collapse","setToContentHeight","expand","_dismiss","fadeIn","addEventListener","_onBackPress","id","addListener","e","value","removeEventListener","removeListener","timing","toValue","duration","useNativeDriver","start","fadeOut","withTimeout","arguments","length","onClose","animationDuration","easing","quad","onOpen","_setSize","newContentHeight","nativeEvent","layout","height","children","createElement","Fragment","style","outsideContainer","activeOpacity","onPress","animation","_extends","panHandlers","container","transform","translateY","outerContent","closeButton","source","onLayout","behavior","keyboardVerticalOffset","propTypes","oneOfType","node","bool","number","func","defaultProps","get"],"sources":["BottomSheet.tsx"],"sourcesContent":["import React, { ReactNode, useEffect, useRef, useState } from 'react';\nimport {\n Animated,\n BackHandler,\n Dimensions,\n Easing,\n Image,\n KeyboardAvoidingView,\n LayoutChangeEvent,\n PanResponder,\n TouchableOpacity,\n View,\n} from 'react-native';\nimport PropTypes from 'prop-types';\nimport { CloseIcon } from '../../assets/images';\nimport { BOTTOM_SHEET_MAX_PERCENTAGE_SIZE } from '../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';\nimport { getStylesObject } from './BottomSheet.styles';\nimport { useAppStateListener } from '../../hooks/useAppStateListener';\n\nexport interface BottomSheetProps {\n isOpen: boolean\n children: ReactNode\n sliderMaxHeight: number\n onOpen: () => void\n onClose: () => void\n height: number,\n animationDuration: number,\n expandToMaxHeightEnabled: boolean\n handleWebViewScroll: () => void\n shouldEnableBottomSheetScroll: boolean\n}\n\nconst BottomSheet = (props: BottomSheetProps) => {\n const panelHeightValue = useRef(new Animated.Value(props.sliderMaxHeight)).current;\n const fadeAnim = useRef(new Animated.Value(0)).current;\n const styles = getStylesObject(fadeAnim);\n const [isPanelOpened, setIsPanelOpened] = useState(props.isOpen);\n const [contentHeight, setContentHeight] = useState<number | undefined>(undefined);\n\n const [currentHeight, setCurrentHeight] = useState<number>(props.sliderMaxHeight);\n\n const [dy, setDy] = useState(0);\n\n const isAppActive = useAppStateListener();\n\n const _parentPanResponder = PanResponder.create({\n onMoveShouldSetPanResponderCapture: (_, gestureState) => {\n return props.shouldEnableBottomSheetScroll && Math.abs(gestureState.dy) > 10;\n },\n onPanResponderMove(_, gestureState) {\n if (props.shouldEnableBottomSheetScroll && gestureState.dy < 5) {\n props.handleWebViewScroll();\n }\n if (currentHeight + gestureState.dy < 0) return;\n if (!props.expandToMaxHeightEnabled && contentHeight && currentHeight + gestureState.dy < sliderMaxHeight - contentHeight) return;\n panelHeightValue.setValue(currentHeight + gestureState.dy);\n setDy(gestureState.dy);\n },\n onPanResponderRelease: () => {\n if (dy > 0) {\n collapse();\n } else if (!props.expandToMaxHeightEnabled) {\n contentHeight && setToContentHeight(contentHeight);\n } else {\n expand();\n }\n }\n });\n\n useEffect(() => {\n // on App Active State change reset the bottom-sheet\n setContentHeight(0);\n _dismiss(false);\n }, [isAppActive]);\n\n useEffect(() => {\n if (props.isOpen && !isPanelOpened) {\n fadeIn();\n } else if (isPanelOpened) {\n setContentHeight(0);\n _dismiss();\n }\n }, [props.isOpen]);\n\n useEffect(() => {\n BackHandler.addEventListener('hardwareBackPress', _onBackPress);\n const id = panelHeightValue.addListener(e => setCurrentHeight(e.value));\n\n return (() => {\n BackHandler.removeEventListener('hardwareBackPress', _onBackPress);\n panelHeightValue.removeListener(id);\n });\n }, []);\n\n const fadeIn = () => {\n setIsPanelOpened(true);\n Animated.timing(fadeAnim, {\n toValue: 0.3,\n duration: 500,\n useNativeDriver: false\n }).start();\n };\n\n const fadeOut = (withTimeout = true) => {\n /*\n withTimeout - most of the time we declare 'Close' after the animation is end.\n In a case that the app is not active we do it without timeout. (Otherwise a race condition may occur.)\n */\n setIsPanelOpened(false);\n !withTimeout && props.onClose();\n Animated.timing(fadeAnim, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false\n }).start(() => {\n withTimeout && props.onClose();\n });\n };\n\n const setToContentHeight = (contentHeight: number) => {\n Animated.timing(panelHeightValue, {\n duration: props.animationDuration,\n easing: Easing.quad,\n toValue: sliderMaxHeight - contentHeight,\n useNativeDriver: false,\n }).start();\n };\n\n const expand = () => {\n const { animationDuration } = props;\n props.onOpen();\n if (contentHeight && currentHeight > (sliderMaxHeight - contentHeight)) {\n setToContentHeight(contentHeight);\n return;\n }\n\n Animated.timing(panelHeightValue, {\n duration: animationDuration,\n easing: Easing.quad,\n toValue: 0,\n useNativeDriver: false,\n }).start();\n };\n\n const collapse = () => {\n if (contentHeight && currentHeight > (sliderMaxHeight - contentHeight)) {\n _dismiss();\n return;\n }\n contentHeight && setToContentHeight(contentHeight);\n };\n\n const _onBackPress = () => {\n isPanelOpened && collapse();\n return isPanelOpened;\n };\n\n const _setSize = (e: LayoutChangeEvent) => {\n const newContentHeight = e.nativeEvent.layout.height;\n\n setContentHeight(newContentHeight);\n setToContentHeight(newContentHeight);\n };\n\n const _dismiss = (withTimeout = true) => {\n const { animationDuration } = props;\n Animated.timing(panelHeightValue, {\n duration: animationDuration,\n easing: Easing.quad,\n toValue: sliderMaxHeight,\n useNativeDriver: false,\n }).start(() => {\n null;\n });\n fadeOut(withTimeout);\n };\n\n const {\n sliderMaxHeight,\n children,\n } = props;\n\n return (\n <>\n <TouchableOpacity\n style={styles.outsideContainer} activeOpacity={1}\n onPress={() => _dismiss()}\n >\n <Animated.View\n style={styles.animation}\n >\n </Animated.View>\n </TouchableOpacity>\n <Animated.View\n {..._parentPanResponder.panHandlers}\n style={{\n ...styles.container,\n height: sliderMaxHeight,\n transform: [\n { translateY: panelHeightValue },\n ],\n }}\n >\n <View\n style={styles.outerContent}\n >\n <TouchableOpacity\n activeOpacity={1}\n style={styles.closeButton}\n onPress={() => _dismiss()}\n >\n <Image source={CloseIcon} />\n </TouchableOpacity>\n\n <View\n onLayout={_setSize}\n >\n <KeyboardAvoidingView\n behavior=\"padding\"\n style={{ height: props.height }}\n keyboardVerticalOffset={props.height * (1 - BOTTOM_SHEET_MAX_PERCENTAGE_SIZE)}\n >\n {children}\n </KeyboardAvoidingView>\n </View>\n </View>\n </Animated.View>\n </>\n );\n};\n\nBottomSheet.propTypes = {\n children: PropTypes.oneOfType([PropTypes.node]),\n isOpen: PropTypes.bool,\n sliderMaxHeight: PropTypes.number,\n animation: PropTypes.func,\n animationDuration: PropTypes.number,\n onOpen: PropTypes.func,\n onClose: PropTypes.func,\n expandToMaxHeightEnabled: PropTypes.bool\n};\n\nBottomSheet.defaultProps = {\n children: <View />,\n isOpen: true,\n sliderMaxHeight: Dimensions.get('window').height * BOTTOM_SHEET_MAX_PERCENTAGE_SIZE,\n animationDuration: 200,\n onOpen: () => null,\n onClose: () => null,\n expandToMaxHeightEnabled: false\n};\n\nexport default BottomSheet;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAeC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACrE,SACEC,QAAQ,EACRC,WAAW,EACXC,UAAU,EACVC,MAAM,EACNC,KAAK,EACLC,oBAAoB,EAEpBC,YAAY,EACZC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AACrB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,gCAAgC,QAAQ,0EAA0E;AAC3H,SAASC,eAAe,QAAQ,sBAAsB;AACtD,SAASC,mBAAmB,QAAQ,iCAAiC;AAerE,MAAMC,WAAW,GAAIC,KAAuB,IAAK;EAC/C,MAAMC,gBAAgB,GAAGlB,MAAM,CAAC,IAAIE,QAAQ,CAACiB,KAAK,CAACF,KAAK,CAACG,eAAe,CAAC,CAAC,CAACC,OAAO;EAClF,MAAMC,QAAQ,GAAGtB,MAAM,CAAC,IAAIE,QAAQ,CAACiB,KAAK,CAAC,CAAC,CAAC,CAAC,CAACE,OAAO;EACtD,MAAME,MAAM,GAAGT,eAAe,CAACQ,QAAQ,CAAC;EACxC,MAAM,CAACE,aAAa,EAAEC,gBAAgB,CAAC,GAAGxB,QAAQ,CAACgB,KAAK,CAACS,MAAM,CAAC;EAChE,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAG3B,QAAQ,CAAqB4B,SAAS,CAAC;EAEjF,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAG9B,QAAQ,CAASgB,KAAK,CAACG,eAAe,CAAC;EAEjF,MAAM,CAACY,EAAE,EAAEC,KAAK,CAAC,GAAGhC,QAAQ,CAAC,CAAC,CAAC;EAE/B,MAAMiC,WAAW,GAAGnB,mBAAmB,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,GAAG,CAAC,QAAQ,CAAC,CAAC3B,MAAM,GAAGlE,gCAAgC;EACnF0D,iBAAiB,EAAE,GAAG;EACtBG,MAAM,EAAEA,CAAA,KAAM,IAAI;EAClBJ,OAAO,EAAEA,CAAA,KAAM,IAAI;EACnBzB,wBAAwB,EAAE;AAC5B,CAAC;AAED,eAAe7B,WAAW"}
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","useState","Animated","BackHandler","Easing","Image","PanResponder","Platform","TouchableOpacity","View","PropTypes","CloseIcon","androidStatusBarHeight","fullScreenHeight","isAndroid10AndAbove","statusBarHeight","getStylesObject","useAppStateListener","BottomSheetNativePlaceType","BottomSheet","props","isStatic","nativePlace","modal","panelHeightValue","Value","sliderMaxHeight","current","fadeAnim","styles","isPanelOpened","setIsPanelOpened","isOpen","contentHeight","setContentHeight","undefined","currentHeight","setCurrentHeight","dy","setDy","isAppActive","_parentPanResponder","create","onMoveShouldSetPanResponderCapture","_","gestureState","shouldEnableBottomSheetScroll","Math","abs","onPanResponderMove","handleWebViewScroll","expandToMaxHeightEnabled","setValue","onPanResponderRelease","collapse","setToContentHeight","expand","_dismiss","fadeIn","addEventListener","_onBackPress","id","addListener","e","value","removeEventListener","removeListener","timing","toValue","duration","useNativeDriver","start","fadeOut","animationDuration","easing","quad","onOpen","_setSize","newContentHeight","nativeEvent","layout","height","onClose","children","isModal","createElement","Fragment","style","outsideContainer","activeOpacity","onPress","animation","_extends","panHandlers","container","borderTopLeftRadius","borderTopRightRadius","marginTop","transform","translateY","paddingTop","OS","outerContent","closeButton","source","onLayout","propTypes","oneOfType","node","bool","func","number","defaultProps"],"sourceRoot":"../../../../src","sources":["helpers/BottomSheet/BottomSheet.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAeC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACrE,SACEC,QAAQ,EACRC,WAAW,EACXC,MAAM,EACNC,KAAK,EAELC,YAAY,EACZC,QAAQ,EACRC,gBAAgB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G;EACtBG,MAAM,EAAEA,CAAA,KAAM,IAAI;EAClBM,OAAO,EAAEA,CAAA,KAAM,IAAI;EACnB/B,wBAAwB,EAAE;AAC5B,CAAC;AAED,eAAehC,WAAW"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BOTTOM_SHEET_MAX_PERCENTAGE_SIZE } from '../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
3
2
|
import { VARIABLES } from '../../styles/variables';
|
|
4
3
|
|
|
5
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -20,7 +19,6 @@ export const getStylesObject = fadeAnim => {
|
|
|
20
19
|
container: {
|
|
21
20
|
position: 'relative',
|
|
22
21
|
flex: 1,
|
|
23
|
-
marginTop: Dimensions.get('window').height * (1 - BOTTOM_SHEET_MAX_PERCENTAGE_SIZE),
|
|
24
22
|
shadowColor: VARIABLES.COLORS.BLACK,
|
|
25
23
|
shadowOffset: {
|
|
26
24
|
width: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["StyleSheet","VARIABLES","getStylesObject","fadeAnim","create","outsideContainer","position","top","bottom","right","left","animation","backgroundColor","flex","opacity","container","shadowColor","COLORS","BLACK","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderTopLeftRadius","borderTopRightRadius","WHITE","overflow","lineContainer","alignItems","line","borderRadius","marginTop","SILVER_FLAKE","outerContent","innerContent","closeButton","display","justifyContent","padding","zIndex"],"sourceRoot":"../../../../src","sources":["helpers/BottomSheet/BottomSheet.styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,SAAS,QAAQ,wBAAwB;;AAElD;AACA,OAAO,MAAMC,eAAe,GAAIC,QAAa,IAAK;EAChD,OAAOH,UAAU,CAACI,MAAM,CAAC;IACvBC,gBAAgB,EAAE;MAChBC,QAA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ACvCK,YAAY,EAAE,EAAE;MAChBQ,OAAO,EAAE,CAAC;MACVjC,GAAG,EAAE,EAAE;MACPE,KAAK,EAAE,EAAE;MACTgC,MAAM,EAAE;IACV;EACF,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["UNVPErrorType","isUNVPError","error","isUNVPErrorType","type","Object","values","includes","isUNNativePromiseReject","promiseRejectToUNVPErrorType","parsedError","JSON","parse","message"],"
|
|
1
|
+
{"version":3,"names":["UNVPErrorType","isUNVPError","error","isUNVPErrorType","type","Object","values","includes","isUNNativePromiseReject","promiseRejectToUNVPErrorType","parsedError","JSON","parse","message"],"sourceRoot":"../../../../src","sources":["helpers/pushProvisioningService/helpers.ts"],"mappings":"AAAA;AACA,SAA2CA,aAAa,QAAQ,SAAS;AAEzE,OAAO,MAAMC,WAAW,GAAIC,KAAU,IAAyB;EAC7D,OAAO,MAAM,IAAIA,KAAK,IACpB,aAAa,IAAIA,KAAK,IACtB,MAAM,IAAIA,KAAK,IACfC,eAAe,CAACD,KAAK,CAACE,IAAI,CAAC,IAC3B,eAAe,IAAIF,KAAK;AAC5B,CAAC;AAED,MAAMC,eAAe,GAAIC,IAAS,IAA4B;EAC5D,OAAOC,MAAM,CAACC,MAAM,CAACN,aAAa,CAAC,CAACO,QAAQ,CAACH,IAAI,CAAC;AACpD,CAAC;AAED,OAAO,MAAMI,uBAAuB,GAAIN,KAAU,IAAqC;EACrF,OAAO,MAAM,IAAIA,KAAK,IAAI,SAAS,IAAIA,KAAK;AAC9C,CAAC;AAED,OAAO,MAAMO,4BAA4B,GAAIP,KAAU,IAA2B;EAChF;EACA,IAAI,CAACM,uBAAuB,CAACN,KAAK,CAAC,EAAE;IACnC,OAAO,IAAI;EACb;EACA,MAAMQ,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACV,KAAK,CAACW,OAAO,CAAC;EAC7C;EACA,IAAI,CAACZ,WAAW,CAACS,WAAW,CAAC,EAAE;IAC7B,OAAO,IAAI;EACb;EACA,OAAOA,WAAW,CAACN,IAAI;AACzB,CAAC"}
|
|
@@ -56,10 +56,9 @@ export const useCardWallet = cardId => {
|
|
|
56
56
|
|
|
57
57
|
// handle unit network api errors
|
|
58
58
|
if (isUNError(error)) {
|
|
59
|
-
var _errors$;
|
|
60
59
|
const errors = error.errors;
|
|
61
60
|
// errors will return in an array but hold only a single error element
|
|
62
|
-
if (
|
|
61
|
+
if (errors[0]?.code === UNErrorCodes.INVALID_NONCE) {
|
|
63
62
|
dispatch(setSignedNonce(null));
|
|
64
63
|
}
|
|
65
64
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","useRef","UNWalletCode","UNWalletName","UnitSDK","getMobileWalletPayload","useSelector","useDispatch","selectWallet","setSignedNonce","useLaunchInitialize","UNVPErrorType","promiseRejectToUNVPErrorType","UNErrorCodes","isUNError","useCardWallet","cardId","currentUNWallet","setCurrentUNWallet","signedNonce","initializePushProvisioning","dispatch","isRecoveringSignedNonceRef","shouldRecoverVPSDKForError","errorType","recoveringTypes","PayloadDecryptionFailed","SessionExpired","InvalidNonce","includes","getEncryptedPayload","env","getEnv","customerToken","getCustomerToken","encryptedPayload","getCardWalletData","currentProvisioningModule","getPushProvisionModule","walletsResponse","launchGetWallets","JSON","stringify","encPayload","unWallet","parseWalletsResponse","error","console","current","
|
|
1
|
+
{"version":3,"names":["useEffect","useState","useRef","UNWalletCode","UNWalletName","UnitSDK","getMobileWalletPayload","useSelector","useDispatch","selectWallet","setSignedNonce","useLaunchInitialize","UNVPErrorType","promiseRejectToUNVPErrorType","UNErrorCodes","isUNError","useCardWallet","cardId","currentUNWallet","setCurrentUNWallet","signedNonce","initializePushProvisioning","dispatch","isRecoveringSignedNonceRef","shouldRecoverVPSDKForError","errorType","recoveringTypes","PayloadDecryptionFailed","SessionExpired","InvalidNonce","includes","getEncryptedPayload","env","getEnv","customerToken","getCustomerToken","encryptedPayload","getCardWalletData","currentProvisioningModule","getPushProvisionModule","walletsResponse","launchGetWallets","JSON","stringify","encPayload","unWallet","parseWalletsResponse","error","console","current","errors","code","INVALID_NONCE","parsedWalletsResponse","parse","wallets","Apple","name","status","googleWallet","filter","wallet","Google","Error"],"sourceRoot":"../../../../../src","sources":["helpers/pushProvisioningService/hooks/useCardWallet.ts"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,OAAO;AACnD,SAASC,YAAY,EAAEC,YAAY,QAAQ,oCAAoC;AAE/E,SAASC,OAAO,QAAQ,wCAAwC;AAChE,SAASC,sBAAsB,QAAQ,qDAAqD;AAC5F,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,YAAY,EAAEC,cAAc,QAAQ,uCAAuC;AACpF,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,4BAA4B,QAAQ,YAAY;AACzD,SAASC,YAAY,QAAqB,mCAAmC;AAC7E,SAASC,SAAS,QAAQ,sCAAsC;AAMhE,OAAO,MAAMC,aAAa,GAAIC,MAAc,IAAK;EAC/C,MAAM,CAACC,eAAe,EAAEC,kBAAkB,CAAC,GAAGlB,QAAQ,CAAW,CAAC;EAClE,MAAM;IAAEmB;EAAY,CAAC,GAAGb,WAAW,CAACE,YAAY,CAAC;EACjD,MAAM;IAAEY;EAA2B,CAAC,GAAGV,mBAAmB,CAAC,CAAC;EAC5D,MAAMW,QAAQ,GAAGd,WAAW,CAAC,CAAC;EAC9B,MAAMe,0BAA0B,GAAGrB,MAAM,CAAU,KAAK,CAAC;EAEzD,MAAMsB,0BAA0B,GAAIC,SAAwB,IAAK;IAC/D,MAAMC,eAAe,GAAG,CAACd,aAAa,CAACe,uBAAuB,EAAEf,aAAa,CAACgB,cAAc,EAAEhB,aAAa,CAACiB,YAAY,CAAC;IACzH,OAAOH,eAAe,CAACI,QAAQ,CAACL,SAAS,CAAC;EAC5C,CAAC;EAED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IAAI,EAAEhD,YAAY,CAAC2D,MAAM;QAAEJ,MAAM,EAAEC,YAAY,CAAC,CAAC,CAAC,CAACD;MAAO,CAAC;IAClG;EACF,CAAC,CAAC,OAAOX,KAAK,EAAE;IACd,MAAM,IAAIgB,KAAK,CAAC,+BAA+B,CAAC;EAClD;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["UnitSDK","useDispatch","setSignedNonce","useLaunchInitialize","dispatch","initializePushProvisioning","pushProvisioningModule","getPushProvisionModule","console","error","response","launchInitialize","log","signedNonce","JSON","parse"],"
|
|
1
|
+
{"version":3,"names":["UnitSDK","useDispatch","setSignedNonce","useLaunchInitialize","dispatch","initializePushProvisioning","pushProvisioningModule","getPushProvisionModule","console","error","response","launchInitialize","log","signedNonce","JSON","parse"],"sourceRoot":"../../../../../src","sources":["helpers/pushProvisioningService/hooks/useLaunchInitialize.ts"],"mappings":"AAAA,SAASA,OAAO,QAAQ,wCAAwC;AAChE,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,cAAc,QAAQ,uCAAuC;AAEtE,OAAO,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;EACvC,MAAMC,QAAQ,GAAGH,WAAW,CAAC,CAAC;EAE9B,MAAMI,0BAA0B,GAAG,MAAAA,CAAA,KAAY;IAC7C,MAAMC,sBAAsB,GAAGN,OAAO,CAACO,sBAAsB,CAAC,CAAC;IAC/D,IAAI,CAACD,sBAAsB,EAAE;MAC3BE,OAAO,CAACC,KAAK,CAAC,kCAAkC,CAAC;MACjD;IACF;IACA,IAAI;MACF,MAAMC,QAAQ,GAAG,MAAMJ,sBAAsB,CAACK,gBAAgB,CAAC,CAAC;MAChEH,OAAO,CAACI,GAAG,CAAE,uEAAsEF,QAAS,EAAC,CAAC;MAC9F,MAAMG,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACL,QAAQ,CAAC,CAACG,WAAW;MACpDT,QAAQ,CAACF,cAAc,CAACW,WAAW,CAAC,CAAC;IACvC,CAAC,CAAC,OAAOJ,KAAK,EAAE;MACd;MACAD,OAAO,CAACC,KAAK,CAACA,KAAK,CAAC;IACtB;EACF,CAAC;EAED,OAAO;IACLJ;EACF,CAAC;AAEH,CAAC"}
|
|
@@ -4,12 +4,12 @@ export const launchStartCardProvisioning = async wallet => {
|
|
|
4
4
|
if (!pushProvisioningModule) return;
|
|
5
5
|
try {
|
|
6
6
|
const response = await pushProvisioningModule.launchStartCardProvisioning(JSON.stringify({
|
|
7
|
-
walletCode: wallet
|
|
8
|
-
walletName: wallet
|
|
7
|
+
walletCode: wallet?.code,
|
|
8
|
+
walletName: wallet?.name
|
|
9
9
|
}));
|
|
10
10
|
return response;
|
|
11
11
|
} catch (error) {
|
|
12
|
-
|
|
12
|
+
console.log('ERROR -pushProvisioningModule.launchStartCardProvisioning: ', error);
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=startProvisioning.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["UnitSDK","launchStartCardProvisioning","wallet","pushProvisioningModule","getPushProvisionModule","response","JSON","stringify","walletCode","code","walletName","name","error","
|
|
1
|
+
{"version":3,"names":["UnitSDK","launchStartCardProvisioning","wallet","pushProvisioningModule","getPushProvisionModule","response","JSON","stringify","walletCode","code","walletName","name","error","console","log"],"sourceRoot":"../../../../src","sources":["helpers/pushProvisioningService/startProvisioning.ts"],"mappings":"AACA,SAASA,OAAO,QAAQ,qCAAqC;AAE7D,OAAO,MAAMC,2BAA2B,GAAG,MAAOC,MAAuB,IAAK;EAC5E,MAAMC,sBAAsB,GAAGH,OAAO,CAACI,sBAAsB,CAAC,CAAC;EAC/D,IAAI,CAACD,sBAAsB,EAAE;EAE7B,IAAI;IACF,MAAME,QAAQ,GAAG,MAAMF,sBAAsB,CAACF,2BAA2B,CACvEK,IAAI,CAACC,SAAS,CAAC;MACbC,UAAU,EAAEN,MAAM,EAAEO,IAAI;MACxBC,UAAU,EAAER,MAAM,EAAES;IACtB,CAAC,CAAC,CAAC;IACL,OAAON,QAAQ;EACjB,CAAC,CAAC,OAAOO,KAAK,EAAE;IACdC,OAAO,CAACC,GAAG,CAAC,6DAA6D,EAAEF,KAAK,CAAC;EACnF;AACF,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export let UNVPErrorType
|
|
2
|
-
(function (UNVPErrorType) {
|
|
1
|
+
export let UNVPErrorType = /*#__PURE__*/function (UNVPErrorType) {
|
|
3
2
|
UNVPErrorType["EmptyAppId"] = "EmptyAppId";
|
|
4
3
|
UNVPErrorType["DeviceAuthenticationFailed"] = "DeviceAuthenticationFailed";
|
|
5
4
|
UNVPErrorType["DeviceRootDetection"] = "DeviceRootDetection";
|
|
@@ -30,5 +29,6 @@ export let UNVPErrorType;
|
|
|
30
29
|
UNVPErrorType["TLCMInvalidRequest"] = "TLCMInvalidRequest";
|
|
31
30
|
UNVPErrorType["TLCMUpdateStatusNotAllowed"] = "TLCMUpdateStatusNotAllowed";
|
|
32
31
|
UNVPErrorType["TLCMTokenNotFound"] = "TLCMTokenNotFound";
|
|
33
|
-
|
|
32
|
+
return UNVPErrorType;
|
|
33
|
+
}({});
|
|
34
34
|
//# sourceMappingURL=types.js.map
|