@adyen/adyen-web 5.19.0 → 5.22.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/dist/adyen.css +1 -1
- package/dist/adyen.css.map +1 -1
- package/dist/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/adyen.css +1 -1
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +1 -1
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/ar.js +1 -1
- package/dist/es/cs-CZ.js +1 -1
- package/dist/es/da-DK.js +1 -1
- package/dist/es/de-DE.js +1 -1
- package/dist/es/el-GR.js +1 -1
- package/dist/es/es-ES.js +1 -1
- package/dist/es/fi-FI.js +1 -1
- package/dist/es/fr-FR.js +1 -1
- package/dist/es/hr-HR.js +1 -1
- package/dist/es/hu-HU.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/it-IT.js +1 -1
- package/dist/es/ja-JP.js +1 -1
- package/dist/es/ko-KR.js +1 -1
- package/dist/es/nl-NL.js +1 -1
- package/dist/es/no-NO.js +1 -1
- package/dist/es/pl-PL.js +1 -1
- package/dist/es/pt-BR.js +1 -1
- package/dist/es/pt-PT.js +1 -0
- package/dist/es/ro-RO.js +1 -1
- package/dist/es/ru-RU.js +1 -1
- package/dist/es/sk-SK.js +1 -1
- package/dist/es/sl-SI.js +1 -1
- package/dist/es/sv-SE.js +1 -1
- package/dist/es/zh-CN.js +1 -1
- package/dist/es/zh-TW.js +1 -1
- package/dist/es.modern/adyen.css +1 -1
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/ar.js +1 -1
- package/dist/es.modern/cs-CZ.js +1 -1
- package/dist/es.modern/da-DK.js +1 -1
- package/dist/es.modern/de-DE.js +1 -1
- package/dist/es.modern/el-GR.js +1 -1
- package/dist/es.modern/es-ES.js +1 -1
- package/dist/es.modern/fi-FI.js +1 -1
- package/dist/es.modern/fr-FR.js +1 -1
- package/dist/es.modern/hr-HR.js +1 -1
- package/dist/es.modern/hu-HU.js +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/es.modern/it-IT.js +1 -1
- package/dist/es.modern/ja-JP.js +1 -1
- package/dist/es.modern/ko-KR.js +1 -1
- package/dist/es.modern/nl-NL.js +1 -1
- package/dist/es.modern/no-NO.js +1 -1
- package/dist/es.modern/pl-PL.js +1 -1
- package/dist/es.modern/pt-BR.js +1 -1
- package/dist/es.modern/pt-PT.js +1 -0
- package/dist/es.modern/ro-RO.js +1 -1
- package/dist/es.modern/ru-RU.js +1 -1
- package/dist/es.modern/sk-SK.js +1 -1
- package/dist/es.modern/sl-SI.js +1 -1
- package/dist/es.modern/sv-SE.js +1 -1
- package/dist/es.modern/zh-CN.js +1 -1
- package/dist/es.modern/zh-TW.js +1 -1
- package/dist/types/components/Card/Bancontact.d.ts +1 -0
- package/dist/types/components/Card/Card.d.ts +1 -0
- package/dist/types/components/Giftcard/Giftcard.d.ts +1 -0
- package/dist/types/components/OnlineBankingCZ/index.d.ts +7 -0
- package/dist/types/components/OnlineBankingSK/index.d.ts +7 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/internal/IssuerList/types.d.ts +1 -0
- package/dist/types/components/internal/SecuredFields/lib/CSF/AbstractCSF.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.d.ts +8 -3
- package/dist/types/components/internal/SecuredFields/lib/CSF/extensions/handleBrandFromBinLookup.d.ts +2 -1
- package/dist/types/components/internal/SecuredFields/lib/CSF/utils/cardType.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +2 -1
- package/dist/types/core/CheckoutSession/CheckoutSession.d.ts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/language/config.d.ts +1 -0
- package/dist/types/language/locales/index.d.ts +492 -0
- package/dist/types/language/utils.d.ts +8 -0
- package/dist/types/types/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { h } from 'preact';
|
|
1
2
|
/**
|
|
2
3
|
* Matches a string with one of the locales
|
|
3
4
|
* @param locale -
|
|
@@ -37,3 +38,10 @@ export declare function formatCustomTranslations(customTranslations: object, sup
|
|
|
37
38
|
* @param customTranslations -
|
|
38
39
|
*/
|
|
39
40
|
export declare const loadTranslations: (locale: string, customTranslations?: object) => Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Injects JSX elements in a middle of a translation and returns a JSX array
|
|
43
|
+
* The input string should use %# as the token to know where to insert the component
|
|
44
|
+
* @param translation - Translation string
|
|
45
|
+
* @param renderFunctions - An array function that renders JSX elements
|
|
46
|
+
*/
|
|
47
|
+
export declare const interpolateElement: (translation: string, renderFunctions: ((translation: string) => h.JSX.Element)[]) => (string | h.JSX.Element)[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import paymentMethods from '../components';
|
|
2
2
|
import { ADDRESS_SCHEMA } from '../components/internal/Address/constants';
|
|
3
3
|
import actionTypes from '../core/ProcessResponse/PaymentAction/actionTypes';
|
|
4
|
+
import { InstallmentOptions } from '../components/Card/components/CardInput/components/types';
|
|
4
5
|
export declare type PaymentActionsType = keyof typeof actionTypes;
|
|
5
6
|
/**
|
|
6
7
|
* {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v51/payments__resParam_action API Explorer /payments action}
|
|
@@ -211,6 +212,9 @@ export declare type CheckoutSession = {
|
|
|
211
212
|
id: string;
|
|
212
213
|
sessionData: string;
|
|
213
214
|
};
|
|
215
|
+
export declare type SessionConfiguration = {
|
|
216
|
+
installmentOptions: InstallmentOptions;
|
|
217
|
+
};
|
|
214
218
|
export declare type CheckoutSessionSetupResponse = {
|
|
215
219
|
id: string;
|
|
216
220
|
sessionData: string;
|
|
@@ -218,6 +222,7 @@ export declare type CheckoutSessionSetupResponse = {
|
|
|
218
222
|
expiresAt: string;
|
|
219
223
|
paymentMethods: any;
|
|
220
224
|
returnUrl: string;
|
|
225
|
+
configuration: SessionConfiguration;
|
|
221
226
|
};
|
|
222
227
|
export declare type CheckoutSessionPaymentResponse = {
|
|
223
228
|
sessionData: string;
|
package/package.json
CHANGED