@revolut/checkout
Advanced tools
Comparing version 1.1.14 to 1.1.15
{ | ||
"name": "@revolut/checkout", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "RevolutCheckout.js as npm module", | ||
@@ -27,5 +27,5 @@ "author": "John Grishin <hi@johngrish.in>", | ||
"build": "run-s build:*", | ||
"build:esm": "tsc -p tsconfig.esm.json", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:types": "tsc -p tsconfig.types.json", | ||
"build:esm": "tsc -p tsconfig.esm.json --stripInternal", | ||
"build:cjs": "tsc -p tsconfig.cjs.json --stripInternal", | ||
"build:types": "tsc -p tsconfig.types.json --stripInternal", | ||
"prebuild": "rimraf esm cjs types", | ||
@@ -32,0 +32,0 @@ "test": "jest", |
export { RevolutCheckoutLoader as default } from './loader'; | ||
export { isRevolutCheckoutError, isValidationError, isValidLocale, } from './checks'; | ||
export { ValidationErrorType, ValidationError, RevolutCheckoutErrorType, RevolutCheckoutError, FieldStatus, FieldClasses, FieldStyles, Locale, RevolutCheckoutCardField, RevolutCheckoutInstance, RevolutUpsellModuleInstance, RevolutPayEvents, RevolutPayEventPayload, UpsellModuleCardGatewayBannerInstance, Mode, WidgetPaymentsRevolutPayOptions, WidgetPaymentRequestInstance, WidgetUpsellCardGatewayBannerOptions, } from './types'; | ||
export { ValidationErrorType, ValidationError, RevolutCheckoutErrorType, RevolutCheckoutError, FieldStatus, FieldClasses, FieldStyles, Locale, RevolutCheckoutCardField, RevolutCheckoutInstance, RevolutPaymentsModuleOptions, RevolutPaymentsModuleInstance, RevolutUpsellModuleInstance, RevolutUpsellModuleOptions, RevolutPayEvents, RevolutPayEventPayload, UpsellModuleCardGatewayBannerInstance, UpsellModulePromotionalBannerInstance, UpsellModuleEnrollmentConfirmationBannerInstance, Mode, WidgetPaymentsRevolutPayOptions, WidgetPaymentRequestInstance, WidgetUpsellCardGatewayBannerOptions, WidgetUpsellPromotionalBannerOptions, WidgetUpsellEnrollmentConfirmationBannerOptions, } from './types'; | ||
export { getRevolutPayOrderIdURLParam, getRevolutPaySuccessURLParam, getRevolutPayFailureURLParam, } from './helpers'; |
@@ -98,2 +98,4 @@ import { MODE, LOCALES } from './constants'; | ||
classes?: FieldClasses; | ||
/** Whether to prefer dark or light theme. Defaults to light */ | ||
theme?: 'light' | 'dark'; | ||
/** | ||
@@ -286,4 +288,2 @@ * Don't ask user for the `postcode` inside the card field. | ||
payments: (option: RevolutPaymentsModuleOptions) => RevolutPaymentsModuleInstance; | ||
/** The upsell SDK module */ | ||
upsell: (option: RevolutUpsellModuleOptions) => RevolutUpsellModuleInstance; | ||
} | ||
@@ -357,2 +357,5 @@ export interface RevolutPaymentsModuleInstance { | ||
customer?: Partial<CustomerDetails>; | ||
style?: { | ||
backgroundColor?: string; | ||
}; | ||
/** Whether promotional banner should be shown if user has not enrolled */ | ||
@@ -367,7 +370,2 @@ promotionalBanner?: boolean; | ||
} | ||
export interface RevolutCheckout { | ||
(token: string): RevolutCheckoutInstance; | ||
payments: (option: RevolutPaymentsModuleOptions) => RevolutPaymentsModuleInstance; | ||
upsell: (option: RevolutUpsellModuleOptions) => RevolutUpsellModuleInstance; | ||
} | ||
export {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52907
1101