react-native-unit-components 1.9.1 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +36 -88
- package/android/gradle.properties +2 -2
- package/android/src/main/AndroidManifestNew.xml +14 -0
- package/android/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +2 -2
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsEvent.kt +3 -3
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +9 -12
- package/android/src/main/java/com/unitreactnativecomponents/appInfo/UNAppInfoModule.kt +59 -0
- package/android/src/main/java/com/unitreactnativecomponents/extensions/ContextExtensions.kt +35 -0
- package/android/src/main/java/com/unitreactnativecomponents/visapresentation/UNGooglePayView.kt +147 -152
- package/ios/Extensions/Bundle+Extensions.swift +23 -0
- package/ios/UNAppInfo/IOSAppInfo.swift +47 -0
- package/ios/UNAppInfo/UNAppInfoExportModule.m +5 -2
- package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +34 -0
- package/lib/commonjs/assets/images/index.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +15 -6
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +13 -2
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/index.js +2 -2
- package/lib/commonjs/components/UNACHCreditComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +15 -6
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +12 -2
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/index.js +2 -2
- package/lib/commonjs/components/UNACHDebitComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +41 -21
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js +9 -8
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/index.js +2 -2
- package/lib/commonjs/components/UNAccountComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +28 -15
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js +8 -2
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/index.js +8 -2
- package/lib/commonjs/components/UNActivityComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +13 -4
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js +11 -4
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/index.js +2 -2
- package/lib/commonjs/components/UNBookPaymentComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +13 -3
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js +156 -246
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +13 -16
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +50 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js +17 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +166 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js +17 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/index.js +15 -4
- package/lib/commonjs/components/UNBottomSheetComponent/components/index.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +14 -12
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js +7 -5
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/index.js +2 -2
- package/lib/commonjs/components/UNCardComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +14 -4
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js +7 -1
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/index.js +2 -2
- package/lib/commonjs/components/UNCheckDepositComponent/index.js.map +1 -1
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +85 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +42 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/index.js +21 -0
- package/lib/commonjs/components/UNMultipleCardsComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +61 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +15 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/index.js +21 -0
- package/lib/commonjs/components/UNNextRepaymentComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +61 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js +15 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js.map +1 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/index.js +21 -0
- package/lib/commonjs/components/UNProgramDetailsComponent/index.js.map +1 -0
- package/lib/commonjs/components/index.js +33 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/custom.d.js.map +1 -1
- package/lib/commonjs/flows/UNFlows.js +1 -1
- package/lib/commonjs/flows/UNFlows.js.map +1 -1
- package/lib/commonjs/flows/card/UNCardFlows.js +27 -23
- package/lib/commonjs/flows/card/UNCardFlows.js.map +1 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +26 -29
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.styles.js +0 -2
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.styles.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/helpers.js +34 -0
- package/lib/commonjs/helpers/pushProvisioningService/helpers.js.map +1 -0
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js +31 -2
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/startProvisioning.js +3 -3
- package/lib/commonjs/helpers/pushProvisioningService/startProvisioning.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/types.js +40 -0
- package/lib/commonjs/helpers/pushProvisioningService/types.js.map +1 -0
- package/lib/commonjs/helpers/store/helpers.js.map +1 -1
- package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
- package/lib/commonjs/hooks/useListenerToEvent.js +26 -0
- package/lib/commonjs/hooks/useListenerToEvent.js.map +1 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/bottomSheetMessage.js +7 -9
- package/lib/commonjs/messages/nativeMessages/bottomSheetMessage.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/cardMessage.js +3 -4
- package/lib/commonjs/messages/nativeMessages/cardMessage.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/index.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/sdkMessage.js +3 -4
- package/lib/commonjs/messages/nativeMessages/sdkMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/accountMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/accountMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/achCreditMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/activityMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/activityMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/bookPaymentMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/cardMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/cardMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/checkMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/checkMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/index.js.map +1 -1
- package/lib/commonjs/messages/webMessages/multipleCardsMessage.js +11 -0
- package/lib/commonjs/messages/webMessages/multipleCardsMessage.js.map +1 -0
- package/lib/commonjs/messages/webMessages/onLoadMessage.js +6 -5
- package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/pageMessage.js +3 -4
- package/lib/commonjs/messages/webMessages/pageMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/paymentsMessage.js +5 -4
- package/lib/commonjs/messages/webMessages/paymentsMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/unitMessages.js +9 -6
- package/lib/commonjs/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.js.map +1 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +79 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js +20 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js.map +1 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js +14 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js.map +1 -0
- package/lib/commonjs/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.js +1 -2
- package/lib/commonjs/nativeComponents/UNAddToWallet/UnitAddToWalletButton.js.map +1 -0
- package/lib/commonjs/networking/common/UNNetworkConstants.js +2 -4
- package/lib/commonjs/networking/common/UNNetworkConstants.js.map +1 -1
- package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js +27 -3
- package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyHtml.js +1 -2
- package/lib/commonjs/scripts/html/bodyHtml.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyScript.js +46 -32
- package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
- package/lib/commonjs/scripts/html/fontFaces.js +2 -3
- package/lib/commonjs/scripts/html/fontFaces.js.map +1 -1
- package/lib/commonjs/slices/BottomSheetSlice.js +74 -0
- package/lib/commonjs/slices/BottomSheetSlice.js.map +1 -0
- package/lib/commonjs/slices/ConfigurationSlice.js +35 -0
- package/lib/commonjs/slices/ConfigurationSlice.js.map +1 -0
- package/lib/commonjs/slices/SharedEventsSlice.js +29 -0
- package/lib/commonjs/slices/SharedEventsSlice.js.map +1 -0
- package/lib/commonjs/slices/pushProvisioningSlice.js +1 -2
- package/lib/commonjs/slices/pushProvisioningSlice.js.map +1 -1
- package/lib/commonjs/store/index.js.map +1 -1
- package/lib/commonjs/store/store.js +8 -3
- package/lib/commonjs/store/store.js.map +1 -1
- package/lib/commonjs/styles/fonts.js.map +1 -1
- package/lib/commonjs/styles/variables.js +5 -3
- package/lib/commonjs/styles/variables.js.map +1 -1
- package/lib/commonjs/types/internal/bottomSheet.types.js +22 -7
- package/lib/commonjs/types/internal/bottomSheet.types.js.map +1 -1
- package/lib/commonjs/types/internal/errorHelpers.js +20 -0
- package/lib/commonjs/types/internal/errorHelpers.js.map +1 -0
- package/lib/commonjs/types/internal/webComponent.types.js +9 -8
- package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
- package/lib/commonjs/types/shared/account.types.js +19 -16
- package/lib/commonjs/types/shared/account.types.js.map +1 -1
- package/lib/commonjs/types/shared/achCredit.types.js.map +1 -1
- package/lib/commonjs/types/shared/activity.types.js +6 -0
- package/lib/commonjs/types/shared/activity.types.js.map +1 -1
- package/lib/commonjs/types/shared/authorization.types.js.map +1 -1
- package/lib/commonjs/types/shared/bookPayment.types.js.map +1 -1
- package/lib/commonjs/types/shared/card.types.js +13 -5
- package/lib/commonjs/types/shared/card.types.js.map +1 -1
- package/lib/commonjs/types/shared/checkDeposit.types.js +3 -4
- package/lib/commonjs/types/shared/checkDeposit.types.js.map +1 -1
- package/lib/commonjs/types/shared/error.types.js +28 -0
- package/lib/commonjs/types/shared/error.types.js.map +1 -0
- package/lib/commonjs/types/shared/fonts.types.js +3 -4
- package/lib/commonjs/types/shared/fonts.types.js.map +1 -1
- package/lib/commonjs/types/shared/index.js +22 -0
- package/lib/commonjs/types/shared/index.js.map +1 -1
- package/lib/commonjs/types/shared/multipleCards.types.js +12 -0
- package/lib/commonjs/types/shared/multipleCards.types.js.map +1 -0
- package/lib/commonjs/types/shared/onLoadResponse.types.js +4 -0
- package/lib/commonjs/types/shared/onLoadResponse.types.js.map +1 -1
- package/lib/commonjs/types/shared/payments.types.js +9 -5
- package/lib/commonjs/types/shared/payments.types.js.map +1 -1
- package/lib/commonjs/types/shared/repayment.types.js +2 -0
- package/lib/commonjs/types/shared/repayment.types.js.map +1 -0
- package/lib/commonjs/types/shared/transactions.types.js +6 -8
- package/lib/commonjs/types/shared/transactions.types.js.map +1 -1
- package/lib/commonjs/types/shared/types.js.map +1 -1
- package/lib/commonjs/types/shared/versioning.types.js +4 -4
- package/lib/commonjs/types/shared/versioning.types.js.map +1 -1
- package/lib/commonjs/types/shared/wallet.types.js +9 -12
- package/lib/commonjs/types/shared/wallet.types.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdk.api.js +6 -13
- package/lib/commonjs/unitSdkManager/UnitSdk.api.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +2 -3
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js +56 -75
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
- package/lib/commonjs/unitSdkManager/unitUiManager/unitUiManager.js +4 -7
- package/lib/commonjs/unitSdkManager/unitUiManager/unitUiManager.js.map +1 -1
- package/lib/commonjs/utils/AppInfo.js +49 -0
- package/lib/commonjs/utils/AppInfo.js.map +1 -0
- package/lib/commonjs/utils/SDKInfo.js +13 -0
- package/lib/commonjs/utils/SDKInfo.js.map +1 -0
- package/lib/commonjs/utils/webVersioningStrategy.utils.js +7 -0
- package/lib/commonjs/utils/webVersioningStrategy.utils.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.js +40 -36
- package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js +19 -1
- package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/commonjs/webComponent/html.js +2 -4
- package/lib/commonjs/webComponent/html.js.map +1 -1
- package/lib/module/assets/images/index.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +12 -2
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +13 -2
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/index.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +12 -2
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +12 -2
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/index.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js +40 -17
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js +10 -8
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/module/components/UNAccountComponent/index.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js +29 -14
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js +8 -2
- package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
- package/lib/module/components/UNActivityComponent/index.js +1 -1
- package/lib/module/components/UNActivityComponent/index.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +10 -0
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js +11 -4
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/index.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +12 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js +151 -240
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +11 -14
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +42 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js +2 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +158 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js +2 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/index.js +2 -1
- package/lib/module/components/UNBottomSheetComponent/components/index.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/index.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.js +12 -8
- package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js +7 -5
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/module/components/UNCardComponent/index.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +11 -0
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js +7 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/index.js.map +1 -1
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +77 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +34 -0
- package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -0
- package/lib/module/components/UNMultipleCardsComponent/index.js +2 -0
- package/lib/module/components/UNMultipleCardsComponent/index.js.map +1 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +53 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +8 -0
- package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -0
- package/lib/module/components/UNNextRepaymentComponent/index.js +2 -0
- package/lib/module/components/UNNextRepaymentComponent/index.js.map +1 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +53 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js +8 -0
- package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js.map +1 -0
- package/lib/module/components/UNProgramDetailsComponent/index.js +2 -0
- package/lib/module/components/UNProgramDetailsComponent/index.js.map +1 -0
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/custom.d.js.map +1 -1
- package/lib/module/flows/UNFlows.js +1 -1
- package/lib/module/flows/UNFlows.js.map +1 -1
- package/lib/module/flows/card/UNCardFlows.js +28 -23
- package/lib/module/flows/card/UNCardFlows.js.map +1 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.js +25 -27
- package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.styles.js +1 -3
- package/lib/module/helpers/BottomSheet/BottomSheet.styles.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/helpers.js +24 -0
- package/lib/module/helpers/pushProvisioningService/helpers.js.map +1 -0
- package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js +34 -5
- package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/startProvisioning.js +3 -3
- package/lib/module/helpers/pushProvisioningService/startProvisioning.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/types.js +34 -0
- package/lib/module/helpers/pushProvisioningService/types.js.map +1 -0
- package/lib/module/helpers/store/helpers.js.map +1 -1
- package/lib/module/hooks/useAppStateListener.js.map +1 -1
- package/lib/module/hooks/useListenerToEvent.js +19 -0
- package/lib/module/hooks/useListenerToEvent.js.map +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/messages/nativeMessages/bottomSheetMessage.js +7 -7
- package/lib/module/messages/nativeMessages/bottomSheetMessage.js.map +1 -1
- package/lib/module/messages/nativeMessages/cardMessage.js +3 -3
- package/lib/module/messages/nativeMessages/cardMessage.js.map +1 -1
- package/lib/module/messages/nativeMessages/index.js.map +1 -1
- package/lib/module/messages/nativeMessages/sdkMessage.js +3 -3
- package/lib/module/messages/nativeMessages/sdkMessage.js.map +1 -1
- package/lib/module/messages/webMessages/accountMessage.js +3 -3
- package/lib/module/messages/webMessages/accountMessage.js.map +1 -1
- package/lib/module/messages/webMessages/achCreditMessage.js.map +1 -1
- package/lib/module/messages/webMessages/activityMessage.js +3 -3
- package/lib/module/messages/webMessages/activityMessage.js.map +1 -1
- package/lib/module/messages/webMessages/bookPaymentMessage.js.map +1 -1
- package/lib/module/messages/webMessages/cardMessage.js +3 -3
- package/lib/module/messages/webMessages/cardMessage.js.map +1 -1
- package/lib/module/messages/webMessages/checkMessage.js +3 -3
- package/lib/module/messages/webMessages/checkMessage.js.map +1 -1
- package/lib/module/messages/webMessages/index.js.map +1 -1
- package/lib/module/messages/webMessages/multipleCardsMessage.js +5 -0
- package/lib/module/messages/webMessages/multipleCardsMessage.js.map +1 -0
- package/lib/module/messages/webMessages/onLoadMessage.js +6 -4
- package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
- package/lib/module/messages/webMessages/pageMessage.js +3 -3
- package/lib/module/messages/webMessages/pageMessage.js.map +1 -1
- package/lib/module/messages/webMessages/paymentsMessage.js +5 -3
- package/lib/module/messages/webMessages/paymentsMessage.js.map +1 -1
- package/lib/module/messages/webMessages/unitMessages.js +8 -4
- package/lib/module/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +70 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js +12 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js +2 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js.map +1 -0
- package/lib/module/nativeComponents/UNAddToWallet/UnitAddToWalletButton.js.map +1 -0
- package/lib/module/networking/common/UNNetworkConstants.js.map +1 -1
- package/lib/module/networking/requests/UNWalletPayloadRequest.js +27 -3
- package/lib/module/networking/requests/UNWalletPayloadRequest.js.map +1 -1
- package/lib/module/scripts/html/bodyHtml.js.map +1 -1
- package/lib/module/scripts/html/bodyScript.js +34 -8
- package/lib/module/scripts/html/bodyScript.js.map +1 -1
- package/lib/module/scripts/html/fontFaces.js +2 -3
- package/lib/module/scripts/html/fontFaces.js.map +1 -1
- package/lib/module/slices/BottomSheetSlice.js +59 -0
- package/lib/module/slices/BottomSheetSlice.js.map +1 -0
- package/lib/module/slices/ConfigurationSlice.js +25 -0
- package/lib/module/slices/ConfigurationSlice.js.map +1 -0
- package/lib/module/slices/SharedEventsSlice.js +22 -0
- package/lib/module/slices/SharedEventsSlice.js.map +1 -0
- package/lib/module/slices/pushProvisioningSlice.js.map +1 -1
- package/lib/module/store/index.js.map +1 -1
- package/lib/module/store/store.js +7 -1
- package/lib/module/store/store.js.map +1 -1
- package/lib/module/styles/fonts.js.map +1 -1
- package/lib/module/styles/variables.js +4 -1
- package/lib/module/styles/variables.js.map +1 -1
- package/lib/module/types/internal/bottomSheet.types.js +21 -5
- package/lib/module/types/internal/bottomSheet.types.js.map +1 -1
- package/lib/module/types/internal/errorHelpers.js +12 -0
- package/lib/module/types/internal/errorHelpers.js.map +1 -0
- package/lib/module/types/internal/webComponent.types.js +9 -6
- package/lib/module/types/internal/webComponent.types.js.map +1 -1
- package/lib/module/types/shared/account.types.js +18 -12
- package/lib/module/types/shared/account.types.js.map +1 -1
- package/lib/module/types/shared/achCredit.types.js.map +1 -1
- package/lib/module/types/shared/activity.types.js +5 -1
- package/lib/module/types/shared/activity.types.js.map +1 -1
- package/lib/module/types/shared/authorization.types.js.map +1 -1
- package/lib/module/types/shared/bookPayment.types.js.map +1 -1
- package/lib/module/types/shared/card.types.js +12 -3
- package/lib/module/types/shared/card.types.js.map +1 -1
- package/lib/module/types/shared/checkDeposit.types.js +3 -3
- package/lib/module/types/shared/checkDeposit.types.js.map +1 -1
- package/lib/module/types/shared/error.types.js +22 -0
- package/lib/module/types/shared/error.types.js.map +1 -0
- package/lib/module/types/shared/fonts.types.js +3 -3
- package/lib/module/types/shared/fonts.types.js.map +1 -1
- package/lib/module/types/shared/index.js +2 -0
- package/lib/module/types/shared/index.js.map +1 -1
- package/lib/module/types/shared/multipleCards.types.js +6 -0
- package/lib/module/types/shared/multipleCards.types.js.map +1 -0
- package/lib/module/types/shared/onLoadResponse.types.js +1 -1
- package/lib/module/types/shared/onLoadResponse.types.js.map +1 -1
- package/lib/module/types/shared/payments.types.js +8 -3
- package/lib/module/types/shared/payments.types.js.map +1 -1
- package/lib/module/types/shared/repayment.types.js +2 -0
- package/lib/module/types/shared/repayment.types.js.map +1 -0
- package/lib/module/types/shared/transactions.types.js +6 -6
- package/lib/module/types/shared/transactions.types.js.map +1 -1
- package/lib/module/types/shared/types.js.map +1 -1
- package/lib/module/types/shared/versioning.types.js +4 -3
- package/lib/module/types/shared/versioning.types.js.map +1 -1
- package/lib/module/types/shared/wallet.types.js +9 -9
- package/lib/module/types/shared/wallet.types.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdk.api.js +5 -10
- package/lib/module/unitSdkManager/UnitSdk.api.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdk.constants.js +1 -1
- package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.js +56 -73
- package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
- package/lib/module/unitSdkManager/unitUiManager/unitUiManager.js +4 -7
- package/lib/module/unitSdkManager/unitUiManager/unitUiManager.js.map +1 -1
- package/lib/module/utils/AppInfo.js +39 -0
- package/lib/module/utils/AppInfo.js.map +1 -0
- package/lib/module/utils/SDKInfo.js +5 -0
- package/lib/module/utils/SDKInfo.js.map +1 -0
- package/lib/module/utils/webVersioningStrategy.utils.js +7 -0
- package/lib/module/utils/webVersioningStrategy.utils.js.map +1 -1
- package/lib/module/webComponent/WebComponent.js +40 -34
- package/lib/module/webComponent/WebComponent.js.map +1 -1
- package/lib/module/webComponent/WebComponent.utils.js +15 -0
- package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
- package/lib/module/webComponent/html.js.map +1 -1
- package/lib/typescript/{assets → src/assets}/images/index.d.ts +1 -0
- package/lib/typescript/src/assets/images/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHCreditComponent/UNACHCreditComponent.d.ts +10 -1
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHCreditComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNACHCreditComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHDebitComponent/UNACHDebitComponent.d.ts +10 -1
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNACHDebitComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNACHDebitComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNAccountComponent/UNAccountComponent.d.ts +6 -0
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNAccountComponent/UNAccountComponent.utils.d.ts +2 -1
- package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNAccountComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNAccountComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts +23 -0
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNActivityComponent/UNActivityComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNActivityComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNActivityComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +10 -4
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBookPaymentComponent/UNBookPaymentComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBookPaymentComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNBookPaymentComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts +8 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +4 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBottomSheetComponent/UNBottomSheetComponent.styles.d.ts +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts +2 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts +8 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts +11 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/index.d.ts +3 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/components/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNBottomSheetComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNBottomSheetComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCardComponent/UNCardComponent.d.ts +3 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCardComponent/UNCardComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNCardComponent/UNCardComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCardComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNCardComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCheckDepositComponent/UNCheckDepositComponent.d.ts +7 -1
- package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCheckDepositComponent/UNCheckDepositComponent.utils.d.ts +1 -0
- package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/UNCheckDepositComponent/index.d.ts +1 -0
- package/lib/typescript/src/components/UNCheckDepositComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts +18 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts +4 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNMultipleCardsComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts +14 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.d.ts +3 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNNextRepaymentComponent/index.d.ts.map +1 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts +13 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.d.ts +3 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/index.d.ts +2 -0
- package/lib/typescript/src/components/UNProgramDetailsComponent/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/index.d.ts +4 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/{flows → src/flows}/UNFlows.d.ts +1 -0
- package/lib/typescript/src/flows/UNFlows.d.ts.map +1 -0
- package/lib/typescript/{flows → src/flows}/card/UNCardFlows.d.ts +1 -0
- package/lib/typescript/src/flows/card/UNCardFlows.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/BottomSheet/BottomSheet.d.ts +5 -3
- package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/BottomSheet/BottomSheet.styles.d.ts +1 -1
- package/lib/typescript/src/helpers/BottomSheet/BottomSheet.styles.d.ts.map +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/helpers.d.ts +5 -0
- package/lib/typescript/src/helpers/pushProvisioningService/helpers.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/hooks/useCardWallet.d.ts +2 -1
- package/lib/typescript/src/helpers/pushProvisioningService/hooks/useCardWallet.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/hooks/useLaunchInitialize.d.ts +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/hooks/useLaunchInitialize.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/startProvisioning.d.ts +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/startProvisioning.d.ts.map +1 -0
- package/lib/typescript/src/helpers/pushProvisioningService/types.d.ts +50 -0
- package/lib/typescript/src/helpers/pushProvisioningService/types.d.ts.map +1 -0
- package/lib/typescript/{helpers → src/helpers}/store/helpers.d.ts +1 -0
- package/lib/typescript/src/helpers/store/helpers.d.ts.map +1 -0
- package/lib/typescript/{hooks → src/hooks}/useAppStateListener.d.ts +1 -0
- package/lib/typescript/src/hooks/useAppStateListener.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useListenerToEvent.d.ts +10 -0
- package/lib/typescript/src/hooks/useListenerToEvent.d.ts.map +1 -0
- package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/messages/nativeMessages/bottomSheetMessage.d.ts +10 -0
- package/lib/typescript/src/messages/nativeMessages/bottomSheetMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/nativeMessages/cardMessage.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/cardMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/nativeMessages/index.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/index.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/nativeMessages/sdkMessage.d.ts +1 -0
- package/lib/typescript/src/messages/nativeMessages/sdkMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/accountMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/accountMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/achCreditMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/achCreditMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/activityMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/activityMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/bookPaymentMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/bookPaymentMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/cardMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/cardMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/checkMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/checkMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/index.d.ts +4 -2
- package/lib/typescript/src/messages/webMessages/index.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts +7 -0
- package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/onLoadMessage.d.ts +10 -4
- package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/pageMessage.d.ts +1 -0
- package/lib/typescript/src/messages/webMessages/pageMessage.d.ts.map +1 -0
- package/lib/typescript/src/messages/webMessages/paymentsMessage.d.ts +6 -0
- package/lib/typescript/src/messages/webMessages/paymentsMessage.d.ts.map +1 -0
- package/lib/typescript/{messages → src/messages}/webMessages/unitMessages.d.ts +11 -5
- package/lib/typescript/src/messages/webMessages/unitMessages.d.ts.map +1 -0
- package/lib/typescript/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → src/nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.d.ts +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts +8 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.d.ts +5 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.d.ts +2 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.d.ts.map +1 -0
- package/lib/typescript/{nativeComponent → src/nativeComponents/UNAddToWallet}/UnitAddToWalletButton.d.ts +1 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UnitAddToWalletButton.d.ts.map +1 -0
- package/lib/typescript/{networking → src/networking}/common/UNNetworkConstants.d.ts +1 -0
- package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -0
- package/lib/typescript/{networking → src/networking}/requests/UNWalletPayloadRequest.d.ts +2 -1
- package/lib/typescript/src/networking/requests/UNWalletPayloadRequest.d.ts.map +1 -0
- package/lib/typescript/{scripts → src/scripts}/html/bodyHtml.d.ts +1 -0
- package/lib/typescript/src/scripts/html/bodyHtml.d.ts.map +1 -0
- package/lib/typescript/{scripts → src/scripts}/html/bodyScript.d.ts +5 -1
- package/lib/typescript/src/scripts/html/bodyScript.d.ts.map +1 -0
- package/lib/typescript/{scripts → src/scripts}/html/fontFaces.d.ts +1 -0
- package/lib/typescript/src/scripts/html/fontFaces.d.ts.map +1 -0
- package/lib/typescript/src/slices/BottomSheetSlice.d.ts +16 -0
- package/lib/typescript/src/slices/BottomSheetSlice.d.ts.map +1 -0
- package/lib/typescript/src/slices/ConfigurationSlice.d.ts +11 -0
- package/lib/typescript/src/slices/ConfigurationSlice.d.ts.map +1 -0
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts +53 -0
- package/lib/typescript/src/slices/SharedEventsSlice.d.ts.map +1 -0
- package/lib/typescript/{slices → src/slices}/pushProvisioningSlice.d.ts +1 -0
- package/lib/typescript/src/slices/pushProvisioningSlice.d.ts.map +1 -0
- package/lib/typescript/src/store/index.d.ts +2 -0
- package/lib/typescript/src/store/index.d.ts.map +1 -0
- package/lib/typescript/src/store/store.d.ts +73 -0
- package/lib/typescript/src/store/store.d.ts.map +1 -0
- package/lib/typescript/{styles → src/styles}/fonts.d.ts +1 -0
- package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/{styles → src/styles}/variables.d.ts +4 -0
- package/lib/typescript/src/styles/variables.d.ts.map +1 -0
- package/lib/typescript/src/types/internal/bottomSheet.types.d.ts +57 -0
- package/lib/typescript/src/types/internal/bottomSheet.types.d.ts.map +1 -0
- package/lib/typescript/src/types/internal/errorHelpers.d.ts +5 -0
- package/lib/typescript/src/types/internal/errorHelpers.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/internal/webComponent.types.d.ts +5 -1
- package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/account.types.d.ts +6 -0
- package/lib/typescript/src/types/shared/account.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/achCredit.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/activity.types.d.ts +12 -0
- package/lib/typescript/src/types/shared/activity.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/authorization.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/authorization.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/bookPayment.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/bookPayment.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/card.types.d.ts +9 -0
- package/lib/typescript/src/types/shared/card.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/checkDeposit.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/checkDeposit.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/error.types.d.ts +37 -0
- package/lib/typescript/src/types/shared/error.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/fonts.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/fonts.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/index.d.ts +3 -0
- package/lib/typescript/src/types/shared/index.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/multipleCards.types.d.ts +7 -0
- package/lib/typescript/src/types/shared/multipleCards.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts +6 -0
- package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/payments.types.d.ts +5 -0
- package/lib/typescript/src/types/shared/payments.types.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/repayment.types.d.ts +12 -0
- package/lib/typescript/src/types/shared/repayment.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/transactions.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/transactions.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/types.d.ts +1 -0
- package/lib/typescript/src/types/shared/types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/versioning.types.d.ts +6 -1
- package/lib/typescript/src/types/shared/versioning.types.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/shared/wallet.types.d.ts +1 -0
- package/lib/typescript/src/types/shared/wallet.types.d.ts.map +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.api.d.ts +2 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.api.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdk.constants.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdkManager.d.ts +5 -8
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdkManager.utils.internal.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/UnitSdkManager.utils.internal.d.ts.map +1 -0
- package/lib/typescript/{unitSdkManager → src/unitSdkManager}/unitUiManager/unitUiManager.d.ts +1 -0
- package/lib/typescript/src/unitSdkManager/unitUiManager/unitUiManager.d.ts.map +1 -0
- package/lib/typescript/src/utils/AppInfo.d.ts +5 -0
- package/lib/typescript/src/utils/AppInfo.d.ts.map +1 -0
- package/lib/typescript/src/utils/SDKInfo.d.ts +2 -0
- package/lib/typescript/src/utils/SDKInfo.d.ts.map +1 -0
- package/lib/typescript/{utils → src/utils}/webVersioningStrategy.utils.d.ts +1 -0
- package/lib/typescript/src/utils/webVersioningStrategy.utils.d.ts.map +1 -0
- package/lib/typescript/{webComponent → src/webComponent}/WebComponent.d.ts +1 -0
- package/lib/typescript/src/webComponent/WebComponent.d.ts.map +1 -0
- package/lib/typescript/{webComponent → src/webComponent}/WebComponent.utils.d.ts +4 -0
- package/lib/typescript/src/webComponent/WebComponent.utils.d.ts.map +1 -0
- package/lib/typescript/{webComponent → src/webComponent}/html.d.ts +1 -0
- package/lib/typescript/src/webComponent/html.d.ts.map +1 -0
- package/package.json +26 -38
- package/react-native-unit-components.podspec +9 -2
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +28 -6
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.ts +13 -2
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +28 -6
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.ts +12 -2
- package/src/components/UNAccountComponent/UNAccountComponent.tsx +62 -23
- package/src/components/UNAccountComponent/UNAccountComponent.utils.ts +9 -6
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +60 -22
- package/src/components/UNActivityComponent/UNActivityComponent.utils.ts +6 -1
- package/src/components/UNActivityComponent/index.ts +1 -1
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +23 -5
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.ts +11 -4
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.ts +20 -1
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +184 -265
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.ts +5 -6
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.tsx +60 -0
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.ts +1 -0
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.tsx +181 -0
- package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.ts +1 -0
- package/src/components/UNBottomSheetComponent/components/index.ts +2 -1
- package/src/components/UNCardComponent/UNCardComponent.tsx +14 -11
- package/src/components/UNCardComponent/UNCardComponent.utils.ts +2 -0
- package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +16 -3
- package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.ts +8 -2
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +120 -0
- package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.ts +37 -0
- package/src/components/UNMultipleCardsComponent/index.ts +3 -0
- package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +80 -0
- package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.ts +10 -0
- package/src/components/UNNextRepaymentComponent/index.ts +3 -0
- package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +77 -0
- package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.ts +9 -0
- package/src/components/UNProgramDetailsComponent/index.ts +3 -0
- package/src/components/index.ts +3 -0
- package/src/flows/UNFlows.ts +1 -1
- package/src/flows/card/UNCardFlows.ts +19 -14
- package/src/helpers/BottomSheet/BottomSheet.styles.ts +7 -8
- package/src/helpers/BottomSheet/BottomSheet.tsx +44 -39
- package/src/helpers/pushProvisioningService/helpers.ts +31 -0
- package/src/helpers/pushProvisioningService/hooks/useCardWallet.ts +38 -8
- package/src/helpers/pushProvisioningService/startProvisioning.ts +3 -5
- package/src/helpers/pushProvisioningService/types.ts +52 -0
- package/src/helpers/store/helpers.tsx +1 -1
- package/src/hooks/useListenerToEvent.ts +32 -0
- package/src/messages/nativeMessages/bottomSheetMessage.ts +7 -7
- package/src/messages/webMessages/index.ts +3 -0
- package/src/messages/webMessages/multipleCardsMessage.ts +9 -0
- package/src/messages/webMessages/onLoadMessage.ts +16 -4
- package/src/messages/webMessages/paymentsMessage.ts +3 -1
- package/src/messages/webMessages/unitMessages.ts +19 -13
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +93 -0
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.ts +15 -0
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.ts +1 -0
- package/src/networking/requests/UNWalletPayloadRequest.ts +25 -4
- package/src/scripts/html/bodyScript.ts +36 -8
- package/src/slices/BottomSheetSlice.ts +72 -0
- package/src/slices/ConfigurationSlice.ts +31 -0
- package/src/slices/SharedEventsSlice.ts +88 -0
- package/src/store/store.ts +8 -2
- package/src/styles/variables.ts +5 -2
- package/src/types/internal/bottomSheet.types.ts +51 -7
- package/src/types/internal/errorHelpers.ts +22 -0
- package/src/types/internal/webComponent.types.ts +3 -1
- package/src/types/shared/account.types.ts +6 -0
- package/src/types/shared/activity.types.ts +7 -2
- package/src/types/shared/card.types.ts +10 -1
- package/src/types/shared/error.types.ts +38 -0
- package/src/types/shared/index.ts +2 -0
- package/src/types/shared/multipleCards.types.ts +8 -0
- package/src/types/shared/onLoadResponse.types.ts +2 -12
- package/src/types/shared/payments.types.ts +10 -5
- package/src/types/shared/repayment.types.ts +12 -0
- package/src/types/shared/versioning.types.ts +7 -1
- package/src/unitSdkManager/UnitSdk.api.ts +5 -8
- package/src/unitSdkManager/UnitSdk.constants.ts +1 -1
- package/src/unitSdkManager/UnitSdkManager.ts +8 -20
- package/src/utils/AppInfo.ts +40 -0
- package/src/utils/SDKInfo.ts +5 -0
- package/src/utils/webVersioningStrategy.utils.ts +7 -0
- package/src/webComponent/WebComponent.tsx +52 -37
- package/src/webComponent/WebComponent.utils.ts +17 -0
- package/android/src/main/java/com/unitreactnativecomponents/getapplicationid/UNAppInfoModule.kt +0 -35
- package/ios/UNAppInfo/UNAppInfo.swift +0 -23
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -86
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +0 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map +0 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +0 -17
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +0 -1
- package/lib/commonjs/components/utils/nativeModulesInfo.js +0 -20
- package/lib/commonjs/components/utils/nativeModulesInfo.js.map +0 -1
- package/lib/commonjs/helpers/EventBus.js +0 -58
- package/lib/commonjs/helpers/EventBus.js.map +0 -1
- package/lib/commonjs/hooks/listenerToBus.js +0 -34
- package/lib/commonjs/hooks/listenerToBus.js.map +0 -1
- package/lib/commonjs/nativeComponent/UnitAddToWalletButton.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -76
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +0 -2
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +0 -1
- package/lib/module/components/utils/nativeModulesInfo.js +0 -13
- package/lib/module/components/utils/nativeModulesInfo.js.map +0 -1
- package/lib/module/helpers/EventBus.js +0 -51
- package/lib/module/helpers/EventBus.js.map +0 -1
- package/lib/module/hooks/listenerToBus.js +0 -25
- package/lib/module/hooks/listenerToBus.js.map +0 -1
- package/lib/module/nativeComponent/UnitAddToWalletButton.js.map +0 -1
- package/lib/typescript/components/UNActivityComponent/UNActivityComponent.d.ts +0 -13
- package/lib/typescript/components/UNActivityComponent/index.d.ts +0 -1
- package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts +0 -1
- package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +0 -8
- package/lib/typescript/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.d.ts +0 -10
- package/lib/typescript/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.d.ts +0 -1
- package/lib/typescript/components/UNBottomSheetComponent/components/index.d.ts +0 -1
- package/lib/typescript/components/utils/nativeModulesInfo.d.ts +0 -1
- package/lib/typescript/helpers/EventBus.d.ts +0 -13
- package/lib/typescript/hooks/listenerToBus.d.ts +0 -7
- package/lib/typescript/messages/nativeMessages/bottomSheetMessage.d.ts +0 -9
- package/lib/typescript/messages/webMessages/paymentsMessage.d.ts +0 -3
- package/lib/typescript/store/index.d.ts +0 -1
- package/lib/typescript/store/store.d.ts +0 -6
- package/lib/typescript/types/internal/bottomSheet.types.d.ts +0 -35
- package/lib/typescript/types/shared/activity.types.d.ts +0 -7
- package/lib/typescript/types/shared/onLoadResponse.types.d.ts +0 -14
- package/lib/typescript/unitSdkManager/UnitSdk.api.d.ts +0 -3
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.tsx +0 -104
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.ts +0 -1
- package/src/components/utils/nativeModulesInfo.ts +0 -11
- package/src/helpers/EventBus.ts +0 -58
- package/src/hooks/listenerToBus.ts +0 -31
- /package/lib/commonjs/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.js +0 -0
- /package/lib/module/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.js +0 -0
- /package/lib/module/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.js +0 -0
- /package/src/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.ts +0 -0
- /package/src/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.tsx +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
NativeComponentRendering,
|
|
3
|
+
SlotRendering,
|
|
4
|
+
} from '../../types/internal/bottomSheet.types';
|
|
2
5
|
|
|
3
6
|
export enum BottomSheetNativeMessage {
|
|
4
|
-
|
|
7
|
+
REQUEST_RENDERING = 'requestRendering',
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
export enum CardAddToWalletErrors {
|
|
8
11
|
closedNativeWalletScreen = 'VP_ERROR_302'
|
|
9
12
|
}
|
|
10
13
|
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
export type BottomSheetNativeEvent = |
|
|
14
|
-
StartBottomSheetFlowMessage
|
|
15
|
-
// BottomSheetChangeFlowMessage - probably, we want to add this message event in the future to alternate between flows
|
|
14
|
+
export type BottomSheetRenderingMessage = SlotRendering | NativeComponentRendering
|
|
15
|
+
export type BottomSheetNativeEvent = BottomSheetRenderingMessage
|
|
@@ -8,10 +8,12 @@ import type { UnitEvent, UnitMessage } from './unitMessages';
|
|
|
8
8
|
import type { AccountEvent, AccountMessage } from './accountMessage';
|
|
9
9
|
import type { CheckEvent, CheckMessage } from './checkMessage';
|
|
10
10
|
import type { ActivityEvent, ActivityMessage } from './activityMessage';
|
|
11
|
+
import type { MultipleCardsEvent, MultipleCardsMessage } from './multipleCardsMessage';
|
|
11
12
|
|
|
12
13
|
export type WebViewMessageType =
|
|
13
14
|
| PageMessage
|
|
14
15
|
| CardMessage
|
|
16
|
+
| MultipleCardsMessage
|
|
15
17
|
| UnitMessage
|
|
16
18
|
| PaymentMessage
|
|
17
19
|
| AccountMessage
|
|
@@ -22,6 +24,7 @@ type WebViewEvent =
|
|
|
22
24
|
| PageEvent
|
|
23
25
|
| UnitEvent
|
|
24
26
|
| CardEvent
|
|
27
|
+
| MultipleCardsEvent
|
|
25
28
|
| BookPaymentEvent
|
|
26
29
|
| PaymentMessage
|
|
27
30
|
| ACHEvent
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UNCardData } from '../../types/shared';
|
|
2
|
+
|
|
3
|
+
export enum MultipleCardsMessage {
|
|
4
|
+
UNIT_MULTIPLE_CARDS_CARD_CLICKED = 'unitMultipleCardsCardClicked',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type MultipleCardsCardClickedEvent = UNCardData;
|
|
8
|
+
|
|
9
|
+
export type MultipleCardsEvent = MultipleCardsCardClickedEvent
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
UNAccountData,
|
|
3
|
+
UNCounterpartyAccountData,
|
|
4
|
+
UNCardData,
|
|
5
|
+
UNError,
|
|
6
|
+
UNOnLoadResponseData,
|
|
7
|
+
} from '../../types/shared';
|
|
2
8
|
import type { UNAuthorizationData } from '../../types/shared/authorization.types';
|
|
3
9
|
import type { UNTransactionData } from '../../types/shared/transactions.types';
|
|
4
10
|
|
|
5
11
|
export enum RESPONSE_KEYS {
|
|
6
12
|
errors = 'errors',
|
|
7
13
|
card = 'cardResult',
|
|
14
|
+
cards = 'cardsResult',
|
|
8
15
|
account = 'accountResult',
|
|
9
16
|
counterpartyAccount = 'counterpartyResult',
|
|
10
17
|
transactions = 'transactionsResult',
|
|
11
|
-
|
|
18
|
+
authorizations = 'authorizationsResult',
|
|
19
|
+
repayment = 'repaymentResult'
|
|
12
20
|
}
|
|
13
21
|
|
|
22
|
+
export type CardsOnLoadResponse = {
|
|
23
|
+
[RESPONSE_KEYS.cards]: UNOnLoadResponseData<[UNCardData]>
|
|
24
|
+
}
|
|
14
25
|
export type CardOnLoadResponse = {
|
|
15
26
|
[RESPONSE_KEYS.card]: UNOnLoadResponseData<UNCardData>
|
|
16
27
|
}
|
|
@@ -29,12 +40,13 @@ export type ACHOnLoadResponse = {
|
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
export type ActivityOnLoadResponse = {
|
|
32
|
-
[RESPONSE_KEYS.
|
|
33
|
-
[RESPONSE_KEYS.transactions]: UNOnLoadResponseData<UNTransactionData>
|
|
43
|
+
[RESPONSE_KEYS.authorizations]: UNOnLoadResponseData<[UNAuthorizationData]>,
|
|
44
|
+
[RESPONSE_KEYS.transactions]: UNOnLoadResponseData<[UNTransactionData]>
|
|
34
45
|
}
|
|
35
46
|
|
|
36
47
|
export type UnitOnLoadResponseSuccessData =
|
|
37
48
|
| CardOnLoadResponse
|
|
49
|
+
| CardsOnLoadResponse
|
|
38
50
|
| ACHOnLoadResponse
|
|
39
51
|
| AccountsOnLoadResponse
|
|
40
52
|
| AccountOnLoadResponse
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export enum PaymentMessage {
|
|
2
|
-
PAYMENT_CREATED = 'unitPaymentCreated'
|
|
2
|
+
PAYMENT_CREATED = 'unitPaymentCreated',
|
|
3
|
+
FINAL_STAGE_DONE_BUTTON_CLICKED = 'unitPaymentFinalStageDoneButtonClicked',
|
|
4
|
+
INITIAL_STAGE_BACK_BUTTON_CLICKED = 'unitPaymentInitialStageBackButtonClicked',
|
|
3
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UnitOnLoadResponseEvent } from './onLoadMessage';
|
|
2
|
+
import { BottomSheetNativePlaceType } from '../../types/internal/bottomSheet.types';
|
|
2
3
|
|
|
3
4
|
export enum UnitMessage {
|
|
4
5
|
UNIT_REQUEST_RENDERING = 'unitRequestRendering',
|
|
@@ -9,41 +10,46 @@ export enum UnitMessage {
|
|
|
9
10
|
UNIT_REQUEST_DOWNLOAD = 'unitRequestDownload',
|
|
10
11
|
UNIT_PLAID_TOKEN_CREATED = 'unitPlaidLinkTokenCreated',
|
|
11
12
|
UNIT_REQUEST_EXTERNAL_SDK = 'unitRequestExternalSdk',
|
|
13
|
+
UNIT_REQUEST_LEFT_TO_SPEND_DETAILS = 'unitRequestLeftToSpendDetails',
|
|
12
14
|
UNIT_PLAID_RESPONSE = 'unitPlaidResponse',
|
|
13
|
-
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum UnitRequestRefreshEventTypes {
|
|
18
|
+
REQUEST_REFRESH_EVENT = 'requestRefreshEvent'
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
export interface RequestRenderingEvent {
|
|
17
|
-
data: RequestRenderingEventData
|
|
22
|
+
data: RequestRenderingEventData;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export interface RequestRenderingEventData {
|
|
21
26
|
actionType?: string,
|
|
22
|
-
nativePlace:
|
|
27
|
+
nativePlace: BottomSheetNativePlaceType,
|
|
23
28
|
nativeComponent: string,
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
export interface RequestRefreshEvent {
|
|
27
|
-
|
|
32
|
+
type: UnitRequestRefreshEventTypes.REQUEST_REFRESH_EVENT;
|
|
33
|
+
refEvent?: string;
|
|
28
34
|
dependencies: string[];
|
|
29
|
-
resourceId
|
|
35
|
+
resourceId?: string;
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
export interface RequestOpenLinkEvent {
|
|
33
39
|
href: string;
|
|
34
|
-
target: string
|
|
40
|
+
target: string;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
export interface RequestDownloadEvent {
|
|
38
|
-
url: string
|
|
39
|
-
accessToken: string
|
|
40
|
-
fileType: string
|
|
41
|
-
responseType: string
|
|
42
|
-
fileName: string
|
|
44
|
+
url: string;
|
|
45
|
+
accessToken: string;
|
|
46
|
+
fileType: string;
|
|
47
|
+
responseType: string;
|
|
48
|
+
fileName: string;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
export interface PlaidTokenCreatedEvent {
|
|
46
|
-
linkToken: PlaidLinkTokenData
|
|
52
|
+
linkToken: PlaidLinkTokenData;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
export interface PlaidLinkTokenData {
|
|
@@ -57,7 +63,7 @@ interface PlaidLinkTokenAttributes {
|
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
export interface RequestExternalSdkEvent {
|
|
60
|
-
type: string
|
|
66
|
+
type: string;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
export type UnitEvent =
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { withReduxStore } from '../../../helpers/store/helpers';
|
|
2
|
+
import { ActivityIndicator } from 'react-native';
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { WebComponent } from '../../../webComponent/WebComponent';
|
|
5
|
+
import { PresentationMode, WebComponentType } from '../../../types/internal/webComponent.types';
|
|
6
|
+
import { UNCardAddToWalletStatus } from '../../../types/shared/wallet.types';
|
|
7
|
+
import UnitAddToWalletButtonView from '../UnitAddToWalletButton';
|
|
8
|
+
import WebView from 'react-native-webview';
|
|
9
|
+
import { useDispatch } from 'react-redux';
|
|
10
|
+
import {
|
|
11
|
+
getStylesObject,
|
|
12
|
+
} from './UNAddToWalletBottomSheetItem.styles';
|
|
13
|
+
import { useCardWallet } from '../../../helpers/pushProvisioningService/hooks/useCardWallet';
|
|
14
|
+
import { getAddToWalletParams, getAddToWalletWindowParams } from './UNAddToWalletComponent.utils';
|
|
15
|
+
import { WebViewMessage } from '../../../messages/webMessages';
|
|
16
|
+
import { UnitMessage } from '../../../messages/webMessages/unitMessages';
|
|
17
|
+
import { injectHtmlFullScreenHeight } from '../../../components/UNBottomSheetComponent/UNBottomSheetComponent.utils';
|
|
18
|
+
import { setEvent } from '../../../slices/SharedEventsSlice';
|
|
19
|
+
import {
|
|
20
|
+
overFullScreenHeight,
|
|
21
|
+
} from '../../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';
|
|
22
|
+
import { launchStartCardProvisioning } from '../../../helpers/pushProvisioningService/startProvisioning';
|
|
23
|
+
import { PageMessage } from '../../../messages/webMessages/pageMessage';
|
|
24
|
+
|
|
25
|
+
export interface UNAddToWalletComponentProps {
|
|
26
|
+
customerToken: string;
|
|
27
|
+
cardId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const UNAddToWalletComponent = (props: UNAddToWalletComponentProps) => {
|
|
31
|
+
const dispatch = useDispatch();
|
|
32
|
+
const webRef = useRef<WebView>(null);
|
|
33
|
+
const { currentUNWallet } = useCardWallet(props.cardId);
|
|
34
|
+
const styles = getStylesObject();
|
|
35
|
+
|
|
36
|
+
const shouldRenderAddToWalletWebView = () => {
|
|
37
|
+
return currentUNWallet &&
|
|
38
|
+
(currentUNWallet.status === UNCardAddToWalletStatus.readyToProvisioning ||
|
|
39
|
+
currentUNWallet.status === UNCardAddToWalletStatus.addedToWallet);
|
|
40
|
+
};
|
|
41
|
+
const handleAddToWalletClicked = () => {
|
|
42
|
+
if (!currentUNWallet) return;
|
|
43
|
+
launchStartCardProvisioning(currentUNWallet);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const handleWebViewMessage = (message: WebViewMessage) => {
|
|
47
|
+
if (!message || !message.type) return;
|
|
48
|
+
switch (message.type) {
|
|
49
|
+
case PageMessage.PAGE_LOADED:
|
|
50
|
+
injectHtmlFullScreenHeight(webRef.current, overFullScreenHeight);
|
|
51
|
+
break;
|
|
52
|
+
case UnitMessage.UNIT_REQUEST_CLOSE_FLOW:
|
|
53
|
+
dispatch(setEvent({
|
|
54
|
+
key: UnitMessage.UNIT_REQUEST_CLOSE_FLOW,
|
|
55
|
+
data: {},
|
|
56
|
+
}));
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const renderAddToWalletWebView = () => {
|
|
63
|
+
if (currentUNWallet == undefined || currentUNWallet?.status === UNCardAddToWalletStatus.pending) {
|
|
64
|
+
return <ActivityIndicator style={styles.loader} />;
|
|
65
|
+
}
|
|
66
|
+
return (
|
|
67
|
+
<>
|
|
68
|
+
{
|
|
69
|
+
shouldRenderAddToWalletWebView() &&
|
|
70
|
+
<WebComponent
|
|
71
|
+
ref={webRef}
|
|
72
|
+
type={WebComponentType.cardAction}
|
|
73
|
+
presentationMode={PresentationMode.CoverInjectedHeight}
|
|
74
|
+
params={getAddToWalletParams(props)}
|
|
75
|
+
isScrollable={false}
|
|
76
|
+
onMessage={(message: WebViewMessage) => handleWebViewMessage(message)}
|
|
77
|
+
windowParams={getAddToWalletWindowParams(currentUNWallet)}
|
|
78
|
+
/>
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
{
|
|
82
|
+
currentUNWallet?.status === UNCardAddToWalletStatus.readyToProvisioning &&
|
|
83
|
+
<UnitAddToWalletButtonView style={styles.addToWalletButton} onAddToWalletClicked={handleAddToWalletClicked} />
|
|
84
|
+
}
|
|
85
|
+
</>
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
return (
|
|
89
|
+
renderAddToWalletWebView()
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export default withReduxStore<UNAddToWalletComponentProps>(UNAddToWalletComponent);
|
package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UNAddToWalletComponentProps } from './UNAddToWalletComponent';
|
|
2
|
+
import { UNCardAddToWalletStatus, UNWallet } from '../../../types/shared/wallet.types';
|
|
3
|
+
|
|
4
|
+
export const getAddToWalletParams = (props: UNAddToWalletComponentProps) => {
|
|
5
|
+
return `
|
|
6
|
+
customer-token=${props.customerToken}
|
|
7
|
+
card-id=${props.cardId}
|
|
8
|
+
action=AddToWallet
|
|
9
|
+
`;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const getAddToWalletWindowParams = (wallet?: UNWallet) => {
|
|
13
|
+
return `window.UnitMobileSDKConfig["isCardInWallet"] = ${wallet?.status === UNCardAddToWalletStatus.addedToWallet}`;
|
|
14
|
+
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UNAddToWalletComponent } from './UNAddToWalletComponent';
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { APIHeaders, UNIT_SECURE_URL } from '../common/UNNetworkConstants';
|
|
3
3
|
import type { UNEnvironment } from '../../unitSdkManager/UnitSdkManager';
|
|
4
|
+
import type { UNMobileWalletPayload } from '../../helpers/pushProvisioningService/types';
|
|
5
|
+
import type { UNError, UNErrorData } from '../../types/shared/error.types';
|
|
6
|
+
|
|
7
|
+
const isUNMobileWalletPayload = (object: any): object is UNMobileWalletPayload => {
|
|
8
|
+
return 'data' in object &&
|
|
9
|
+
'attributes' in object.data &&
|
|
10
|
+
'payload' in object.data.attributes;
|
|
11
|
+
};
|
|
4
12
|
|
|
5
13
|
// TODO: use apiClient class for handling requests.
|
|
6
14
|
|
|
@@ -28,9 +36,22 @@ export const getMobileWalletPayload = async (customerToken: string, cardId: stri
|
|
|
28
36
|
{
|
|
29
37
|
headers: headers,
|
|
30
38
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
if (!isUNMobileWalletPayload(response.data)) {
|
|
40
|
+
const error: UNErrorData = {title: `Couldn't get mobile wallet payload. Status:${response.status} Response data:${response.data}`};
|
|
41
|
+
throw error;
|
|
42
|
+
} else {
|
|
43
|
+
const encryptedPayload = response.data.data.attributes.payload;
|
|
44
|
+
return encryptedPayload;
|
|
45
|
+
}
|
|
46
|
+
} catch (error: unknown) {
|
|
47
|
+
// Converts the error into a UNError
|
|
48
|
+
if (axios.isAxiosError<UNError>(error) && error.response) {
|
|
49
|
+
const unErrors = error.response.data;
|
|
50
|
+
throw unErrors;
|
|
51
|
+
} else if (error instanceof Error) {
|
|
52
|
+
const unexpectedError: UNErrorData = {title: 'Unexpected error', error: error};
|
|
53
|
+
throw unexpectedError;
|
|
54
|
+
}
|
|
55
|
+
throw {title: `Unexpected error: ${error}`};
|
|
35
56
|
}
|
|
36
57
|
};
|
|
@@ -36,6 +36,7 @@ export const LISTENERS = {
|
|
|
36
36
|
`,
|
|
37
37
|
requestRefresh: `
|
|
38
38
|
window.addEventListener("${UnitMessage.UNIT_REQUEST_REFRESH}", (e) => {
|
|
39
|
+
if (e.detail.fromSDK) { return }
|
|
39
40
|
postMessageToSDK({ type: "${UnitMessage.UNIT_REQUEST_REFRESH}", details: e.detail })
|
|
40
41
|
});
|
|
41
42
|
`,
|
|
@@ -47,7 +48,11 @@ export const LISTENERS = {
|
|
|
47
48
|
`,
|
|
48
49
|
requestCloseFlow: `
|
|
49
50
|
window.addEventListener("${UnitMessage.UNIT_REQUEST_CLOSE_FLOW}", (e) => {
|
|
50
|
-
|
|
51
|
+
// Add a delay of 200 milliseconds to allow the SDK to finish processing prior events that require a Promise before closing the flow
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
postMessageToSDK({ type: "${UnitMessage.UNIT_REQUEST_CLOSE_FLOW}" });
|
|
54
|
+
}, 200);
|
|
55
|
+
|
|
51
56
|
});
|
|
52
57
|
`,
|
|
53
58
|
requestOpenLink: `
|
|
@@ -85,6 +90,12 @@ export const LISTENERS = {
|
|
|
85
90
|
postMessageToSDK({ type: "${UnitMessage.UNIT_REQUEST_EXTERNAL_SDK}", details: e.detail })
|
|
86
91
|
});
|
|
87
92
|
`,
|
|
93
|
+
|
|
94
|
+
unitRequestLeftToSpendDetails: `
|
|
95
|
+
window.addEventListener("${UnitMessage.UNIT_REQUEST_LEFT_TO_SPEND_DETAILS}", (e) => {
|
|
96
|
+
postMessageToSDK({ type: "${UnitMessage.UNIT_REQUEST_LEFT_TO_SPEND_DETAILS}", details: e.detail })
|
|
97
|
+
});
|
|
98
|
+
`,
|
|
88
99
|
unitPaymentCreated: `
|
|
89
100
|
window.addEventListener("${PaymentMessage.PAYMENT_CREATED}", (e) => {
|
|
90
101
|
const response = e.detail
|
|
@@ -95,6 +106,17 @@ export const LISTENERS = {
|
|
|
95
106
|
})
|
|
96
107
|
});
|
|
97
108
|
`,
|
|
109
|
+
unitPaymentInitialStageBackButtonClicked: `
|
|
110
|
+
window.addEventListener("unitPaymentInitialStageBackButtonClicked", (e) => {
|
|
111
|
+
postMessageToSDK({ type: "${PaymentMessage.INITIAL_STAGE_BACK_BUTTON_CLICKED}", details: { data: e.detail }})
|
|
112
|
+
});
|
|
113
|
+
`,
|
|
114
|
+
|
|
115
|
+
unitPaymentFinalStageDoneButtonClicked: `
|
|
116
|
+
window.addEventListener("unitPaymentFinalStageDoneButtonClicked", (e) => {
|
|
117
|
+
postMessageToSDK({ type: "${PaymentMessage.FINAL_STAGE_DONE_BUTTON_CLICKED}", details: { data: e.detail }})
|
|
118
|
+
});
|
|
119
|
+
`,
|
|
98
120
|
unitPlaidTokenCreated: `
|
|
99
121
|
window.addEventListener("${UnitMessage.UNIT_PLAID_TOKEN_CREATED}", (e) => {
|
|
100
122
|
const response = e.detail
|
|
@@ -130,17 +152,23 @@ export const DISPATCH_RENDERING_EVENT = `
|
|
|
130
152
|
`;
|
|
131
153
|
|
|
132
154
|
export const DISPATCH_REQUEST_REFRESH = `
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
155
|
+
const dispatchRefreshEvent = (details) => {
|
|
156
|
+
let event;
|
|
157
|
+
// we are adding "fromSDK" param to avoid infinite loop
|
|
158
|
+
if (details) {
|
|
159
|
+
event = new CustomEvent("${UnitMessage.UNIT_REQUEST_REFRESH}",{ detail: {...JSON.parse(details), fromSDK: true} });
|
|
160
|
+
} else {
|
|
161
|
+
event = new CustomEvent("${UnitMessage.UNIT_REQUEST_REFRESH}", { detail: { fromSDK: true }});
|
|
136
162
|
}
|
|
163
|
+
window.dispatchEvent(event)
|
|
164
|
+
}
|
|
137
165
|
`;
|
|
138
166
|
|
|
139
167
|
export const DISPATCH_ACTIVITY_FILTER_CHANGED_EVENT = `
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
168
|
+
const dispatchActivityFilterChangedEvent = (details) => {
|
|
169
|
+
const event = new CustomEvent("unitActivityFiltersChanged",{ detail: details});
|
|
170
|
+
window.dispatchEvent(event);
|
|
171
|
+
}
|
|
144
172
|
`;
|
|
145
173
|
|
|
146
174
|
export const DISPATCH_PLAID_RESPONSE = `
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { RootState } from '../store';
|
|
3
|
+
import { BottomSheetNativePlaceType, ScrollState } from '../types/internal/bottomSheet.types';
|
|
4
|
+
|
|
5
|
+
export interface BottomSheetState {
|
|
6
|
+
isBottomSheetActive: boolean;
|
|
7
|
+
isComponentLoading?: boolean;
|
|
8
|
+
shouldShowBottomSheet?: boolean;
|
|
9
|
+
nativePlace?: BottomSheetNativePlaceType;
|
|
10
|
+
componentHeight?: number;
|
|
11
|
+
shouldEnableBottomSheetScroll: boolean;
|
|
12
|
+
scrollState?: ScrollState;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const initialState: BottomSheetState = {
|
|
16
|
+
isBottomSheetActive: false,
|
|
17
|
+
isComponentLoading: false,
|
|
18
|
+
shouldShowBottomSheet: false,
|
|
19
|
+
shouldEnableBottomSheetScroll: true,
|
|
20
|
+
nativePlace: BottomSheetNativePlaceType.overFullScreen,
|
|
21
|
+
componentHeight: 0,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const BottomSheetSlice = createSlice({
|
|
25
|
+
name: 'BottomSheet',
|
|
26
|
+
initialState: initialState,
|
|
27
|
+
reducers: {
|
|
28
|
+
setIsBottomSheetActive(state, action: PayloadAction<boolean>) {
|
|
29
|
+
state.isBottomSheetActive = action.payload;
|
|
30
|
+
},
|
|
31
|
+
setIsComponentLoading(state, action: PayloadAction<boolean>) {
|
|
32
|
+
state.isComponentLoading = action.payload;
|
|
33
|
+
},
|
|
34
|
+
setShouldShowBottomSheet(state, action: PayloadAction<boolean>) {
|
|
35
|
+
state.shouldShowBottomSheet = action.payload;
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
setNativePlace(state, action: PayloadAction<BottomSheetNativePlaceType>) {
|
|
39
|
+
state.nativePlace = action.payload;
|
|
40
|
+
},
|
|
41
|
+
setComponentHeight(state, action: PayloadAction<number>) {
|
|
42
|
+
state.componentHeight = action.payload;
|
|
43
|
+
},
|
|
44
|
+
setShouldEnableBottomSheetScroll(state, action: PayloadAction<boolean>) {
|
|
45
|
+
state.shouldEnableBottomSheetScroll = action.payload;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
setScrollState(state, action: PayloadAction<ScrollState>) {
|
|
49
|
+
state.scrollState = action.payload;
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
resetBottomSheetSlice(state) {
|
|
53
|
+
//resets all besides is active to avoid loops in useEffects invoked by closing the flow
|
|
54
|
+
state.isComponentLoading = initialState.isComponentLoading;
|
|
55
|
+
state.shouldShowBottomSheet = initialState.shouldShowBottomSheet;
|
|
56
|
+
state.nativePlace = initialState.nativePlace;
|
|
57
|
+
state.componentHeight = initialState.componentHeight;
|
|
58
|
+
state.shouldEnableBottomSheetScroll = initialState.shouldEnableBottomSheetScroll;
|
|
59
|
+
state.scrollState = initialState.scrollState;
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const {
|
|
66
|
+
setIsBottomSheetActive, setIsComponentLoading,
|
|
67
|
+
setShouldShowBottomSheet, setNativePlace,
|
|
68
|
+
setComponentHeight,
|
|
69
|
+
setShouldEnableBottomSheetScroll, setScrollState, resetBottomSheetSlice,
|
|
70
|
+
} = BottomSheetSlice.actions;
|
|
71
|
+
export const selectConfiguration = (state: RootState) => state.bottomSheet;
|
|
72
|
+
export default BottomSheetSlice.reducer;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { RootState } from '../store';
|
|
3
|
+
|
|
4
|
+
export interface ConfigurationState {
|
|
5
|
+
unitScript?: string;
|
|
6
|
+
theme?: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const initialState: ConfigurationState = {};
|
|
11
|
+
|
|
12
|
+
const ConfigurationSlice = createSlice({
|
|
13
|
+
name: 'Configuration',
|
|
14
|
+
initialState: initialState,
|
|
15
|
+
reducers: {
|
|
16
|
+
setUnitScript(state, action: PayloadAction<string | undefined>) {
|
|
17
|
+
state.unitScript = action.payload;
|
|
18
|
+
},
|
|
19
|
+
setTheme(state, action: PayloadAction<string | undefined>) {
|
|
20
|
+
state.theme = action.payload;
|
|
21
|
+
},
|
|
22
|
+
setLanguage(state, action: PayloadAction<string | undefined>) {
|
|
23
|
+
state.language = action.payload;
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export const { setUnitScript, setLanguage, setTheme } = ConfigurationSlice.actions;
|
|
30
|
+
export const selectConfiguration = (state: RootState) => state.configuration;
|
|
31
|
+
export default ConfigurationSlice.reducer;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|
4
|
+
import type { RootState } from '../store';
|
|
5
|
+
import type { UNAccountData, UNCardData } from '../types/shared';
|
|
6
|
+
import type { ActivityFiltersChangedEvent } from '../messages/webMessages/activityMessage';
|
|
7
|
+
import type { RequestRefreshEvent } from '../messages/webMessages/unitMessages';
|
|
8
|
+
import type { BottomSheetNativeMessage } from '../messages/nativeMessages/bottomSheetMessage';
|
|
9
|
+
import type { CardMessage } from '../messages/webMessages/cardMessage';
|
|
10
|
+
import type { AccountMessage } from '../messages/webMessages/accountMessage';
|
|
11
|
+
import type { ActivityMessage } from '../messages/webMessages/activityMessage';
|
|
12
|
+
import type { UnitMessage } from '../messages/webMessages/unitMessages';
|
|
13
|
+
import type { MultipleCardsMessage } from '../messages/webMessages/multipleCardsMessage';
|
|
14
|
+
import { BottomSheetRenderingMessage } from '../messages/nativeMessages/bottomSheetMessage';
|
|
15
|
+
|
|
16
|
+
type EmptyObj = Record<PropertyKey, never>;
|
|
17
|
+
|
|
18
|
+
type MultipleCardsCardClickedEventState = {
|
|
19
|
+
key: MultipleCardsMessage.UNIT_MULTIPLE_CARDS_CARD_CLICKED,
|
|
20
|
+
data: UNCardData
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type CardStatusChangedEventState = {
|
|
24
|
+
key: CardMessage.CARD_STATUS_CHANGED,
|
|
25
|
+
data: UNCardData
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type CardActivatedEventState = {
|
|
29
|
+
key: CardMessage.CARD_ACTIVATED,
|
|
30
|
+
data: UNCardData
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type AccountChangedEventState = {
|
|
34
|
+
key: AccountMessage.UNIT_ACCOUNT_CHANGED,
|
|
35
|
+
data: UNAccountData
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
type ActivityFiltersChangedEventState = {
|
|
39
|
+
key: ActivityMessage.UNIT_ACTIVITY_FILTERS_CHANGED
|
|
40
|
+
data: ActivityFiltersChangedEvent
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type RequestCloseBottomSheetFlowEventState = {
|
|
44
|
+
key: UnitMessage.UNIT_REQUEST_CLOSE_FLOW,
|
|
45
|
+
data: EmptyObj
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type RequestRenderingBottomSheetEventState = {
|
|
49
|
+
key: BottomSheetNativeMessage.REQUEST_RENDERING,
|
|
50
|
+
data: BottomSheetRenderingMessage
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type RequestRefreshEventState = {
|
|
54
|
+
key: UnitMessage.UNIT_REQUEST_REFRESH,
|
|
55
|
+
data: RequestRefreshEvent
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//currently left state suffixes to avoid the duplication of the event names
|
|
59
|
+
type SharedEvent =
|
|
60
|
+
| CardStatusChangedEventState
|
|
61
|
+
| CardActivatedEventState
|
|
62
|
+
| MultipleCardsCardClickedEventState
|
|
63
|
+
| AccountChangedEventState
|
|
64
|
+
| ActivityFiltersChangedEventState
|
|
65
|
+
| RequestCloseBottomSheetFlowEventState
|
|
66
|
+
| RequestRenderingBottomSheetEventState
|
|
67
|
+
| RequestRefreshEventState
|
|
68
|
+
|
|
69
|
+
type SharedEventsState = {
|
|
70
|
+
event?: SharedEvent
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const initialState: SharedEventsState = {};
|
|
74
|
+
|
|
75
|
+
const SharedEventsSlice = createSlice({
|
|
76
|
+
name: 'SharedEvents',
|
|
77
|
+
initialState: initialState,
|
|
78
|
+
reducers: {
|
|
79
|
+
setEvent(state, action: PayloadAction<SharedEvent>) {
|
|
80
|
+
state.event = action.payload;
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export const { setEvent } = SharedEventsSlice.actions;
|
|
87
|
+
export const selectSharedEvents = (state: RootState) => state.sharedEvents;
|
|
88
|
+
export default SharedEventsSlice.reducer;
|
package/src/store/store.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { configureStore } from '@reduxjs/toolkit';
|
|
2
2
|
import wallet from '../slices/pushProvisioningSlice';
|
|
3
|
+
import configuration from '../slices/ConfigurationSlice';
|
|
4
|
+
import sharedEvents from '../slices/SharedEventsSlice';
|
|
5
|
+
import bottomSheet from '../slices/BottomSheetSlice';
|
|
3
6
|
|
|
4
7
|
export const store = configureStore({
|
|
5
8
|
reducer: {
|
|
6
|
-
wallet
|
|
7
|
-
|
|
9
|
+
wallet,
|
|
10
|
+
configuration,
|
|
11
|
+
sharedEvents,
|
|
12
|
+
bottomSheet,
|
|
13
|
+
},
|
|
8
14
|
});
|
|
9
15
|
|
|
10
16
|
export type RootState = ReturnType<typeof store.getState>;
|