@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.
- package/android/build.gradle +3 -3
- package/android/gradle.properties +4 -4
- package/android/src/main/java/com/primerioreactnative/PrimerRN.kt +2 -2
- package/android/src/main/java/com/primerioreactnative/datamodels/PrimerSettingsRN.kt +0 -1
- package/ios/Sources/DataModels/PrimerSettings+Extensions.swift +0 -2
- package/ios/Sources/version.swift +1 -1
- package/lib/commonjs/index.js +0 -389
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +11 -58
- package/lib/module/index.js.map +1 -1
- package/package.json +14 -15
- package/primer-io-react-native.podspec +5 -1
- package/src/index.tsx +39 -75
- package/src/models/PrimerSettings.ts +1 -1
- package/lib/typescript/HeadlessUniversalCheckout/Components/NativeResourceView.d.ts +0 -11
- package/lib/typescript/HeadlessUniversalCheckout/Components/NativeResourceView.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerGooglePayButton.d.ts +0 -6
- package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerGooglePayButton.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerKlarnaPaymentView.d.ts +0 -2
- package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerKlarnaPaymentView.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/AssetsManager.d.ts +0 -18
- package/lib/typescript/HeadlessUniversalCheckout/Managers/AssetsManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchManager.d.ts +0 -53
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchMandateManager.d.ts +0 -12
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchMandateManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/ComponentWithRedirectManager.d.ts +0 -69
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/ComponentWithRedirectManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/KlarnaManager.d.ts +0 -63
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/KlarnaManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.d.ts +0 -8
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.d.ts +0 -30
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/Utils/EventType.d.ts +0 -3
- package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/Utils/EventType.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/Managers/VaultManager.d.ts +0 -13
- package/lib/typescript/HeadlessUniversalCheckout/Managers/VaultManager.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.d.ts +0 -11
- package/lib/typescript/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.d.ts +0 -20
- package/lib/typescript/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.d.ts.map +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/types.d.ts +0 -1
- package/lib/typescript/HeadlessUniversalCheckout/types.d.ts.map +0 -1
- package/lib/typescript/Primer.d.ts +0 -3
- package/lib/typescript/Primer.d.ts.map +0 -1
- package/lib/typescript/RNPrimer.d.ts +0 -34
- package/lib/typescript/RNPrimer.d.ts.map +0 -1
- package/lib/typescript/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.d.ts +0 -2
- package/lib/typescript/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -67
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/models/IssuingBank.d.ts +0 -9
- package/lib/typescript/models/IssuingBank.d.ts.map +0 -1
- package/lib/typescript/models/NamedComponentStep.d.ts +0 -12
- package/lib/typescript/models/NamedComponentStep.d.ts.map +0 -1
- package/lib/typescript/models/NamedComponentValidatableData.d.ts +0 -12
- package/lib/typescript/models/NamedComponentValidatableData.d.ts.map +0 -1
- package/lib/typescript/models/PrimerCheckoutAdditionalInfo.d.ts +0 -39
- package/lib/typescript/models/PrimerCheckoutAdditionalInfo.d.ts.map +0 -1
- package/lib/typescript/models/PrimerCheckoutData.d.ts +0 -18
- package/lib/typescript/models/PrimerCheckoutData.d.ts.map +0 -1
- package/lib/typescript/models/PrimerCheckoutPaymentMethodData.d.ts +0 -7
- package/lib/typescript/models/PrimerCheckoutPaymentMethodData.d.ts.map +0 -1
- package/lib/typescript/models/PrimerClientSession.d.ts +0 -53
- package/lib/typescript/models/PrimerClientSession.d.ts.map +0 -1
- package/lib/typescript/models/PrimerComponentDataValidation.d.ts +0 -54
- package/lib/typescript/models/PrimerComponentDataValidation.d.ts.map +0 -1
- package/lib/typescript/models/PrimerCountryCode.d.ts +0 -4
- package/lib/typescript/models/PrimerCountryCode.d.ts.map +0 -1
- package/lib/typescript/models/PrimerCurrencyCode.d.ts +0 -4
- package/lib/typescript/models/PrimerCurrencyCode.d.ts.map +0 -1
- package/lib/typescript/models/PrimerError.d.ts +0 -9
- package/lib/typescript/models/PrimerError.d.ts.map +0 -1
- package/lib/typescript/models/PrimerHandlers.d.ts +0 -22
- package/lib/typescript/models/PrimerHandlers.d.ts.map +0 -1
- package/lib/typescript/models/PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts +0 -6
- package/lib/typescript/models/PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts.map +0 -1
- package/lib/typescript/models/PrimerImplementedRNCallbacks.d.ts +0 -17
- package/lib/typescript/models/PrimerImplementedRNCallbacks.d.ts.map +0 -1
- package/lib/typescript/models/PrimerInitializationData.d.ts +0 -10
- package/lib/typescript/models/PrimerInitializationData.d.ts.map +0 -1
- package/lib/typescript/models/PrimerInputElementType.d.ts +0 -12
- package/lib/typescript/models/PrimerInputElementType.d.ts.map +0 -1
- package/lib/typescript/models/PrimerInterfaces.d.ts +0 -10
- package/lib/typescript/models/PrimerInterfaces.d.ts.map +0 -1
- package/lib/typescript/models/PrimerPaymentMethodManagerCategory.d.ts +0 -6
- package/lib/typescript/models/PrimerPaymentMethodManagerCategory.d.ts.map +0 -1
- package/lib/typescript/models/PrimerPaymentMethodResource.d.ts +0 -19
- package/lib/typescript/models/PrimerPaymentMethodResource.d.ts.map +0 -1
- package/lib/typescript/models/PrimerPaymentMethodTokenData.d.ts +0 -78
- package/lib/typescript/models/PrimerPaymentMethodTokenData.d.ts.map +0 -1
- package/lib/typescript/models/PrimerRawData.d.ts +0 -20
- package/lib/typescript/models/PrimerRawData.d.ts.map +0 -1
- package/lib/typescript/models/PrimerSessionIntent.d.ts +0 -5
- package/lib/typescript/models/PrimerSessionIntent.d.ts.map +0 -1
- package/lib/typescript/models/PrimerSettings.d.ts +0 -173
- package/lib/typescript/models/PrimerSettings.d.ts.map +0 -1
- package/lib/typescript/models/PrimerTheme.d.ts +0 -24
- package/lib/typescript/models/PrimerTheme.d.ts.map +0 -1
- package/lib/typescript/models/PrimerValidationError.d.ts +0 -7
- package/lib/typescript/models/PrimerValidationError.d.ts.map +0 -1
- package/lib/typescript/models/PrimerValidationErrorResult.d.ts +0 -6
- package/lib/typescript/models/PrimerValidationErrorResult.d.ts.map +0 -1
- package/lib/typescript/models/PrimerVaultedPaymentMethod.d.ts +0 -11
- package/lib/typescript/models/PrimerVaultedPaymentMethod.d.ts.map +0 -1
- package/lib/typescript/models/PrimerVaultedPaymentMethodAdditionalData.d.ts +0 -5
- package/lib/typescript/models/PrimerVaultedPaymentMethodAdditionalData.d.ts.map +0 -1
- package/lib/typescript/models/PrimerVaultedPaymentMethodResult.d.ts +0 -6
- package/lib/typescript/models/PrimerVaultedPaymentMethodResult.d.ts.map +0 -1
- package/lib/typescript/models/RetailOutletsRetail.d.ts +0 -9
- package/lib/typescript/models/RetailOutletsRetail.d.ts.map +0 -1
- package/lib/typescript/models/ach/AchCollectableData.d.ts +0 -25
- package/lib/typescript/models/ach/AchCollectableData.d.ts.map +0 -1
- package/lib/typescript/models/ach/AchSteps.d.ts +0 -28
- package/lib/typescript/models/ach/AchSteps.d.ts.map +0 -1
- package/lib/typescript/models/banks/BanksCollectableData.d.ts +0 -23
- package/lib/typescript/models/banks/BanksCollectableData.d.ts.map +0 -1
- package/lib/typescript/models/banks/BanksSteps.d.ts +0 -20
- package/lib/typescript/models/banks/BanksSteps.d.ts.map +0 -1
- package/lib/typescript/models/klarna/KlarnaPaymentCategory.d.ts +0 -24
- package/lib/typescript/models/klarna/KlarnaPaymentCategory.d.ts.map +0 -1
- package/lib/typescript/models/klarna/KlarnaPaymentCollectableData.d.ts +0 -24
- package/lib/typescript/models/klarna/KlarnaPaymentCollectableData.d.ts.map +0 -1
- package/lib/typescript/models/klarna/KlarnaPaymentSteps.d.ts +0 -36
- package/lib/typescript/models/klarna/KlarnaPaymentSteps.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -4
- 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 +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"}
|