react-native-hyperswitch-dev-sdk 0.4.3 → 0.4.4

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.
Files changed (33) hide show
  1. package/HyperswitchSdkReactNative.podspec +4 -0
  2. package/android/build.gradle +0 -6
  3. package/ios/Modules/ReactNative/HyperModule.h +25 -0
  4. package/ios/Modules/ReactNative/HyperModule.mm +169 -0
  5. package/ios/Modules/ReactNative/HyperswitchModule.swift +223 -165
  6. package/ios/Modules/ReactNative/NativeHyperswitchModule.mm +17 -12
  7. package/ios/Modules/ReactNative/NativeHyperswitchModuleImpl.swift +18 -7
  8. package/ios/Modules/ReactNative/NativePaymentElementModule.mm +122 -122
  9. package/ios/Views/Fabric/NativePaymentElementView.mm +8 -0
  10. package/ios/Views/Native/NativePaymentWidget.swift +26 -22
  11. package/ios/hyperswitchSDK/Core/HyperCVCWidget/CVCWidget.swift +3 -2
  12. package/ios/hyperswitchSDK/Core/HyperPaymentCardTextField/PaymentHandler.swift +1 -1
  13. package/ios/hyperswitchSDK/Core/HyperPaymentSheet/PaymentSheetView+UIKit.swift +79 -13
  14. package/ios/hyperswitchSDK/Core/HyperPaymentSheet/PaymentSheetView.swift +2 -2
  15. package/ios/hyperswitchSDK/Core/HyperPaymentWidget/PaymentWidget.swift +5 -4
  16. package/ios/hyperswitchSDK/Core/HyperSession/PaymentSession+UIKit.swift +14 -0
  17. package/ios/hyperswitchSDK/Core/NativeModule/{HyperModule.swift → HyperModuleImpl.swift} +156 -113
  18. package/ios/hyperswitchSDK/Core/NativeModule/RNHeadlessManager.swift +58 -22
  19. package/ios/hyperswitchSDK/Core/NativeModule/RNViewManager.swift +84 -29
  20. package/ios/hyperswitchSDK/Core/NativeModule/hyper-Bridging-Header.h +2 -0
  21. package/ios/hyperswitchSDK/Public/RNBridgeFactory.h +28 -0
  22. package/ios/hyperswitchSDK/Public/RNBridgeFactory.mm +167 -0
  23. package/ios/hyperswitchSDK/Shared/PaymentSheet.swift +1 -1
  24. package/lib/commonjs/index.bundle.js +1 -1
  25. package/lib/commonjs/index.bundle.js.map +1 -1
  26. package/lib/module/index.bundle.js +1 -1
  27. package/lib/module/index.bundle.js.map +1 -1
  28. package/package.json +6 -2
  29. package/src/context/PaymentSession.ts +2 -0
  30. package/src/specs/NativeHyperswitchModule.ts +2 -2
  31. package/ios/Modules/ReactNative/HyperswitchSdkReactNative.h +0 -5
  32. package/ios/Modules/ReactNative/HyperswitchSdkReactNative.mm +0 -121
  33. package/ios/hyperswitchSDK/Core/NativeModule/HyperModule.m +0 -31
@@ -1,31 +0,0 @@
1
- #import <React/RCTEventEmitter.h>
2
-
3
- @interface RCT_EXTERN_MODULE(HyperModule, RCTEventEmitter)
4
-
5
- RCT_EXTERN_METHOD(sendMessageToNative: (NSString)rnMessage)
6
- RCT_EXTERN_METHOD(exitPaymentsheet: (nonnull NSNumber *)reactTag :(NSString)rnMessage :(BOOL)reset)
7
- RCT_EXTERN_METHOD(exitPaymentMethodManagement: (nonnull NSNumber *)reactTag :(NSString)rnMessage :(BOOL)reset)
8
- RCT_EXTERN_METHOD(exitCardForm: (NSString)rnMessage)
9
- RCT_EXTERN_METHOD(launchWidgetPaymentSheet: (NSDictionary) rnMessage :(RCTResponseSenderBlock)rnCallback)
10
- RCT_EXTERN_METHOD(onAddPaymentMethod: (NSString)rnMessage)
11
- RCT_EXTERN_METHOD(exitWidgetPaymentsheet: (nonnull NSNumber *)reactTag :(NSString)rnMessage :(BOOL)reset)
12
- RCT_EXTERN_METHOD(launchApplePay: (NSString)rnMessage :(RCTResponseSenderBlock)rnCallback)
13
- RCT_EXTERN_METHOD(startApplePay: (NSString)rnMessage :(RCTResponseSenderBlock)startCallback)
14
- RCT_EXTERN_METHOD(presentApplePay: (NSString)rnMessage :(RCTResponseSenderBlock)presentCallback)
15
- RCT_EXTERN_METHOD(notifyWidgetPaymentResult: (nonnull NSNumber *)rootTag :(NSString)rnMessage)
16
- RCT_EXTERN_METHOD(emitPaymentEvent: (nonnull NSNumber *)rootTag :(NSString)eventType :(NSDictionary)payload)
17
- RCT_EXTERN_METHOD(onUpdateIntentEvent: (nonnull NSNumber *)rootTag :(NSString)type :(NSString)result)
18
- RCT_EXTERN_METHOD(onPaymentConfirmButtonClick: (nonnull NSNumber *)rootTag :(NSString)payload :(RCTResponseSenderBlock)callback)
19
- RCT_EXTERN_METHOD(openIframeBridge: (NSString)url :(nonnull NSNumber *)timeoutMs :(RCTResponseSenderBlock)callback)
20
-
21
- + (BOOL)requiresMainQueueSetup
22
- {
23
- return YES;
24
- }
25
-
26
- - (dispatch_queue_t)methodQueue
27
- {
28
- return dispatch_get_main_queue();
29
- }
30
-
31
- @end