@primer-io/react-native 2.36.0 → 2.37.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.
Files changed (128) hide show
  1. package/android/build.gradle +3 -3
  2. package/android/gradle.properties +4 -4
  3. package/android/src/main/java/com/primerioreactnative/PrimerRN.kt +2 -2
  4. package/android/src/main/java/com/primerioreactnative/datamodels/PrimerSettingsRN.kt +0 -1
  5. package/ios/Sources/DataModels/PrimerSettings+Extensions.swift +0 -2
  6. package/ios/Sources/version.swift +1 -1
  7. package/lib/commonjs/index.js +0 -389
  8. package/lib/commonjs/index.js.map +1 -1
  9. package/lib/module/index.js +11 -58
  10. package/lib/module/index.js.map +1 -1
  11. package/package.json +14 -15
  12. package/primer-io-react-native.podspec +5 -1
  13. package/src/index.tsx +39 -75
  14. package/src/models/PrimerSettings.ts +1 -1
  15. package/lib/typescript/HeadlessUniversalCheckout/Components/NativeResourceView.d.ts +0 -11
  16. package/lib/typescript/HeadlessUniversalCheckout/Components/NativeResourceView.d.ts.map +0 -1
  17. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerGooglePayButton.d.ts +0 -6
  18. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerGooglePayButton.d.ts.map +0 -1
  19. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerKlarnaPaymentView.d.ts +0 -2
  20. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerKlarnaPaymentView.d.ts.map +0 -1
  21. package/lib/typescript/HeadlessUniversalCheckout/Managers/AssetsManager.d.ts +0 -18
  22. package/lib/typescript/HeadlessUniversalCheckout/Managers/AssetsManager.d.ts.map +0 -1
  23. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchManager.d.ts +0 -53
  24. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchManager.d.ts.map +0 -1
  25. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchMandateManager.d.ts +0 -12
  26. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchMandateManager.d.ts.map +0 -1
  27. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/ComponentWithRedirectManager.d.ts +0 -69
  28. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/ComponentWithRedirectManager.d.ts.map +0 -1
  29. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/KlarnaManager.d.ts +0 -63
  30. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/KlarnaManager.d.ts.map +0 -1
  31. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.d.ts +0 -8
  32. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.d.ts.map +0 -1
  33. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.d.ts +0 -30
  34. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.d.ts.map +0 -1
  35. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/Utils/EventType.d.ts +0 -3
  36. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/Utils/EventType.d.ts.map +0 -1
  37. package/lib/typescript/HeadlessUniversalCheckout/Managers/VaultManager.d.ts +0 -13
  38. package/lib/typescript/HeadlessUniversalCheckout/Managers/VaultManager.d.ts.map +0 -1
  39. package/lib/typescript/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.d.ts +0 -11
  40. package/lib/typescript/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.d.ts.map +0 -1
  41. package/lib/typescript/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.d.ts +0 -20
  42. package/lib/typescript/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.d.ts.map +0 -1
  43. package/lib/typescript/HeadlessUniversalCheckout/types.d.ts +0 -1
  44. package/lib/typescript/HeadlessUniversalCheckout/types.d.ts.map +0 -1
  45. package/lib/typescript/Primer.d.ts +0 -3
  46. package/lib/typescript/Primer.d.ts.map +0 -1
  47. package/lib/typescript/RNPrimer.d.ts +0 -34
  48. package/lib/typescript/RNPrimer.d.ts.map +0 -1
  49. package/lib/typescript/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.d.ts +0 -2
  50. package/lib/typescript/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.d.ts.map +0 -1
  51. package/lib/typescript/index.d.ts +0 -67
  52. package/lib/typescript/index.d.ts.map +0 -1
  53. package/lib/typescript/models/IssuingBank.d.ts +0 -9
  54. package/lib/typescript/models/IssuingBank.d.ts.map +0 -1
  55. package/lib/typescript/models/NamedComponentStep.d.ts +0 -12
  56. package/lib/typescript/models/NamedComponentStep.d.ts.map +0 -1
  57. package/lib/typescript/models/NamedComponentValidatableData.d.ts +0 -12
  58. package/lib/typescript/models/NamedComponentValidatableData.d.ts.map +0 -1
  59. package/lib/typescript/models/PrimerCheckoutAdditionalInfo.d.ts +0 -39
  60. package/lib/typescript/models/PrimerCheckoutAdditionalInfo.d.ts.map +0 -1
  61. package/lib/typescript/models/PrimerCheckoutData.d.ts +0 -18
  62. package/lib/typescript/models/PrimerCheckoutData.d.ts.map +0 -1
  63. package/lib/typescript/models/PrimerCheckoutPaymentMethodData.d.ts +0 -7
  64. package/lib/typescript/models/PrimerCheckoutPaymentMethodData.d.ts.map +0 -1
  65. package/lib/typescript/models/PrimerClientSession.d.ts +0 -53
  66. package/lib/typescript/models/PrimerClientSession.d.ts.map +0 -1
  67. package/lib/typescript/models/PrimerComponentDataValidation.d.ts +0 -54
  68. package/lib/typescript/models/PrimerComponentDataValidation.d.ts.map +0 -1
  69. package/lib/typescript/models/PrimerCountryCode.d.ts +0 -4
  70. package/lib/typescript/models/PrimerCountryCode.d.ts.map +0 -1
  71. package/lib/typescript/models/PrimerCurrencyCode.d.ts +0 -4
  72. package/lib/typescript/models/PrimerCurrencyCode.d.ts.map +0 -1
  73. package/lib/typescript/models/PrimerError.d.ts +0 -9
  74. package/lib/typescript/models/PrimerError.d.ts.map +0 -1
  75. package/lib/typescript/models/PrimerHandlers.d.ts +0 -22
  76. package/lib/typescript/models/PrimerHandlers.d.ts.map +0 -1
  77. package/lib/typescript/models/PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts +0 -6
  78. package/lib/typescript/models/PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts.map +0 -1
  79. package/lib/typescript/models/PrimerImplementedRNCallbacks.d.ts +0 -17
  80. package/lib/typescript/models/PrimerImplementedRNCallbacks.d.ts.map +0 -1
  81. package/lib/typescript/models/PrimerInitializationData.d.ts +0 -10
  82. package/lib/typescript/models/PrimerInitializationData.d.ts.map +0 -1
  83. package/lib/typescript/models/PrimerInputElementType.d.ts +0 -12
  84. package/lib/typescript/models/PrimerInputElementType.d.ts.map +0 -1
  85. package/lib/typescript/models/PrimerInterfaces.d.ts +0 -10
  86. package/lib/typescript/models/PrimerInterfaces.d.ts.map +0 -1
  87. package/lib/typescript/models/PrimerPaymentMethodManagerCategory.d.ts +0 -6
  88. package/lib/typescript/models/PrimerPaymentMethodManagerCategory.d.ts.map +0 -1
  89. package/lib/typescript/models/PrimerPaymentMethodResource.d.ts +0 -19
  90. package/lib/typescript/models/PrimerPaymentMethodResource.d.ts.map +0 -1
  91. package/lib/typescript/models/PrimerPaymentMethodTokenData.d.ts +0 -78
  92. package/lib/typescript/models/PrimerPaymentMethodTokenData.d.ts.map +0 -1
  93. package/lib/typescript/models/PrimerRawData.d.ts +0 -20
  94. package/lib/typescript/models/PrimerRawData.d.ts.map +0 -1
  95. package/lib/typescript/models/PrimerSessionIntent.d.ts +0 -5
  96. package/lib/typescript/models/PrimerSessionIntent.d.ts.map +0 -1
  97. package/lib/typescript/models/PrimerSettings.d.ts +0 -173
  98. package/lib/typescript/models/PrimerSettings.d.ts.map +0 -1
  99. package/lib/typescript/models/PrimerTheme.d.ts +0 -24
  100. package/lib/typescript/models/PrimerTheme.d.ts.map +0 -1
  101. package/lib/typescript/models/PrimerValidationError.d.ts +0 -7
  102. package/lib/typescript/models/PrimerValidationError.d.ts.map +0 -1
  103. package/lib/typescript/models/PrimerValidationErrorResult.d.ts +0 -6
  104. package/lib/typescript/models/PrimerValidationErrorResult.d.ts.map +0 -1
  105. package/lib/typescript/models/PrimerVaultedPaymentMethod.d.ts +0 -11
  106. package/lib/typescript/models/PrimerVaultedPaymentMethod.d.ts.map +0 -1
  107. package/lib/typescript/models/PrimerVaultedPaymentMethodAdditionalData.d.ts +0 -5
  108. package/lib/typescript/models/PrimerVaultedPaymentMethodAdditionalData.d.ts.map +0 -1
  109. package/lib/typescript/models/PrimerVaultedPaymentMethodResult.d.ts +0 -6
  110. package/lib/typescript/models/PrimerVaultedPaymentMethodResult.d.ts.map +0 -1
  111. package/lib/typescript/models/RetailOutletsRetail.d.ts +0 -9
  112. package/lib/typescript/models/RetailOutletsRetail.d.ts.map +0 -1
  113. package/lib/typescript/models/ach/AchCollectableData.d.ts +0 -25
  114. package/lib/typescript/models/ach/AchCollectableData.d.ts.map +0 -1
  115. package/lib/typescript/models/ach/AchSteps.d.ts +0 -28
  116. package/lib/typescript/models/ach/AchSteps.d.ts.map +0 -1
  117. package/lib/typescript/models/banks/BanksCollectableData.d.ts +0 -23
  118. package/lib/typescript/models/banks/BanksCollectableData.d.ts.map +0 -1
  119. package/lib/typescript/models/banks/BanksSteps.d.ts +0 -20
  120. package/lib/typescript/models/banks/BanksSteps.d.ts.map +0 -1
  121. package/lib/typescript/models/klarna/KlarnaPaymentCategory.d.ts +0 -24
  122. package/lib/typescript/models/klarna/KlarnaPaymentCategory.d.ts.map +0 -1
  123. package/lib/typescript/models/klarna/KlarnaPaymentCollectableData.d.ts +0 -24
  124. package/lib/typescript/models/klarna/KlarnaPaymentCollectableData.d.ts.map +0 -1
  125. package/lib/typescript/models/klarna/KlarnaPaymentSteps.d.ts +0 -36
  126. package/lib/typescript/models/klarna/KlarnaPaymentSteps.d.ts.map +0 -1
  127. package/lib/typescript/utils/index.d.ts +0 -4
  128. package/lib/typescript/utils/index.d.ts.map +0 -1
@@ -1,24 +0,0 @@
1
- import { NamedComponentValidatableData } from '../NamedComponentValidatableData';
2
- import { KlarnaPaymentCategory } from './KlarnaPaymentCategory';
3
- export type KlarnaPaymentValidatableData = KlarnaPaymentOptions | KlarnaPaymentFinalization;
4
- /**
5
- * A type representing Klarna payment options required for configuring the {@link KlarnaComponent}.
6
- */
7
- export type KlarnaPaymentOptions = {
8
- validatableDataName: 'klarnaPaymentOptions';
9
- /**
10
- * Url used by third-party Android apps to build the intent for returning to the app.
11
- */
12
- returnIntentUrl?: string;
13
- /**
14
- * Payment category required for session creation.
15
- */
16
- paymentCategory: KlarnaPaymentCategory;
17
- } & NamedComponentValidatableData;
18
- /**
19
- * A type representing the finalized Klarna payment session.
20
- */
21
- export type KlarnaPaymentFinalization = {
22
- validatableDataName: 'klarnaPaymentFinalization';
23
- } & NamedComponentValidatableData;
24
- //# sourceMappingURL=KlarnaPaymentCollectableData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KlarnaPaymentCollectableData.d.ts","sourceRoot":"","sources":["../../../../src/models/klarna/KlarnaPaymentCollectableData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,GAAG,yBAAyB,CAAC;AAE5F;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,mBAAmB,EAAE,sBAAsB,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,qBAAqB,CAAC;CACxC,GAAG,6BAA6B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,mBAAmB,EAAE,2BAA2B,CAAC;CAClD,GAAG,6BAA6B,CAAC"}
@@ -1,36 +0,0 @@
1
- import { NamedComponentStep } from './../NamedComponentStep';
2
- import { KlarnaPaymentCategory } from './KlarnaPaymentCategory';
3
- export type KlarnaPaymentStep = PaymentSessionCreated | PaymentViewLoaded | PaymentSessionAuthorized | PaymentSessionFinalized;
4
- /**
5
- * A type that indicates that the payment view is loaded and ready to be displayed.
6
- */
7
- export type PaymentViewLoaded = {
8
- stepName: 'paymentViewLoaded';
9
- } & NamedComponentStep;
10
- /**
11
- * A type representing the created payment session.
12
- */
13
- export type PaymentSessionCreated = {
14
- stepName: 'paymentSessionCreated';
15
- /**
16
- * The list of available Klarna payment categories.
17
- */
18
- paymentCategories: KlarnaPaymentCategory[];
19
- } & NamedComponentStep;
20
- /**
21
- * A type representing the authorized payment session.
22
- */
23
- export type PaymentSessionAuthorized = {
24
- stepName: 'paymentSessionAuthorized';
25
- /**
26
- * The state of the finalization.
27
- */
28
- isFinalized: boolean;
29
- } & NamedComponentStep;
30
- /**
31
- * A type representing the finalized payment session.
32
- */
33
- export type PaymentSessionFinalized = {
34
- stepName: 'paymentSessionFinalized';
35
- } & NamedComponentStep;
36
- //# sourceMappingURL=KlarnaPaymentSteps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KlarnaPaymentSteps.d.ts","sourceRoot":"","sources":["../../../../src/models/klarna/KlarnaPaymentSteps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GACzB,qBAAqB,GACrB,iBAAiB,GACjB,wBAAwB,GACxB,uBAAuB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,EAAE,mBAAmB,CAAA;CAAE,GAAG,kBAAkB,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,uBAAuB,CAAC;IAClC;;OAEG;IACH,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;CAC5C,GAAG,kBAAkB,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,0BAA0B,CAAC;IACrC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB,GAAG,kBAAkB,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAAE,QAAQ,EAAE,yBAAyB,CAAA;CAAE,GAAG,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { RgbaColor } from '../models/PrimerTheme';
2
- export declare function toRgbColor(hex: string): RgbaColor | null;
3
- export declare function parseCallback<T>(data: any, callback: (val: T) => void): void;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAwBxD;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,QAOrE"}