@onramper/onramper-react-native 1.2.1 → 1.2.2-1

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 (51) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/Info.plist +0 -0
  4. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/OnramperSDK +0 -0
  5. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/OnramperSDK_OnramperSDK.bundle/Info.plist +0 -0
  6. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/DWARF/OnramperSDK +0 -0
  7. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/OnramperSDK.yml +1268 -1268
  8. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Info.plist +0 -0
  9. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/OnramperSDK +0 -0
  10. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/OnramperSDK_OnramperSDK.bundle/Info.plist +0 -0
  11. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/DWARF/OnramperSDK +0 -0
  12. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/OnramperSDK.yml +1268 -1268
  13. package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/OnramperSDK.yml +1261 -1261
  14. package/ios/HybridOnramperCheckoutButton.swift +77 -3
  15. package/lib/commonjs/CheckoutButton.js +34 -0
  16. package/lib/commonjs/CheckoutButton.js.map +1 -0
  17. package/lib/commonjs/OnramperClient.js +3 -7
  18. package/lib/commonjs/OnramperClient.js.map +1 -1
  19. package/lib/commonjs/generated/OnramperCheckoutButtonConfig.json +1 -0
  20. package/lib/module/CheckoutButton.js +30 -0
  21. package/lib/module/CheckoutButton.js.map +1 -0
  22. package/lib/module/OnramperClient.js +3 -7
  23. package/lib/module/OnramperClient.js.map +1 -1
  24. package/lib/module/generated/OnramperCheckoutButtonConfig.json +1 -0
  25. package/lib/typescript/commonjs/src/CheckoutButton.d.ts +20 -0
  26. package/lib/typescript/commonjs/src/CheckoutButton.d.ts.map +1 -0
  27. package/lib/typescript/commonjs/src/OnramperClient.d.ts.map +1 -1
  28. package/lib/typescript/commonjs/src/specs/OnramperCheckoutButton.nitro.d.ts +6 -0
  29. package/lib/typescript/commonjs/src/specs/OnramperCheckoutButton.nitro.d.ts.map +1 -1
  30. package/lib/typescript/module/src/CheckoutButton.d.ts +20 -0
  31. package/lib/typescript/module/src/CheckoutButton.d.ts.map +1 -0
  32. package/lib/typescript/module/src/OnramperClient.d.ts.map +1 -1
  33. package/lib/typescript/module/src/specs/OnramperCheckoutButton.nitro.d.ts +6 -0
  34. package/lib/typescript/module/src/specs/OnramperCheckoutButton.nitro.d.ts.map +1 -1
  35. package/nitrogen/generated/ios/OnramperReactNative-Swift-Cxx-Bridge.cpp +8 -0
  36. package/nitrogen/generated/ios/OnramperReactNative-Swift-Cxx-Bridge.hpp +37 -0
  37. package/nitrogen/generated/ios/c++/HybridOnramperCheckoutButtonSpecSwift.hpp +9 -0
  38. package/nitrogen/generated/ios/c++/views/HybridOnramperCheckoutButtonComponent.mm +5 -0
  39. package/nitrogen/generated/ios/swift/Func_void_double.swift +46 -0
  40. package/nitrogen/generated/ios/swift/HybridOnramperCheckoutButtonSpec.swift +1 -0
  41. package/nitrogen/generated/ios/swift/HybridOnramperCheckoutButtonSpec_cxx.swift +32 -0
  42. package/nitrogen/generated/shared/c++/HybridOnramperCheckoutButtonSpec.cpp +2 -0
  43. package/nitrogen/generated/shared/c++/HybridOnramperCheckoutButtonSpec.hpp +4 -0
  44. package/nitrogen/generated/shared/c++/views/HybridOnramperCheckoutButtonComponent.cpp +11 -0
  45. package/nitrogen/generated/shared/c++/views/HybridOnramperCheckoutButtonComponent.hpp +3 -2
  46. package/nitrogen/generated/shared/json/OnramperCheckoutButtonConfig.json +1 -0
  47. package/package.json +4 -2
  48. package/src/CheckoutButton.ts +28 -0
  49. package/src/OnramperClient.ts +2 -5
  50. package/src/generated/OnramperCheckoutButtonConfig.json +1 -0
  51. package/src/specs/OnramperCheckoutButton.nitro.ts +6 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [1.2.2-1]
6
+
7
+ Wrapper-only change; still bundles `OnramperSDK@1.2.2`.
8
+
9
+ ### Fixed
10
+
11
+ - The native checkout button no longer draws over neighbouring views. It reports its content height
12
+ (for example when ToS text appears under the Buy button) and sizes itself to match, and clips any
13
+ overflow as a backstop.
14
+ - A checkout button given an intent that has expired or was already used now shows nothing, instead of
15
+ keeping the previous quote's button on screen.
16
+
17
+ ### Changed
18
+
19
+ - No public TypeScript type changes. Containers around `button` no longer need a `minHeight`.
20
+ - `button` is now an element of a small sizing wrapper rather than the native view itself, and it
21
+ manages its own `style`. Style passed with `cloneElement(button, { style })` is no longer applied;
22
+ style the containing `View` instead.
23
+ - The bare example app is now a demo app: environment switching, automatic SDK initialization,
24
+ currency / payment / country selection, and a settings sheet.
25
+
26
+ ## [1.2.2]
27
+
28
+ Bundles `OnramperSDK@1.2.2`.
29
+
30
+ ### Fixed
31
+
32
+ - Fixed authentication handling during SDK session initialization and refresh.
33
+
34
+ ### Changed
35
+
36
+ - No public React Native API changes or migration are required.
37
+
5
38
  ## [1.2.1]
6
39
 
7
40
  Bundles `OnramperSDK@1.2.1`.
package/README.md CHANGED
@@ -56,7 +56,7 @@ return (
56
56
  );
57
57
  ```
58
58
 
59
- The button renders natively and presents login + payment sheets internally. ToS is rendered inside the button view.
59
+ The button renders natively and presents login + payment sheets internally. ToS is rendered inside the button view, and the button sizes its own height to fit it — don't give its container a fixed height.
60
60
 
61
61
  Already know the user? Pass a third `prefill` argument (`email`, `firstName`, `lastName`, `phoneNumber` — all optional) to have the OnramperID screens arrive pre-populated. It's best-effort and never blocks sign-in. See [prefilling known user values](docs/GETTING_STARTED.md#prefilling-known-user-values) — note the caveat on `email` before supplying it.
62
62