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,12 +1,54 @@
|
|
|
1
1
|
import type { RequestRenderingEvent } from '../../messages/webMessages/unitMessages';
|
|
2
2
|
import type { PresentationMode, WebComponentType } from './webComponent.types';
|
|
3
|
+
import {
|
|
4
|
+
UNAddToWalletComponentProps,
|
|
5
|
+
} from '../../nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent';
|
|
6
|
+
|
|
7
|
+
export enum BottomSheetNativePlaceType {
|
|
8
|
+
overFullScreen = 'overFullScreen',
|
|
9
|
+
modal = 'modal',
|
|
10
|
+
menu = 'menu',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum ScrollState {
|
|
14
|
+
/*
|
|
15
|
+
Web View ScrollState -
|
|
16
|
+
- Initialization:
|
|
17
|
+
'onTop': for a scrollable webView.
|
|
18
|
+
(onTop means that the webview is onTop of the BottomSheet and we need to recognize the scroll direction).
|
|
19
|
+
Then, it recognize the scroll direction and update the scroll state as needed.
|
|
20
|
+
|
|
21
|
+
-'unScrollable': for an unscrollable webView
|
|
22
|
+
*/
|
|
23
|
+
onTop = 'onTop',
|
|
24
|
+
unScrollable = 'unScrollable',
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
These are only for maintain the bottom sheet scrollState (not an initialize scroll state).
|
|
28
|
+
It relates to the current scroll state.
|
|
29
|
+
onlyWebView means that now the scroll is on webview (only).
|
|
30
|
+
onlyBottomSheet means that now the scroll is on bottomSheet (only).
|
|
31
|
+
*/
|
|
32
|
+
onlyWebView = 'webViewScroll',
|
|
33
|
+
onlyBottomSheet = 'onlyBottomSheet',
|
|
34
|
+
}
|
|
3
35
|
|
|
4
36
|
export enum BottomSheetRenderingType {
|
|
5
37
|
Slot,
|
|
6
|
-
WebComponent,
|
|
7
38
|
NativeComponent
|
|
8
39
|
}
|
|
9
40
|
|
|
41
|
+
export enum BottomSheetNativeComponentType {
|
|
42
|
+
AddToWalletComponent = 'UNAddToWalletComponent',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type BottomSheetNativeAddToWalletComponentType = {
|
|
46
|
+
type: BottomSheetNativeComponentType.AddToWalletComponent,
|
|
47
|
+
props: UNAddToWalletComponentProps
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type BottomSheetNativeComponent = BottomSheetNativeAddToWalletComponentType
|
|
51
|
+
|
|
10
52
|
export type BottomSheetSlotData = {
|
|
11
53
|
// The data that rendered by the web view
|
|
12
54
|
componentName?: WebComponentType,
|
|
@@ -14,6 +56,11 @@ export type BottomSheetSlotData = {
|
|
|
14
56
|
requestRenderingEvent: RequestRenderingEvent
|
|
15
57
|
}
|
|
16
58
|
|
|
59
|
+
export type BottomSheetComponentData = {
|
|
60
|
+
componentName?: WebComponentType,
|
|
61
|
+
componentResourceId?: string,
|
|
62
|
+
}
|
|
63
|
+
|
|
17
64
|
export type WebComponentData = {
|
|
18
65
|
type: WebComponentType;
|
|
19
66
|
presentationMode?: PresentationMode,
|
|
@@ -24,7 +71,9 @@ export type WebComponentData = {
|
|
|
24
71
|
}
|
|
25
72
|
|
|
26
73
|
export type NativeComponentData = {
|
|
27
|
-
component:
|
|
74
|
+
component: BottomSheetNativeComponent,
|
|
75
|
+
scrollState?: ScrollState,
|
|
76
|
+
nativePlace?: BottomSheetNativePlaceType,
|
|
28
77
|
}
|
|
29
78
|
|
|
30
79
|
export interface SlotRendering {
|
|
@@ -32,11 +81,6 @@ export interface SlotRendering {
|
|
|
32
81
|
data: BottomSheetSlotData
|
|
33
82
|
}
|
|
34
83
|
|
|
35
|
-
export interface WebComponentRendering {
|
|
36
|
-
type: BottomSheetRenderingType.WebComponent,
|
|
37
|
-
data: WebComponentData
|
|
38
|
-
}
|
|
39
|
-
|
|
40
84
|
export interface NativeComponentRendering {
|
|
41
85
|
type: BottomSheetRenderingType.NativeComponent,
|
|
42
86
|
data: NativeComponentData
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
import type { UNErrorData } from '../shared/error.types';
|
|
4
|
+
import type { UNError } from '../shared';
|
|
5
|
+
|
|
6
|
+
const isUNErrorData = (obj: any): obj is UNErrorData => {
|
|
7
|
+
return (
|
|
8
|
+
typeof obj === 'object' &&
|
|
9
|
+
'title' in obj
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const isUNErrorDataArray = (arr: any): arr is UNErrorData[] => {
|
|
14
|
+
return (
|
|
15
|
+
Array.isArray(arr) &&
|
|
16
|
+
arr.every((item) => isUNErrorData(item))
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const isUNError = (error: any): error is UNError => {
|
|
21
|
+
return 'errors' in error && isUNErrorDataArray(error.errors);
|
|
22
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export enum WebComponentType {
|
|
2
2
|
card = 'unit-elements-card',
|
|
3
|
+
multipleCards = 'unit-elements-multiple-cards',
|
|
3
4
|
bookPayment = 'unit-elements-book-payment',
|
|
4
5
|
activity = 'unit-elements-activity',
|
|
5
6
|
slot = 'unit-elements-sdk-slot',
|
|
@@ -7,8 +8,9 @@ export enum WebComponentType {
|
|
|
7
8
|
checkDeposit = 'unit-elements-check-deposit',
|
|
8
9
|
achDebitPayment = 'unit-elements-ach-debit-payment',
|
|
9
10
|
achCreditPayment = 'unit-elements-ach-credit-payment',
|
|
10
|
-
|
|
11
11
|
cardAction = 'unit-elements-card-action',
|
|
12
|
+
programDetails = 'unit-elements-program-details',
|
|
13
|
+
nextRepayment = 'unit-elements-next-repayment',
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export enum PresentationMode {
|
|
@@ -129,3 +129,9 @@ export enum UNAccountMenuAction {
|
|
|
129
129
|
OpenAccountStatements = 'OpenAccountStatements',
|
|
130
130
|
DownloadBankVerificationLetter = 'DownloadBankVerificationLetter',
|
|
131
131
|
}
|
|
132
|
+
|
|
133
|
+
export enum UNAccountMenuItem {
|
|
134
|
+
details = 'details',
|
|
135
|
+
statements = 'statements',
|
|
136
|
+
bankVerification = 'bankVerification',
|
|
137
|
+
}
|
|
@@ -2,7 +2,12 @@ import type { RESPONSE_KEYS } from '../../messages/webMessages/onLoadMessage';
|
|
|
2
2
|
import type { UNAuthorizationData } from './authorization.types';
|
|
3
3
|
import type { UNTransactionData } from './transactions.types';
|
|
4
4
|
|
|
5
|
+
export enum UNActivityComponentPaginationType {
|
|
6
|
+
infiniteScroll = 'infiniteScroll',
|
|
7
|
+
pagination = 'pagination'
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
export type UNActivityOnLoadData = {
|
|
6
|
-
[RESPONSE_KEYS.
|
|
7
|
-
[RESPONSE_KEYS.transactions]: UNTransactionData,
|
|
11
|
+
[RESPONSE_KEYS.authorizations]: [UNAuthorizationData],
|
|
12
|
+
[RESPONSE_KEYS.transactions]: [UNTransactionData],
|
|
8
13
|
}
|
|
@@ -2,7 +2,7 @@ import type { UNAddress, UNFullName, UNLimits, UNRelationship, UNTags } from './
|
|
|
2
2
|
|
|
3
3
|
export type UNCardData = UNIndividualDebitCard | UNBusinessDebitCard
|
|
4
4
|
|
|
5
|
-
type UNCardStatus =
|
|
5
|
+
type UNCardStatus = 'Active' | 'Inactive' | 'Stolen' | 'Lost' | 'Frozen' | 'ClosedByCustomer' | 'SuspectedFraud'
|
|
6
6
|
|
|
7
7
|
export type UNIndividualDebitCard = {
|
|
8
8
|
id: string,
|
|
@@ -70,3 +70,12 @@ export enum UNCardMenuAction {
|
|
|
70
70
|
SetPin = 'SetPin',
|
|
71
71
|
AddToWallet = 'AddToWallet'
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
export enum UNCardMenuItem {
|
|
75
|
+
freeze = 'freeze',
|
|
76
|
+
addToWallet = 'addToWallet',
|
|
77
|
+
managePin = 'managePin',
|
|
78
|
+
replace = 'replace',
|
|
79
|
+
report = 'report',
|
|
80
|
+
close = 'close',
|
|
81
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type UNError = {
|
|
2
|
+
errors: UNErrorData[]
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export type UNErrorData = {
|
|
6
|
+
status?: string,
|
|
7
|
+
title: string,
|
|
8
|
+
detail?: string,
|
|
9
|
+
details?: string,
|
|
10
|
+
meta?: UNErrorMeta
|
|
11
|
+
code?: UNErrorCodes,
|
|
12
|
+
error?: Error
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface UNErrorMeta {
|
|
16
|
+
meta: Record<string, string>,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export enum UNErrorCodes {
|
|
20
|
+
FEATURE_DISABLED = 'feature_disabled',
|
|
21
|
+
INVALID_VALUE = 'invalid_value',
|
|
22
|
+
LIMITS_EXCEEDED = 'limits_exceeded',
|
|
23
|
+
NOT_FOUND = 'not_found',
|
|
24
|
+
ACCOUNT_CUSTOMER_MISMATCH = 'account_customer_mismatch',
|
|
25
|
+
NOT_SUPPORTED_FOR_ACCOUNT_STATUS = 'not_supported_for_account_status',
|
|
26
|
+
NOT_SUPPORTED_FOR_ACCOUNT_TYPE = 'not_supported_for_account_type',
|
|
27
|
+
NOT_SUPPORTED_FOR_CARD = 'not_supported_for_card',
|
|
28
|
+
NOT_SUPPORTED_FOR_CARD_STATUS = 'not_supported_for_card_status',
|
|
29
|
+
NOT_SUPPORTED_FOR_CARD_TYPE = 'not_supported_for_card_type',
|
|
30
|
+
INVALID_NONCE = 'invalid_nonce',
|
|
31
|
+
NOT_SUPPORTED_FOR_PAYMENT_TYPE = 'not_supported_for_payment_type',
|
|
32
|
+
PAYMENT_INVALID = 'payment_invalid',
|
|
33
|
+
UNAUTHORIZED = 'unauthorized',
|
|
34
|
+
FORBIDDEN = 'forbidden',
|
|
35
|
+
ALREADY_EXISTS = 'already_exists',
|
|
36
|
+
CUSTOMER_NAME_UNDELIVERABLE = 'customer_name_undeliverable',
|
|
37
|
+
CUSTOMER_ADDRESS_UNDELIVERABLE = 'customer_address_undeliverable',
|
|
38
|
+
}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
+
import type { UNError } from './error.types';
|
|
2
|
+
|
|
1
3
|
export type UNOnLoadResponseData<T> = {
|
|
2
4
|
data: T,
|
|
3
5
|
}
|
|
4
6
|
|
|
5
|
-
export type UNError = {
|
|
6
|
-
errors: UNErrorData[]
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type UNErrorData = {
|
|
10
|
-
status: string,
|
|
11
|
-
title: string,
|
|
12
|
-
detail?: string,
|
|
13
|
-
details?: string,
|
|
14
|
-
meta?: Record<string, string>
|
|
15
|
-
}
|
|
16
|
-
|
|
17
7
|
export type UNOnLoadResponse<T> =
|
|
18
8
|
| UNOnLoadResponseData<T>
|
|
19
9
|
| UNError
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
export type UNPaymentStatus = 'Sent' | 'Rejected'
|
|
2
2
|
|
|
3
3
|
export type UNAchCounterparty = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
name: string
|
|
5
|
+
accountNumber: string
|
|
6
|
+
routingNumber: string
|
|
7
|
+
accountType: UNAccountType
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
type UNAccountType = 'Savings' | 'Checking'
|
|
11
11
|
|
|
12
|
+
export enum UNPlaidAccountFilter {
|
|
13
|
+
checking = 'checking',
|
|
14
|
+
savings = 'savings',
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
export enum UNCounterpartyVerificationMethod {
|
|
13
|
-
|
|
18
|
+
Plaid = 'Plaid',
|
|
14
19
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type UNRepaymentData = UNCreditAccountRepaymentData
|
|
2
|
+
|
|
3
|
+
export type UNCreditAccountRepaymentData = {
|
|
4
|
+
type: 'creditAccountRepaymentInformation'
|
|
5
|
+
attributes: {
|
|
6
|
+
remainingAmountDue: number // Cents
|
|
7
|
+
remainingAmountOverdue: number // Cents
|
|
8
|
+
statementPeriodStart: string // "2023-07-01",
|
|
9
|
+
statementPeriodEnd: string // "2023-07-31",
|
|
10
|
+
nextRepaymentDueDate: string // "2023-08-13"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
export enum UNVersioningStrategyType {
|
|
2
|
+
latest = 'latest',
|
|
2
3
|
exact = 'exact',
|
|
3
4
|
upToNextMinor = 'upToNextMinor',
|
|
4
5
|
upToNextMajor = 'upToNextMajor'
|
|
5
6
|
}
|
|
6
7
|
|
|
8
|
+
type UNLatestWebVersioningStrategy = {
|
|
9
|
+
type: UNVersioningStrategyType.latest;
|
|
10
|
+
}
|
|
11
|
+
|
|
7
12
|
type UNExactWebVersioningStrategy = {
|
|
8
13
|
type: UNVersioningStrategyType.exact;
|
|
9
14
|
major: number;
|
|
@@ -23,6 +28,7 @@ type UNUpToNextMajorWebVersioningStrategy = {
|
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
export type UNWebVersioningStrategy =
|
|
26
|
-
|
|
31
|
+
UNLatestWebVersioningStrategy
|
|
32
|
+
| UNExactWebVersioningStrategy
|
|
27
33
|
| UNUpToNextMinorWebVersioningStrategy
|
|
28
34
|
| UNUpToNextMajorWebVersioningStrategy;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import EventBus from '../helpers/EventBus';
|
|
2
|
-
import { SDKMessage, SdkScriptFetched } from '../messages/nativeMessages/sdkMessage';
|
|
3
1
|
import { UnitSDK } from './UnitSdkManager';
|
|
4
2
|
|
|
5
3
|
import { getUnitScriptUrl } from './UnitSdkManager.utils.internal';
|
|
4
|
+
import { store } from '../store/store';
|
|
5
|
+
import { setUnitScript, selectConfiguration } from '../slices/ConfigurationSlice';
|
|
6
6
|
|
|
7
7
|
let isLoadingScript = false;
|
|
8
8
|
|
|
9
|
-
/** globalUnitScript is exported ONLY to our project components **/
|
|
10
|
-
export let globalUnitScript = '';
|
|
11
|
-
|
|
12
9
|
export const fetchUnitScript = async () => {
|
|
10
|
+
const configurationState = selectConfiguration(store.getState());
|
|
11
|
+
const globalUnitScript = configurationState.unitScript;
|
|
13
12
|
const env = UnitSDK.getEnv();
|
|
14
13
|
const webVersioningStrategy = UnitSDK.getWebVersioningStrategy();
|
|
15
14
|
if (isLoadingScript || globalUnitScript || !env) {
|
|
@@ -21,9 +20,7 @@ export const fetchUnitScript = async () => {
|
|
|
21
20
|
const unitScriptRes = await fetch(getUnitScriptUrl(env, webVersioningStrategy));
|
|
22
21
|
const unitScript = await unitScriptRes.text();
|
|
23
22
|
if (unitScript) {
|
|
24
|
-
|
|
25
|
-
EventBus.Instance.event(SDKMessage.IS_SCRIPT_FETCHED, scriptFetchData);
|
|
26
|
-
globalUnitScript = unitScript;
|
|
23
|
+
store.dispatch(setUnitScript(unitScript));
|
|
27
24
|
}
|
|
28
25
|
return null;
|
|
29
26
|
} catch (e) {
|
|
@@ -3,7 +3,7 @@ import { UNVersioningStrategyType, UNWebVersioningStrategy } from '../types/shar
|
|
|
3
3
|
const WEB_SDK_RECOMMENDED_STRATEGY: UNWebVersioningStrategy = {
|
|
4
4
|
type: UNVersioningStrategyType.upToNextMinor,
|
|
5
5
|
major: 1,
|
|
6
|
-
minor:
|
|
6
|
+
minor: 6,
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export const UNSDKConstants = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { NativeModules } from 'react-native';
|
|
2
|
-
import EventBus from '../helpers/EventBus';
|
|
3
|
-
import { SDKMessage } from '../messages/nativeMessages/sdkMessage';
|
|
4
2
|
import { fetchUnitScript } from './UnitSdk.api';
|
|
5
3
|
import { UnitUiManager } from './unitUiManager/unitUiManager';
|
|
6
4
|
import type { UNFonts } from '../types/shared/fonts.types';
|
|
7
5
|
import { warnClientIfNeeded } from '../utils/webVersioningStrategy.utils';
|
|
8
6
|
import { UNSDKConstants } from './UnitSdk.constants';
|
|
9
7
|
import type { UNWebVersioningStrategy } from '../types/shared';
|
|
8
|
+
import { setTheme, setLanguage } from '../slices/ConfigurationSlice';
|
|
9
|
+
import { store } from '../store/store';
|
|
10
10
|
|
|
11
11
|
export enum UNEnvironment {
|
|
12
12
|
sandbox = 'sandbox',
|
|
@@ -18,8 +18,6 @@ export class UnitSDK {
|
|
|
18
18
|
protected static env?: UNEnvironment;
|
|
19
19
|
protected static webVersioningStrategy: UNWebVersioningStrategy;
|
|
20
20
|
protected static customerToken?: string;
|
|
21
|
-
protected static theme?: string;
|
|
22
|
-
protected static language?: string;
|
|
23
21
|
protected static fonts?: UNFonts;
|
|
24
22
|
protected static signedNonce?: string;
|
|
25
23
|
protected static pushProvisionModule?: typeof NativeModules;
|
|
@@ -28,14 +26,12 @@ export class UnitSDK {
|
|
|
28
26
|
try {
|
|
29
27
|
this.env = env;
|
|
30
28
|
this.webVersioningStrategy = webVersioningStrategy;
|
|
31
|
-
this.theme = theme;
|
|
32
|
-
this.language = language;
|
|
33
29
|
this.fonts = fonts;
|
|
34
|
-
|
|
30
|
+
store.dispatch(setTheme(theme));
|
|
31
|
+
store.dispatch(setLanguage(language));
|
|
35
32
|
this.ui = new UnitUiManager();
|
|
36
33
|
warnClientIfNeeded(this.webVersioningStrategy);
|
|
37
34
|
await fetchUnitScript();
|
|
38
|
-
EventBus.Instance.event(SDKMessage.IS_SDK_INITIALIZED, {});
|
|
39
35
|
} catch (e) {
|
|
40
36
|
console.log(e);
|
|
41
37
|
}
|
|
@@ -50,8 +46,8 @@ export class UnitSDK {
|
|
|
50
46
|
};
|
|
51
47
|
|
|
52
48
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
* @deprecated - Unit SDK is managing the signedNonce, no need to provide it
|
|
50
|
+
*/
|
|
55
51
|
public static setSignedNonce = (signedNonce: string) => {
|
|
56
52
|
this.signedNonce = signedNonce;
|
|
57
53
|
};
|
|
@@ -64,21 +60,13 @@ export class UnitSDK {
|
|
|
64
60
|
return this.webVersioningStrategy;
|
|
65
61
|
};
|
|
66
62
|
|
|
67
|
-
public static getTheme = () => {
|
|
68
|
-
return this.theme;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
public static getLanguage = () => {
|
|
72
|
-
return this.language;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
63
|
public static getFonts = () => {
|
|
76
64
|
return this.fonts;
|
|
77
65
|
};
|
|
78
66
|
|
|
79
67
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
* @deprecated - Unit SDK is managing the signedNonce, no need to provide it
|
|
69
|
+
*/
|
|
82
70
|
public static getSignedNonce = () => {
|
|
83
71
|
return this.signedNonce;
|
|
84
72
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
const { AndroidAppInfo, IOSAppInfo } = NativeModules;
|
|
3
|
+
|
|
4
|
+
const appInfoModule = Platform.OS === 'android' ? AndroidAppInfo : IOSAppInfo;
|
|
5
|
+
|
|
6
|
+
export const getAppName = async () => {
|
|
7
|
+
try {
|
|
8
|
+
const response = await appInfoModule.getAppName();
|
|
9
|
+
return response;
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error(error);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const getVersion = async () => {
|
|
16
|
+
try {
|
|
17
|
+
const response = await appInfoModule.getVersion();
|
|
18
|
+
return response;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error(error);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const getBuildNumber = async () => {
|
|
25
|
+
try {
|
|
26
|
+
const response = await appInfoModule.getBuildNumber();
|
|
27
|
+
return response;
|
|
28
|
+
} catch (error) {
|
|
29
|
+
console.error(error);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const getAppIdentifier = async () => {
|
|
34
|
+
try {
|
|
35
|
+
const response = await appInfoModule.getAppIdentifier();
|
|
36
|
+
return response;
|
|
37
|
+
} catch (error) {
|
|
38
|
+
console.error(error);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -3,6 +3,8 @@ import { UNSDKConstants } from '../unitSdkManager/UnitSdk.constants';
|
|
|
3
3
|
|
|
4
4
|
export const getWebSdkVersionString = (webVersioningStrategy: UNWebVersioningStrategy) => {
|
|
5
5
|
switch (webVersioningStrategy.type) {
|
|
6
|
+
case UNVersioningStrategyType.latest:
|
|
7
|
+
return 'latest';
|
|
6
8
|
case UNVersioningStrategyType.exact:
|
|
7
9
|
return `${webVersioningStrategy.major}.${webVersioningStrategy.minor}.${webVersioningStrategy.patch}`;
|
|
8
10
|
case UNVersioningStrategyType.upToNextMinor:
|
|
@@ -14,6 +16,8 @@ export const getWebSdkVersionString = (webVersioningStrategy: UNWebVersioningStr
|
|
|
14
16
|
|
|
15
17
|
export const getVersionArray = (webVersioningStrategy: UNWebVersioningStrategy) => {
|
|
16
18
|
switch (webVersioningStrategy.type) {
|
|
19
|
+
case UNVersioningStrategyType.latest:
|
|
20
|
+
return [null, null, null];
|
|
17
21
|
case UNVersioningStrategyType.exact:
|
|
18
22
|
return [webVersioningStrategy.major, webVersioningStrategy.minor, webVersioningStrategy.patch];
|
|
19
23
|
case UNVersioningStrategyType.upToNextMinor:
|
|
@@ -43,6 +47,9 @@ export const isBehindRecommendedStrategy = (currentWebVersioningStrategy: UNWebV
|
|
|
43
47
|
};
|
|
44
48
|
|
|
45
49
|
export const warnClientIfNeeded = (currentWebVersioningStrategy: UNWebVersioningStrategy) => {
|
|
50
|
+
if (currentWebVersioningStrategy.type === UNVersioningStrategyType.latest) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
46
53
|
if (currentWebVersioningStrategy.major > UNSDKConstants.webSDKRecommendedStrategy.major) {
|
|
47
54
|
console.log(`The current web sdk version is ${getWebSdkVersionString(currentWebVersioningStrategy)} which is higher than the latest supported version ${getWebSdkVersionString(UNSDKConstants.webSDKRecommendedStrategy)}. Please update the latest version of the web sdk.`);
|
|
48
55
|
}
|