@adyen/adyen-web 6.11.0 → 6.12.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.
- package/dist/cjs/adyen.css +4 -4
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +166 -99
- package/dist/es/adyen.css +4 -4
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/components/ANCV/components/ANCVAwait/config.js +1 -1
- package/dist/es/components/ANCV/components/ANCVAwait/config.js.map +1 -1
- package/dist/es/components/Ach/Ach.js +1 -1
- package/dist/es/components/Ach/Ach.js.map +1 -1
- package/dist/es/components/Ach/components/AccountTypeSelector.js +2 -0
- package/dist/es/components/Ach/components/AccountTypeSelector.js.map +1 -0
- package/dist/es/components/Ach/components/AchComponent.js +2 -0
- package/dist/es/components/Ach/components/AchComponent.js.map +1 -0
- package/dist/es/components/Ach/components/useSRPanelForACHErrors.js +2 -0
- package/dist/es/components/Ach/components/useSRPanelForACHErrors.js.map +1 -0
- package/dist/es/components/Ach/components/validate.js +2 -0
- package/dist/es/components/Ach/components/validate.js.map +1 -0
- package/dist/es/components/Ach/defaultProps.js +2 -0
- package/dist/es/components/Ach/defaultProps.js.map +1 -0
- package/dist/es/components/AmazonPay/utils.js +1 -1
- package/dist/es/components/ApplePay/ApplePay.js +1 -1
- package/dist/es/components/Atome/Atome.js +1 -1
- package/dist/es/components/BacsDD/components/BacsInput.js +1 -1
- package/dist/es/components/BcmcMobile/BcmcMobile.js +1 -1
- package/dist/es/components/Boleto/components/BoletoInput/validate.js +1 -1
- package/dist/es/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CVC.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/CardFields.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/DataSfSpan.js +1 -1
- package/dist/es/components/Card/components/CardInput/components/ExpirationDate.js +1 -1
- package/dist/es/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es/components/Card/components/CardInput/validate.js +1 -1
- package/dist/es/components/Donation/components/DonationComponent.js +1 -1
- package/dist/es/components/DuitNow/DuitNow.js +1 -1
- package/dist/es/components/GooglePay/GooglePay.js +1 -1
- package/dist/es/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es/components/PayNow/PayNow.js +1 -1
- package/dist/es/components/PayPal/constants.js +1 -1
- package/dist/es/components/PayPal/constants.js.map +1 -1
- package/dist/es/components/PayTo/PayTo.js.map +1 -1
- package/dist/es/components/Pix/PixInput/PixInput.js.map +1 -1
- package/dist/es/components/PromptPay/PromptPay.js +1 -1
- package/dist/es/components/Redirect/Redirect.js +1 -1
- package/dist/es/components/Riverty/Riverty.js +1 -1
- package/dist/es/components/Riverty/config.js +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2Challenge.js +1 -1
- package/dist/es/components/ThreeDS2/ThreeDS2DeviceFingerprint.js +1 -1
- package/dist/es/components/ThreeDS2/callSubmit3DS2Fingerprint.js +1 -1
- package/dist/es/components/ThreeDS2/components/Challenge/DoChallenge3DS2.js +1 -1
- package/dist/es/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js +1 -1
- package/dist/es/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js.map +1 -1
- package/dist/es/components/ThreeDS2/components/DeviceFingerprint/DoFingerprint3DS2.js +1 -1
- package/dist/es/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js +1 -1
- package/dist/es/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js.map +1 -1
- package/dist/es/components/WeChat/WeChat.js +1 -1
- package/dist/es/components/internal/Address/Address.js +1 -1
- package/dist/es/components/internal/Address/validate.formats.js.map +1 -1
- package/dist/es/components/internal/Countdown/utils.js.map +1 -1
- package/dist/es/components/internal/FormFields/Checkbox/Checkbox.js +1 -1
- package/dist/es/components/internal/FormFields/Checkbox/Checkbox.js.map +1 -1
- package/dist/es/components/internal/FormFields/InputDate/utils.js.map +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +1 -1
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js.map +1 -1
- package/dist/es/components/internal/IbanInput/validate.js +1 -1
- package/dist/es/components/internal/IssuerList/IssuerList.js +1 -1
- package/dist/es/components/internal/IssuerList/IssuerList.js.map +1 -1
- package/dist/es/components/internal/OpenInvoice/useSRPanelForOpenInvoiceErrors.js +1 -1
- package/dist/es/components/internal/OpenInvoice/useSRPanelForOpenInvoiceErrors.js.map +1 -1
- package/dist/es/components/internal/PhoneInput/PhoneInputForm.js +1 -1
- package/dist/es/components/internal/PhoneInput/PhoneInputForm.js.map +1 -1
- package/dist/es/components/internal/PhoneInput/validate.js +1 -1
- package/dist/es/components/internal/QRLoader/QRLoader.js +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js +1 -1
- package/dist/es/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleConfig.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleConfig.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleTab.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/extensions/handleTab.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/partials/processAutoComplete.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/iframes/postMessageValidation.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/tabbing/utils.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/userAgent.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/userAgent.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/constants.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/constants.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/utils/processPlaceholders.js +1 -1
- package/dist/es/components/internal/SecuredFields/lib/securedField/utils/processPlaceholders.js.map +1 -1
- package/dist/es/components/internal/SecuredFields/lib/utilities/addContextTranslations.js +1 -1
- package/dist/es/components/internal/StoreDetails/StoreDetails.js +1 -1
- package/dist/es/components/internal/StoreDetails/StoreDetails.js.map +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es/core/Analytics/Analytics.js +1 -1
- package/dist/es/core/Analytics/Analytics.js.map +1 -1
- package/dist/es/core/Analytics/constants.js +1 -1
- package/dist/es/core/Analytics/constants.js.map +1 -1
- package/dist/es/core/Analytics/utils.js +1 -1
- package/dist/es/core/Errors/constants.js +1 -1
- package/dist/es/core/Errors/constants.js.map +1 -1
- package/dist/es/core/Errors/utils.js +1 -1
- package/dist/es/core/Errors/utils.js.map +1 -1
- package/dist/es/core/RiskModule/components/DeviceFingerprint/utils.js +1 -1
- package/dist/es/core/RiskModule/constants.js +1 -1
- package/dist/es/core/RiskModule/constants.js.map +1 -1
- package/dist/es/core/Services/analytics/collect-id.js +1 -1
- package/dist/es/core/Services/http.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/dist/preact.js +1 -1
- package/dist/es/external/preact/dist/preact.js.map +1 -1
- package/dist/es/external/preact/hooks/dist/hooks.js.map +1 -1
- package/dist/es/index.d.ts +166 -99
- package/dist/es/index.js +1 -1
- package/dist/es/utils/Validator/defaultRules.js +1 -1
- package/dist/es/utils/base64.js.map +1 -1
- package/dist/es/utils/browserInfo.js +1 -1
- package/dist/es/utils/browserInfo.js.map +1 -1
- package/dist/es/utils/setFocus.js +1 -1
- package/dist/es/utils/setFocus.js.map +1 -1
- package/dist/es/utils/textUtils.js +1 -1
- package/dist/es/utils/textUtils.js.map +1 -1
- package/dist/es/utils/useForm/useForm.js +1 -1
- package/dist/es-legacy/adyen.css +4 -4
- package/dist/es-legacy/adyen.css.map +1 -1
- package/dist/es-legacy/components/ANCV/components/ANCVAwait/config.js +1 -1
- package/dist/es-legacy/components/ANCV/components/ANCVAwait/config.js.map +1 -1
- package/dist/es-legacy/components/Ach/Ach.js +1 -1
- package/dist/es-legacy/components/Ach/Ach.js.map +1 -1
- package/dist/es-legacy/components/Ach/components/AccountTypeSelector.js +2 -0
- package/dist/es-legacy/components/Ach/components/AccountTypeSelector.js.map +1 -0
- package/dist/es-legacy/components/Ach/components/AchComponent.js +2 -0
- package/dist/es-legacy/components/Ach/components/AchComponent.js.map +1 -0
- package/dist/es-legacy/components/Ach/components/useSRPanelForACHErrors.js +2 -0
- package/dist/es-legacy/components/Ach/components/useSRPanelForACHErrors.js.map +1 -0
- package/dist/es-legacy/components/Ach/components/validate.js +2 -0
- package/dist/es-legacy/components/Ach/components/validate.js.map +1 -0
- package/dist/es-legacy/components/Ach/defaultProps.js +2 -0
- package/dist/es-legacy/components/Ach/defaultProps.js.map +1 -0
- package/dist/es-legacy/components/AmazonPay/utils.js +1 -1
- package/dist/es-legacy/components/ApplePay/ApplePay.js +1 -1
- package/dist/es-legacy/components/Atome/Atome.js +1 -1
- package/dist/es-legacy/components/BacsDD/components/BacsInput.js +1 -1
- package/dist/es-legacy/components/BcmcMobile/BcmcMobile.js +1 -1
- package/dist/es-legacy/components/Boleto/components/BoletoInput/validate.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/CardInput.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CVC.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/CardFields.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/DataSfSpan.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/components/ExpirationDate.js +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/useSRPanelForCardInputErrors.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/utils.js.map +1 -1
- package/dist/es-legacy/components/Card/components/CardInput/validate.js +1 -1
- package/dist/es-legacy/components/Donation/components/DonationComponent.js +1 -1
- package/dist/es-legacy/components/DuitNow/DuitNow.js +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js +1 -1
- package/dist/es-legacy/components/GooglePay/GooglePay.js.map +1 -1
- package/dist/es-legacy/components/PayNow/PayNow.js +1 -1
- package/dist/es-legacy/components/PayPal/constants.js +1 -1
- package/dist/es-legacy/components/PayPal/constants.js.map +1 -1
- package/dist/es-legacy/components/PayTo/PayTo.js.map +1 -1
- package/dist/es-legacy/components/Pix/PixInput/PixInput.js.map +1 -1
- package/dist/es-legacy/components/PromptPay/PromptPay.js +1 -1
- package/dist/es-legacy/components/Redirect/Redirect.js +1 -1
- package/dist/es-legacy/components/Riverty/Riverty.js +1 -1
- package/dist/es-legacy/components/Riverty/config.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2Challenge.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/ThreeDS2DeviceFingerprint.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/callSubmit3DS2Fingerprint.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Challenge/DoChallenge3DS2.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.js.map +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/DoFingerprint3DS2.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js +1 -1
- package/dist/es-legacy/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.js.map +1 -1
- package/dist/es-legacy/components/WeChat/WeChat.js +1 -1
- package/dist/es-legacy/components/internal/Address/Address.js +1 -1
- package/dist/es-legacy/components/internal/Address/validate.formats.js.map +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js +1 -1
- package/dist/es-legacy/components/internal/BaseElement/BaseElement.js.map +1 -1
- package/dist/es-legacy/components/internal/ClickToPay/services/ClickToPayService.js +1 -1
- package/dist/es-legacy/components/internal/Countdown/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Checkbox/Checkbox.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Checkbox/Checkbox.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputBase.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/InputDate/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectButton.js +1 -1
- package/dist/es-legacy/components/internal/FormFields/Select/components/SelectButton.js.map +1 -1
- package/dist/es-legacy/components/internal/IbanInput/validate.js +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerList.js +1 -1
- package/dist/es-legacy/components/internal/IssuerList/IssuerList.js.map +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/useSRPanelForOpenInvoiceErrors.js +1 -1
- package/dist/es-legacy/components/internal/OpenInvoice/useSRPanelForOpenInvoiceErrors.js.map +1 -1
- package/dist/es-legacy/components/internal/PhoneInput/PhoneInputForm.js +1 -1
- package/dist/es-legacy/components/internal/QRLoader/QRLoader.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProvider.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleConfig.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleConfig.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleTab.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/extensions/handleTab.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/partials/processAutoComplete.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/iframes/postMessageValidation.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/tabbing/utils.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/userAgent.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/userAgent.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/constants.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/constants.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/utils/processPlaceholders.js +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/securedField/utils/processPlaceholders.js.map +1 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/utilities/addContextTranslations.js +1 -1
- package/dist/es-legacy/components/internal/StoreDetails/StoreDetails.js +1 -1
- package/dist/es-legacy/components/internal/StoreDetails/StoreDetails.js.map +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js +1 -1
- package/dist/es-legacy/components/internal/UIElement/UIElement.js.map +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js +1 -1
- package/dist/es-legacy/core/Analytics/Analytics.js.map +1 -1
- package/dist/es-legacy/core/Analytics/constants.js +1 -1
- package/dist/es-legacy/core/Analytics/constants.js.map +1 -1
- package/dist/es-legacy/core/Analytics/utils.js +1 -1
- package/dist/es-legacy/core/Errors/constants.js +1 -1
- package/dist/es-legacy/core/Errors/constants.js.map +1 -1
- package/dist/es-legacy/core/Errors/utils.js +1 -1
- package/dist/es-legacy/core/Errors/utils.js.map +1 -1
- package/dist/es-legacy/core/RiskModule/RiskModule.js +1 -1
- package/dist/es-legacy/core/RiskModule/components/DeviceFingerprint/utils.js +1 -1
- package/dist/es-legacy/core/RiskModule/constants.js +1 -1
- package/dist/es-legacy/core/RiskModule/constants.js.map +1 -1
- package/dist/es-legacy/core/Services/analytics/collect-id.js +1 -1
- package/dist/es-legacy/core/core.js +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js +1 -1
- package/dist/es-legacy/external/preact/dist/preact.js.map +1 -1
- package/dist/es-legacy/external/preact/hooks/dist/hooks.js.map +1 -1
- package/dist/es-legacy/index.js +1 -1
- package/dist/es-legacy/utils/Validator/defaultRules.js +1 -1
- package/dist/es-legacy/utils/base64.js.map +1 -1
- package/dist/es-legacy/utils/browserInfo.js +1 -1
- package/dist/es-legacy/utils/browserInfo.js.map +1 -1
- package/dist/es-legacy/utils/setFocus.js +1 -1
- package/dist/es-legacy/utils/setFocus.js.map +1 -1
- package/dist/es-legacy/utils/textUtils.js +1 -1
- package/dist/es-legacy/utils/textUtils.js.map +1 -1
- package/dist/es-legacy/utils/useForm/useForm.js +1 -1
- package/package.json +23 -23
- package/styles/adyen.css +4 -4
- package/dist/es/components/Ach/components/AchInput/AchInput.js +0 -2
- package/dist/es/components/Ach/components/AchInput/AchInput.js.map +0 -1
- package/dist/es/components/Ach/components/AchInput/components/AchSFInput.js +0 -2
- package/dist/es/components/Ach/components/AchInput/components/AchSFInput.js.map +0 -1
- package/dist/es/components/Ach/components/AchInput/components/AchSecuredFields.js +0 -2
- package/dist/es/components/Ach/components/AchInput/components/AchSecuredFields.js.map +0 -1
- package/dist/es/components/Ach/components/AchInput/defaultProps.js +0 -2
- package/dist/es/components/Ach/components/AchInput/defaultProps.js.map +0 -1
- package/dist/es/components/Ach/components/AchInput/defaultStyles.js +0 -2
- package/dist/es/components/Ach/components/AchInput/defaultStyles.js.map +0 -1
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/tabbing/tabScenarioACH.js +0 -2
- package/dist/es/components/internal/SecuredFields/lib/CSF/utils/tabbing/tabScenarioACH.js.map +0 -1
- package/dist/es-legacy/components/Ach/components/AchInput/AchInput.js +0 -2
- package/dist/es-legacy/components/Ach/components/AchInput/AchInput.js.map +0 -1
- package/dist/es-legacy/components/Ach/components/AchInput/components/AchSFInput.js +0 -2
- package/dist/es-legacy/components/Ach/components/AchInput/components/AchSFInput.js.map +0 -1
- package/dist/es-legacy/components/Ach/components/AchInput/components/AchSecuredFields.js +0 -2
- package/dist/es-legacy/components/Ach/components/AchInput/components/AchSecuredFields.js.map +0 -1
- package/dist/es-legacy/components/Ach/components/AchInput/defaultProps.js +0 -2
- package/dist/es-legacy/components/Ach/components/AchInput/defaultProps.js.map +0 -1
- package/dist/es-legacy/components/Ach/components/AchInput/defaultStyles.js +0 -2
- package/dist/es-legacy/components/Ach/components/AchInput/defaultStyles.js.map +0 -1
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/tabbing/tabScenarioACH.js +0 -2
- package/dist/es-legacy/components/internal/SecuredFields/lib/CSF/utils/tabbing/tabScenarioACH.js.map +0 -1
package/dist/es/index.d.ts
CHANGED
|
@@ -270,8 +270,8 @@ interface PayButtonProps extends ButtonProps {
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
type PayButtonFunctionProps = Omit<PayButtonProps, 'amount'>;
|
|
273
|
-
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
274
|
-
type UIElementProps = BaseElementProps & CoreCallbacks & {
|
|
273
|
+
type CoreCallbacks$1 = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onOrderUpdated' | 'onPaymentMethodsRequest' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
274
|
+
type UIElementProps = BaseElementProps & CoreCallbacks$1 & {
|
|
275
275
|
environment?: string;
|
|
276
276
|
session?: Session;
|
|
277
277
|
onComplete?: (state: any, element: UIElement) => void;
|
|
@@ -453,8 +453,8 @@ type SendAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'id' | 'component
|
|
|
453
453
|
component?: string;
|
|
454
454
|
};
|
|
455
455
|
|
|
456
|
-
type PlaceholderKeys
|
|
457
|
-
type Placeholders
|
|
456
|
+
type PlaceholderKeys = 'holderName' | 'cardNumber' | 'expiryDate' | 'expiryMonth' | 'expiryYear' | 'securityCodeThreeDigits' | 'securityCodeFourDigits' | 'password';
|
|
457
|
+
type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
458
458
|
interface SFError {
|
|
459
459
|
isValid?: boolean;
|
|
460
460
|
errorMessage?: string;
|
|
@@ -464,9 +464,6 @@ interface SFError {
|
|
|
464
464
|
detectedBrands?: string[];
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
type PlaceholderKeys = 'holderName' | 'bankAccountNumber' | 'bankLocationId';
|
|
468
|
-
type Placeholders = Partial<Record<PlaceholderKeys, string>>;
|
|
469
|
-
|
|
470
467
|
type GiftcardFieldsProps = {
|
|
471
468
|
setRootNode: (input: HTMLElement) => void;
|
|
472
469
|
i18n: Language;
|
|
@@ -953,7 +950,7 @@ interface CardConfiguration extends UIElementProps {
|
|
|
953
950
|
* Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password.
|
|
954
951
|
* - merchant set config option
|
|
955
952
|
*/
|
|
956
|
-
placeholders?: Placeholders
|
|
953
|
+
placeholders?: Placeholders;
|
|
957
954
|
/**
|
|
958
955
|
* Position holder name above card number field (instead of having it after the security code field)
|
|
959
956
|
* @defaultValue `false`
|
|
@@ -1729,7 +1726,7 @@ type ApplePayPaymentOrderDetails = {
|
|
|
1729
1726
|
type ApplePayPaymentAuthorizationResult = ApplePayJS.ApplePayPaymentAuthorizationResult & {
|
|
1730
1727
|
orderDetails?: ApplePayPaymentOrderDetails;
|
|
1731
1728
|
};
|
|
1732
|
-
type ApplePayButtonType = '
|
|
1729
|
+
type ApplePayButtonType = 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'plain' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
|
|
1733
1730
|
type ApplePayButtonStyle = 'black' | 'white' | 'white-outline';
|
|
1734
1731
|
interface ApplePayConfiguration extends UIElementProps {
|
|
1735
1732
|
/**
|
|
@@ -2039,19 +2036,37 @@ declare class BillDeskWalletElement extends IssuerListContainer {
|
|
|
2039
2036
|
}
|
|
2040
2037
|
|
|
2041
2038
|
interface AchConfiguration extends UIElementProps {
|
|
2042
|
-
|
|
2043
|
-
|
|
2039
|
+
/**
|
|
2040
|
+
* Adds placeholder text to the input fields
|
|
2041
|
+
*/
|
|
2042
|
+
placeholders?: AchPlaceholders;
|
|
2043
|
+
/**
|
|
2044
|
+
* Set to false to hide the "Account Holder Name" field if you want to pass the data yourself
|
|
2045
|
+
* @default true
|
|
2046
|
+
*/
|
|
2044
2047
|
hasHolderName?: boolean;
|
|
2045
|
-
enableStoreDetails: boolean;
|
|
2046
|
-
bankAccountNumber?: string;
|
|
2047
|
-
placeholders?: Placeholders;
|
|
2048
2048
|
/**
|
|
2049
|
-
*
|
|
2050
|
-
*
|
|
2049
|
+
* Enables storing the payment method using the Checkbox
|
|
2050
|
+
* @default false
|
|
2051
2051
|
*/
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2052
|
+
enableStoreDetails?: boolean;
|
|
2053
|
+
/**
|
|
2054
|
+
* storedPaymentMethodId coming from a stored ACH in /paymentMethods response
|
|
2055
|
+
* @internal
|
|
2056
|
+
*/
|
|
2057
|
+
storedPaymentMethodId?: string;
|
|
2058
|
+
/**
|
|
2059
|
+
* bankAccountNumber coming from a stored ACH in /paymentMethods response
|
|
2060
|
+
* @internal
|
|
2061
|
+
*/
|
|
2062
|
+
bankAccountNumber?: string;
|
|
2063
|
+
}
|
|
2064
|
+
interface AchPlaceholders {
|
|
2065
|
+
accountTypeSelector?: string;
|
|
2066
|
+
ownerName?: string;
|
|
2067
|
+
routingNumber?: string;
|
|
2068
|
+
accountNumber?: string;
|
|
2069
|
+
accountNumberVerification?: string;
|
|
2055
2070
|
}
|
|
2056
2071
|
|
|
2057
2072
|
interface BankTransferConfiguration extends UIElementProps {
|
|
@@ -2273,7 +2288,8 @@ type ClickToPayPaymentData = {
|
|
|
2273
2288
|
browserInfo: BrowserInfo;
|
|
2274
2289
|
};
|
|
2275
2290
|
|
|
2276
|
-
type
|
|
2291
|
+
type CoreCallbacks = Pick<CoreConfiguration, 'beforeRedirect' | 'beforeSubmit' | 'onSubmit' | 'onAdditionalDetails' | 'onPaymentFailed' | 'onPaymentCompleted' | 'onChange' | 'onActionHandled' | 'onError' | 'onEnterKeyPressed'>;
|
|
2292
|
+
type CustomCardConfiguration = CoreCallbacks & {
|
|
2277
2293
|
/**
|
|
2278
2294
|
* Automatically shift the focus from one field to another. Usually happens from a valid Expiry Date field to the Security Code field,
|
|
2279
2295
|
* but some BINS also allow us to know that the PAN is complete, in which case we can shift focus to the date field
|
|
@@ -2390,11 +2406,6 @@ type CustomCardConfiguration = {
|
|
|
2390
2406
|
* - merchant set config option
|
|
2391
2407
|
*/
|
|
2392
2408
|
onLoad?: (event: CardLoadData) => void;
|
|
2393
|
-
/**
|
|
2394
|
-
* Called when a Component is told by a SecuredField that the Enter key has been pressed.
|
|
2395
|
-
* - merchant set config option
|
|
2396
|
-
*/
|
|
2397
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
2398
2409
|
/**
|
|
2399
2410
|
* Called as errors are detected within the securedFields
|
|
2400
2411
|
* - merchant set config option
|
|
@@ -2404,7 +2415,7 @@ type CustomCardConfiguration = {
|
|
|
2404
2415
|
* Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password.
|
|
2405
2416
|
* - merchant set config option
|
|
2406
2417
|
*/
|
|
2407
|
-
placeholders?: Placeholders
|
|
2418
|
+
placeholders?: Placeholders;
|
|
2408
2419
|
/**
|
|
2409
2420
|
* Object to configure the styling of the inputs in the iframes that are used to present the PAN, Expiry Date & Security Code fields
|
|
2410
2421
|
* - merchant set config option
|
|
@@ -3659,7 +3670,7 @@ declare class BancontactElement extends CardElement {
|
|
|
3659
3670
|
onFieldValid?: (event: CardFieldValidData) => void;
|
|
3660
3671
|
onFocus?: (event: CardFocusData | ComponentFocusObject) => void;
|
|
3661
3672
|
onLoad?: (event: CardLoadData) => void;
|
|
3662
|
-
placeholders?: Placeholders
|
|
3673
|
+
placeholders?: Placeholders;
|
|
3663
3674
|
positionHolderNameOnTop?: boolean;
|
|
3664
3675
|
showBrandIcon?: boolean;
|
|
3665
3676
|
showContextualElement?: boolean;
|
|
@@ -3750,6 +3761,14 @@ declare class GooglePay extends UIElement<GooglePayConfiguration> {
|
|
|
3750
3761
|
static defaultProps: GooglePayConfiguration;
|
|
3751
3762
|
protected readonly googlePay: any;
|
|
3752
3763
|
constructor(checkout: ICore, props?: GooglePayConfiguration);
|
|
3764
|
+
/**
|
|
3765
|
+
* Google Pay requires custom logic due to supporting two Tx variants that lead to the same payment method.
|
|
3766
|
+
* If the merchant creates a standalone Google Pay component, we need to verify if the payment method is available using both tx variants
|
|
3767
|
+
*
|
|
3768
|
+
* @param type
|
|
3769
|
+
* @returns
|
|
3770
|
+
*/
|
|
3771
|
+
protected getPaymentMethodFromPaymentMethodsResponse(type?: string): PaymentMethod;
|
|
3753
3772
|
protected formatProps(props: any): GooglePayConfiguration;
|
|
3754
3773
|
/**
|
|
3755
3774
|
* Formats the component data output
|
|
@@ -3853,6 +3872,20 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3853
3872
|
private brand;
|
|
3854
3873
|
formatProps(props: CustomCardConfiguration): {
|
|
3855
3874
|
type: TxVariants;
|
|
3875
|
+
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
3876
|
+
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
3877
|
+
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
3878
|
+
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
3879
|
+
url: string;
|
|
3880
|
+
method: string;
|
|
3881
|
+
data?: any;
|
|
3882
|
+
}) => void;
|
|
3883
|
+
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
3884
|
+
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
3885
|
+
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
3886
|
+
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
3887
|
+
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3888
|
+
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
3856
3889
|
autoFocus?: boolean;
|
|
3857
3890
|
brands?: string[];
|
|
3858
3891
|
brandsConfiguration?: CardBrandsConfiguration;
|
|
@@ -3873,9 +3906,8 @@ declare class CustomCard extends UIElement<CustomCardConfiguration> {
|
|
|
3873
3906
|
onFieldValid?: (event: CardFieldValidData) => void;
|
|
3874
3907
|
onFocus?: (event: CardFocusData) => void;
|
|
3875
3908
|
onLoad?: (event: CardLoadData) => void;
|
|
3876
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
3877
3909
|
onValidationError?: (validationErrors: ValidationError[]) => void;
|
|
3878
|
-
placeholders?: Placeholders
|
|
3910
|
+
placeholders?: Placeholders;
|
|
3879
3911
|
styles?: StylesObject;
|
|
3880
3912
|
};
|
|
3881
3913
|
/**
|
|
@@ -4427,77 +4459,29 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
4427
4459
|
|
|
4428
4460
|
declare class AchElement extends UIElement<AchConfiguration> {
|
|
4429
4461
|
static type: TxVariants;
|
|
4430
|
-
|
|
4431
|
-
holderNameRequired: boolean;
|
|
4432
|
-
storedPaymentMethodId?: string;
|
|
4433
|
-
hasHolderName?: boolean;
|
|
4434
|
-
enableStoreDetails: boolean;
|
|
4435
|
-
bankAccountNumber?: string;
|
|
4436
|
-
placeholders?: Placeholders;
|
|
4437
|
-
data?: {
|
|
4438
|
-
holderName?: string;
|
|
4439
|
-
};
|
|
4440
|
-
order?: Order;
|
|
4441
|
-
modules?: {
|
|
4442
|
-
srPanel?: SRPanel;
|
|
4443
|
-
analytics?: AnalyticsModule;
|
|
4444
|
-
resources?: Resources;
|
|
4445
|
-
risk?: RiskElement;
|
|
4446
|
-
};
|
|
4447
|
-
isDropin?: boolean;
|
|
4448
|
-
onChange?: (state: OnChangeData, component: UIElement) => void;
|
|
4449
|
-
onPaymentCompleted?: (data: PaymentCompletedData, component?: UIElement) => void;
|
|
4450
|
-
onPaymentFailed?: (data?: PaymentFailedData, component?: UIElement) => void;
|
|
4451
|
-
beforeRedirect?: (resolve: () => void, reject: () => void, redirectData: {
|
|
4452
|
-
url: string;
|
|
4453
|
-
method: string;
|
|
4454
|
-
data?: any;
|
|
4455
|
-
}) => void;
|
|
4456
|
-
beforeSubmit?: (state: PaymentData, component: UIElement, actions: BeforeSubmitActions) => void;
|
|
4457
|
-
onSubmit?: (state: SubmitData, component: UIElement, actions: SubmitActions) => void;
|
|
4458
|
-
onActionHandled?: (actionHandled: ActionHandledReturnObject) => void;
|
|
4459
|
-
onAdditionalDetails?: (state: AdditionalDetailsData, component: UIElement, actions: AdditionalDetailsActions) => void;
|
|
4460
|
-
onEnterKeyPressed?: (activeElement: Element, component: UIElement) => void;
|
|
4461
|
-
onError?: (error: AdyenCheckoutError, component?: UIElement) => void;
|
|
4462
|
-
onOrderUpdated?: (data: {
|
|
4463
|
-
order: Order;
|
|
4464
|
-
}) => void;
|
|
4465
|
-
onPaymentMethodsRequest?: (data: PaymentMethodsRequestData, actions: {
|
|
4466
|
-
resolve: (response: PaymentMethodsResponse) => void;
|
|
4467
|
-
reject: () => void;
|
|
4468
|
-
}) => void;
|
|
4469
|
-
environment?: string;
|
|
4470
|
-
session?: Session;
|
|
4471
|
-
onComplete?: (state: any, element: UIElement) => void;
|
|
4472
|
-
isInstantPayment?: boolean;
|
|
4473
|
-
isStoredPaymentMethod?: boolean;
|
|
4474
|
-
oneClick?: boolean;
|
|
4475
|
-
statusType?: "redirect" | "loading" | "custom";
|
|
4476
|
-
type?: string;
|
|
4477
|
-
name?: string;
|
|
4478
|
-
icon?: string;
|
|
4479
|
-
amount?: PaymentAmount;
|
|
4480
|
-
secondaryAmount?: PaymentAmountExtended;
|
|
4481
|
-
showPayButton?: boolean;
|
|
4482
|
-
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
4483
|
-
loadingContext?: string;
|
|
4484
|
-
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
4485
|
-
clientKey?: string;
|
|
4486
|
-
elementRef?: any;
|
|
4487
|
-
i18n?: Language;
|
|
4488
|
-
label?: string;
|
|
4489
|
-
paymentMethodType?: string;
|
|
4490
|
-
originalAction?: PaymentAction;
|
|
4491
|
-
};
|
|
4492
|
-
/**
|
|
4493
|
-
* Formats the component data output
|
|
4494
|
-
*/
|
|
4462
|
+
protected static defaultProps: AchConfiguration;
|
|
4495
4463
|
formatData(): {
|
|
4464
|
+
paymentMethod: {
|
|
4465
|
+
type: TxVariants;
|
|
4466
|
+
storedPaymentMethodId: string;
|
|
4467
|
+
ownerName?: undefined;
|
|
4468
|
+
accountHolderType?: undefined;
|
|
4469
|
+
bankAccountType?: undefined;
|
|
4470
|
+
bankLocationId?: undefined;
|
|
4471
|
+
bankAccountNumber?: undefined;
|
|
4472
|
+
};
|
|
4473
|
+
} | {
|
|
4496
4474
|
storePaymentMethod: any;
|
|
4497
|
-
paymentMethod:
|
|
4475
|
+
paymentMethod: {
|
|
4476
|
+
type: TxVariants;
|
|
4477
|
+
ownerName: any;
|
|
4478
|
+
accountHolderType: any;
|
|
4479
|
+
bankAccountType: any;
|
|
4480
|
+
bankLocationId: any;
|
|
4481
|
+
bankAccountNumber: any;
|
|
4482
|
+
storedPaymentMethodId?: undefined;
|
|
4483
|
+
};
|
|
4498
4484
|
};
|
|
4499
|
-
updateStyles(stylesObj: any): this;
|
|
4500
|
-
setFocusOn(fieldName: any): this;
|
|
4501
4485
|
get isValid(): boolean;
|
|
4502
4486
|
get displayName(): string;
|
|
4503
4487
|
get additionalInfo(): string;
|
|
@@ -5791,6 +5775,12 @@ declare abstract class UIElement<P extends UIElementProps = UIElementProps> exte
|
|
|
5791
5775
|
static txVariants: string[];
|
|
5792
5776
|
constructor(checkout: ICore, props?: P);
|
|
5793
5777
|
protected buildElementProps(componentProps?: P): void;
|
|
5778
|
+
/**
|
|
5779
|
+
* Get the payment method from the paymentMethodsResponse
|
|
5780
|
+
*
|
|
5781
|
+
* @param type - The type of the payment method to get. (This prop is passed by Drop-in OR Standalone components containing the property 'type' as part of their configuration)
|
|
5782
|
+
*/
|
|
5783
|
+
protected getPaymentMethodFromPaymentMethodsResponse(type?: string): PaymentMethod;
|
|
5794
5784
|
protected storeElementRefOnCore(props?: P): void;
|
|
5795
5785
|
isAvailable(): Promise<void>;
|
|
5796
5786
|
setState(newState: object): void;
|
|
@@ -6527,7 +6517,83 @@ declare const index_d_ThreeDS2DeviceFingerprint: typeof ThreeDS2DeviceFingerprin
|
|
|
6527
6517
|
type index_d_UPI = UPI;
|
|
6528
6518
|
declare const index_d_UPI: typeof UPI;
|
|
6529
6519
|
declare namespace index_d {
|
|
6530
|
-
export {
|
|
6520
|
+
export {
|
|
6521
|
+
ANCVElement as ANCV,
|
|
6522
|
+
AchElement as Ach,
|
|
6523
|
+
AddressElement as Address,
|
|
6524
|
+
index_d_Affirm as Affirm,
|
|
6525
|
+
index_d_AfterPay as AfterPay,
|
|
6526
|
+
index_d_AfterPayB2B as AfterPayB2B,
|
|
6527
|
+
AmazonPayElement as AmazonPay,
|
|
6528
|
+
ApplePayElement as ApplePay,
|
|
6529
|
+
index_d_Atome as Atome,
|
|
6530
|
+
BacsElement as BacsDirectDebit,
|
|
6531
|
+
BancontactElement as Bancontact,
|
|
6532
|
+
BankTransferElement as BankTransfer,
|
|
6533
|
+
BCMCMobileElement as BcmcMobile,
|
|
6534
|
+
BillDeskOnlineElement as BillDeskOnline,
|
|
6535
|
+
BillDeskWalletElement as BillDeskWallet,
|
|
6536
|
+
BlikElement as Blik,
|
|
6537
|
+
BoletoElement as Boleto,
|
|
6538
|
+
CardElement as Card,
|
|
6539
|
+
index_d_CashAppPay as CashAppPay,
|
|
6540
|
+
ClickToPayElement as ClickToPay,
|
|
6541
|
+
index_d_CustomCard as CustomCard,
|
|
6542
|
+
DokuElement as Doku,
|
|
6543
|
+
DonationElement as Donation,
|
|
6544
|
+
DotpayElement as Dotpay,
|
|
6545
|
+
DragonpayElement as Dragonpay,
|
|
6546
|
+
DropinElement as Dropin,
|
|
6547
|
+
DuitNowElement as DuitNow,
|
|
6548
|
+
EPSElement as EPS,
|
|
6549
|
+
EcontextElement as Econtext,
|
|
6550
|
+
FacilyPay10x as FacilPay10x,
|
|
6551
|
+
FacilyPay12x as FacilPay12x,
|
|
6552
|
+
FacilyPay3x as FacilPay3x,
|
|
6553
|
+
FacilyPay4x as FacilPay4x,
|
|
6554
|
+
FacilyPay6x as FacilPay6x,
|
|
6555
|
+
GiftcardElement as Giftcard,
|
|
6556
|
+
GiropayElement as Giropay,
|
|
6557
|
+
index_d_GooglePay as GooglePay,
|
|
6558
|
+
KlarnaPayments as Klarna,
|
|
6559
|
+
MBWayElement as MBWay,
|
|
6560
|
+
MealVoucherFRElement as MealVoucherFR,
|
|
6561
|
+
MolPayEBankingMYElement as MolPayEBankingMY,
|
|
6562
|
+
MolPayEBankingTHElement as MolPayEBankingTH,
|
|
6563
|
+
MolPayEbankingVNElement as MolPayEBankingVN,
|
|
6564
|
+
MultibancoElement as Multibanco,
|
|
6565
|
+
OnlineBankingCZElement as OnlineBankingCZ,
|
|
6566
|
+
index_d_OnlineBankingFI as OnlineBankingFI,
|
|
6567
|
+
OnlineBankingINElement as OnlineBankingIN,
|
|
6568
|
+
index_d_OnlineBankingPL as OnlineBankingPL,
|
|
6569
|
+
OnlineBankingSKElement as OnlineBankingSK,
|
|
6570
|
+
OxxoElement as Oxxo,
|
|
6571
|
+
index_d_PayByBank as PayByBank,
|
|
6572
|
+
index_d_PayByBankUS as PayByBankUS,
|
|
6573
|
+
PayMeElement as PayMe,
|
|
6574
|
+
PayNowElement as PayNow,
|
|
6575
|
+
PaypalElement as PayPal,
|
|
6576
|
+
PayToElement as PayTo,
|
|
6577
|
+
PayuNetCashcardElement as PayuCashcard,
|
|
6578
|
+
PayuNetBankingElement as PayuNetBanking,
|
|
6579
|
+
PersonalDetailsElement as PersonalDetails,
|
|
6580
|
+
PixElement as Pix,
|
|
6581
|
+
PromptPayElement as PromptPay,
|
|
6582
|
+
index_d_RatePay as RatePay,
|
|
6583
|
+
index_d_RatePayDirectDebit as RatePayDirectDebit,
|
|
6584
|
+
RedirectElement as Redirect,
|
|
6585
|
+
index_d_Riverty as Riverty,
|
|
6586
|
+
SepaElement as SepaDirectDebit,
|
|
6587
|
+
SwishElement as Swish,
|
|
6588
|
+
index_d_ThreeDS2Challenge as ThreeDS2Challenge,
|
|
6589
|
+
index_d_ThreeDS2DeviceFingerprint as ThreeDS2DeviceFingerprint,
|
|
6590
|
+
TrustlyElement as Trustly,
|
|
6591
|
+
TwintElement as Twint,
|
|
6592
|
+
index_d_UPI as UPI,
|
|
6593
|
+
VippsElement as Vipps,
|
|
6594
|
+
WalletINElement as WalletIN,
|
|
6595
|
+
WeChatPayElement as WeChat,
|
|
6596
|
+
};
|
|
6531
6597
|
}
|
|
6532
6598
|
|
|
6533
6599
|
declare class Core implements ICore {
|
|
@@ -6625,4 +6691,5 @@ declare namespace AdyenCheckout {
|
|
|
6625
6691
|
var setBundleType: (type: string) => void;
|
|
6626
6692
|
}
|
|
6627
6693
|
|
|
6628
|
-
export { ANCVElement as ANCV,
|
|
6694
|
+
export { ANCVElement as ANCV, AchElement as Ach, AddressElement as Address, AdyenCheckout, AdyenCheckoutError, Affirm, AfterPay, AfterPayB2B, AmazonPayElement as AmazonPay, ApplePayElement as ApplePay, Atome, BacsElement as BacsDirectDebit, BancontactElement as Bancontact, BankTransferElement as BankTransfer, BCMCMobileElement as BcmcMobile, BillDeskOnlineElement as BillDeskOnline, BillDeskWalletElement as BillDeskWallet, BlikElement as Blik, BoletoElement as Boleto, CardElement as Card, CashAppPay, ClickToPayElement as ClickToPay, CustomCard, DokuElement as Doku, DonationElement as Donation, DotpayElement as Dotpay, DragonpayElement as Dragonpay, DropinElement as Dropin, DuitNowElement as DuitNow, EPSElement as EPS, EcontextElement as Econtext, FacilyPay10x as FacilPay10x, FacilyPay12x as FacilPay12x, FacilyPay3x as FacilPay3x, FacilyPay4x as FacilPay4x, FacilyPay6x as FacilPay6x, GiftcardElement as Giftcard, GiropayElement as Giropay, GooglePay, KlarnaPayments as Klarna, MBWayElement as MBWay, MealVoucherFRElement as MealVoucherFR, MolPayEBankingMYElement as MolPayEBankingMY, MolPayEBankingTHElement as MolPayEBankingTH, MolPayEbankingVNElement as MolPayEBankingVN, MultibancoElement as Multibanco, OnlineBankingCZElement as OnlineBankingCZ, OnlineBankingFI, OnlineBankingINElement as OnlineBankingIN, OnlineBankingPL, OnlineBankingSKElement as OnlineBankingSK, OxxoElement as Oxxo, PayByBank, PayByBankUS, PayMeElement as PayMe, PayNowElement as PayNow, PaypalElement as PayPal, PayToElement as PayTo, PayuNetCashcardElement as PayuCashcard, PayuNetBankingElement as PayuNetBanking, PersonalDetailsElement as PersonalDetails, PixElement as Pix, PromptPayElement as PromptPay, RatePay, RatePayDirectDebit, RedirectElement as Redirect, Riverty, SepaElement as SepaDirectDebit, SwishElement as Swish, ThreeDS2Challenge, ThreeDS2DeviceFingerprint, TrustlyElement as Trustly, TwintElement as Twint, UIElement, UPI, VippsElement as Vipps, WalletINElement as WalletIN, WeChatPayElement as WeChat, index_d as components };
|
|
6695
|
+
export type { ANCVConfiguration, ANCVDataState, AchConfiguration, AchPlaceholders, ActionDescriptionType, ActionHandledReturnObject, AdditionalDetailsActions, AdditionalDetailsData, AddressData, AddressField, AmazonPayBackendConfiguration, AmazonPayButtonProps, AmazonPayButtonSettings, AmazonPayComponentProps, AmazonPayConfiguration, AmazonPayElementData, AnalyticsModule, App, ApplePayButtonStyle, ApplePayButtonType, ApplePayConfiguration, ApplePayElementData, ApplePayPaymentAuthorizationResult, ApplePayPaymentOrderDetails, ApplePaySessionRequest, ApplePayWebConfiguration, AwaitComponentProps, AwaitConfiguration, BankDetailsSchema, BankTransferConfiguration, BankTransferSchema, BankTransferState, BeforeSubmitActions, BinLookupResponse, BinLookupResponseRaw, BoletoConfiguration, BoletoElementProps, BoletoInputDataState, BoletoInputErrorState, BoletoInputValidState, BrandConfiguration, BrandObject, BrowserInfo, CReqData, CardAllValidData, CardAutoCompleteData, CardBackendConfiguration, CardBinLookupData, CardBinValueData, CardBrandData, CardBrandsConfiguration, CardConfigSuccessData, CardConfiguration, CardElementData, CardErrorData, CardFieldValidData, CardFocusData, CardLoadData, CashAppPayConfiguration, CashAppPayElementData, CashAppPayEventData, ChallengeData, ChallengeResolveData, ChangeActionOptions, ChangePaymentDetailsButtonProps, ChargeAmount, CheckoutAdvancedFlowResponse, CheckoutDetailsRequest, CheckoutSessionConfig, ClickToPayConfiguration, ClickToPayPaymentData, ClickToPayProps, ClickToPayScheme, CommonVoucherProps, ComponentFocusObject, ComponentMethodsRef, CoreConfiguration, Currency, CustomCardConfiguration, CustomTranslations, DecodeObject, DeliverySpecifications, DokuVoucherResultProps, DonationConfiguration, DragonpayConfiguraton, DragonpayInputData, DragonpayInputIssuerItem, DragonpayInputProps, DragonpayVoucherResultProps, DropinComponentProps, DropinComponentState, DropinConfiguration, DropinStatusProps, DualBrandSelectElement, EcontextConfiguration, EcontextInputSchema, EcontextVoucherResultProps, ErrorCodeObject, ExtendedMerchantInfo, FieldsetVisibility, FingerPrintData, FingerprintResolveData, FundingSource, GiftCardConfiguration, GiftCardElementData, GooglePayConfiguration, GooglePaymentDataRequest, ICore, IDropin, InstantPaymentTypes, Intent, IssuerListConfiguration, IssuerListData, KlarnaAction, KlarnaAdditionalDetailsData, KlarnaComponentRef, KlarnaConfiguration, KlarnaSdkData, KlarnaWidgetAuthorizeResponse, KlarnaWidgetProps, LedgerCurrencies, MandateFrequencyType, MandateType, MultibancoVoucherResultProps, OnChangeData, OpenInvoiceActiveFieldsets, OpenInvoiceConfiguration, OpenInvoiceFieldsetsRefs, OpenInvoiceProps, OpenInvoiceStateData, OpenInvoiceStateError, OpenInvoiceStateValid, OpenInvoiceVisibility, Order, OrderButtonProps, OrderStatus, OxxoVoucherResultProps, PayButtonFunctionProps, PayPalConfiguration, PayToConfiguration, PayToData, PayToPlaceholdersType, PayloadJSON, PaymentAction, PaymentActionsType, PaymentAmount, PaymentAmountExtended, PaymentCompletedData, PaymentData, PaymentFailedData, PaymentMethod, PaymentMethodData, PaymentMethodGroup, PaymentMethodOptions, PaymentMethods$1 as PaymentMethods, PaymentMethodsConfiguration, PaymentMethodsRequestData, PaymentMethodsResponse, PaymentResponseData, PersonalDetailsSchema, PixConfiguration, PixElementData, PostMsgParseErrorObject, ProcessedResponse, QRLoaderConfiguration, RawPaymentResponse, RecurringMetadata, RedirectConfiguration, Region, ResultCode, ResultObject, ResultValue, SepaConfiguration, SepaElementData, SessionsResponse, SignOutButtonProps, SocialSecurityMode, StatusObject, StoredPaymentMethod, SubmitActions, SubmitData, SupportedLocale, ThreeDS2ChallengeConfiguration, ThreeDS2DeviceFingerprintConfiguration, ThreeDS2FingerprintResponse, ThreeDS2FlowObject, ThreeDS2Token, UIElementProps, UIElementStatus, UPIConfiguration, UpdateAmazonCheckoutSessionRequest, UpiMode, UpiPaymentData, UpiType, ValidationError, VoucherConfiguration, VoucherDetail, VoucherProps, balanceCheckResponseType, onBalanceCheckCallbackType, onOrderCancelData, onOrderCancelType, onOrderRequestCallbackType, onRequiringConfirmationCallbackType };
|
package/dist/es/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as o from"./components/index.js";export{o as components};export{AdyenCheckout}from"./core/AdyenCheckout.js";export{CardElement as Card}from"./components/Card/Card.js";export{default as Bancontact}from"./components/Card/Bancontact.js";export{CustomCard}from"./components/CustomCard/CustomCard.js";export{default as ThreeDS2Challenge}from"./components/ThreeDS2/ThreeDS2Challenge.js";export{default as ThreeDS2DeviceFingerprint}from"./components/ThreeDS2/ThreeDS2DeviceFingerprint.js";export{AchElement as Ach}from"./components/Ach/Ach.js";export{default as BacsDirectDebit}from"./components/BacsDD/BacsDD.js";export{default as SepaDirectDebit}from"./components/Sepa/Sepa.js";export{
|
|
1
|
+
import*as o from"./components/index.js";export{o as components};export{AdyenCheckout}from"./core/AdyenCheckout.js";export{CardElement as Card}from"./components/Card/Card.js";export{default as Bancontact}from"./components/Card/Bancontact.js";export{CustomCard}from"./components/CustomCard/CustomCard.js";export{default as ThreeDS2Challenge}from"./components/ThreeDS2/ThreeDS2Challenge.js";export{default as ThreeDS2DeviceFingerprint}from"./components/ThreeDS2/ThreeDS2DeviceFingerprint.js";export{AchElement as Ach}from"./components/Ach/Ach.js";export{default as BacsDirectDebit}from"./components/BacsDD/BacsDD.js";export{default as SepaDirectDebit}from"./components/Sepa/Sepa.js";export{AmazonPayElement as AmazonPay}from"./components/AmazonPay/AmazonPay.js";export{default as ApplePay}from"./components/ApplePay/ApplePay.js";export{CashAppPay}from"./components/CashAppPay/CashAppPay.js";export{ClickToPayElement as ClickToPay}from"./components/ClickToPay/ClickToPay.js";export{default as GooglePay}from"./components/GooglePay/GooglePay.js";export{default as PayPal}from"./components/PayPal/Paypal.js";export{BoletoElement as Boleto}from"./components/Boleto/Boleto.js";export{DokuElement as Doku}from"./components/Doku/Doku.js";export{OxxoElement as Oxxo}from"./components/Oxxo/Oxxo.js";export{default as BillDeskOnline}from"./components/BillDesk/BillDeskOnline.js";export{default as BillDeskWallet}from"./components/BillDesk/BillDeskWallet.js";export{default as Dotpay}from"./components/Dotpay/index.js";export{default as EPS}from"./components/EPS/index.js";export{default as MolPayEBankingMY}from"./components/MolPayEBanking/MolPayEBankingMY.js";export{default as MolPayEBankingTH}from"./components/MolPayEBanking/MolPayEBankingTH.js";export{default as MolPayEBankingVN}from"./components/MolPayEBanking/MolPayEBankingVN.js";export{default as OnlineBankingCZ}from"./components/OnlineBankingCZ/index.js";export{default as OnlineBankingIN}from"./components/OnlineBankingIN/index.js";export{default as OnlineBankingPL}from"./components/OnlineBankingPL/OnlineBankingPL.js";export{default as OnlineBankingSK}from"./components/OnlineBankingSK/index.js";export{default as OnlineBankingFI}from"./components/OnlineBankingFI/OnlineBankingFI.js";export{default as PayByBank}from"./components/PayByBank/PayByBank.js";export{default as PayuCashcard}from"./components/PayU/PayuCashcard.js";export{default as PayuNetBanking}from"./components/PayU/PayuNetBanking.js";export{default as WalletIN}from"./components/WalletIN/index.js";export{DragonpayElement as Dragonpay}from"./components/Dragonpay/Dragonpay.js";export{EcontextElement as Econtext}from"./components/Econtext/Econtext.js";export{default as Giropay}from"./components/Giropay/Giropay.js";export{MultibancoElement as Multibanco}from"./components/Multibanco/Multibanco.js";export{default as Redirect}from"./components/Redirect/Redirect.js";export{default as Twint}from"./components/Twint/Twint.js";export{default as Vipps}from"./components/Vipps/Vipps.js";export{default as Trustly}from"./components/Trustly/Trustly.js";export{default as Klarna}from"./components/Klarna/KlarnaPayments.js";export{default as BcmcMobile}from"./components/BcmcMobile/BcmcMobile.js";export{default as Pix}from"./components/Pix/Pix.js";export{default as Swish}from"./components/Swish/Swish.js";export{default as WeChat}from"./components/WeChat/WeChat.js";export{default as PromptPay}from"./components/PromptPay/PromptPay.js";export{default as PayNow}from"./components/PayNow/PayNow.js";export{default as DuitNow}from"./components/DuitNow/DuitNow.js";export{default as PayMe}from"./components/PayMe/PayMe.js";export{default as Blik}from"./components/Blik/Blik.js";export{MBWayElement as MBWay}from"./components/MBWay/MBWay.js";export{default as UPI}from"./components/UPI/UPI.js";export{ANCVElement as ANCV}from"./components/ANCV/ANCV.js";export{PayToElement as PayTo}from"./components/PayTo/PayTo.js";export{GiftcardElement as Giftcard}from"./components/Giftcard/Giftcard.js";export{MealVoucherFRElement as MealVoucherFR}from"./components/MealVoucherFR/MealVoucherFR.js";export{AddressElement as Address}from"./components/Address/Address.js";export{BankTransferElement as BankTransfer}from"./components/BankTransfer/BankTransfer.js";export{default as Donation}from"./components/Donation/Donation.js";export{default as Dropin}from"./components/Dropin/Dropin.js";export{PersonalDetailsElement as PersonalDetails}from"./components/PersonalDetails/PersonalDetails.js";export{default as Affirm}from"./components/Affirm/Affirm.js";export{default as AfterPay}from"./components/AfterPay/AfterPay.js";export{default as AfterPayB2B}from"./components/AfterPay/AfterPayB2B.js";export{default as Atome}from"./components/Atome/Atome.js";export{default as FacilPay3x}from"./components/FacilyPay/FacilyPay3x.js";export{default as FacilPay4x}from"./components/FacilyPay/FacilyPay4x.js";export{default as FacilPay6x}from"./components/FacilyPay/FacilyPay6x.js";export{default as FacilPay10x}from"./components/FacilyPay/FacilyPay10x.js";export{default as FacilPay12x}from"./components/FacilyPay/FacilyPay12x.js";export{default as RatePay}from"./components/RatePay/RatePay.js";export{default as RatePayDirectDebit}from"./components/RatePay/RatePayDirectDebit.js";export{default as Riverty}from"./components/Riverty/Riverty.js";export{default as PayByBankUS}from"./components/PayByBankUS/PayByBankUS.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{isEmpty as e}from"../validator-utils.js";import{ERROR_FIELD_REQUIRED as r,ERROR_FIELD_INVALID as t}from"../../core/Errors/constants.js";import{
|
|
1
|
+
import{isEmpty as e}from"../validator-utils.js";import{ERROR_FIELD_REQUIRED as r,ERROR_FIELD_INVALID as t}from"../../core/Errors/constants.js";import{email as s,telephoneNumber as o}from"../regex.js";import{unformatDate as a}from"../../components/internal/FormFields/InputDate/utils.js";const l={validate:s=>((s,a)=>e(s)?(a.errorMessage=r,null):(a.errorMessage=t,o.test(s)))(s,l),modes:["blur"]},n={validate:o=>((o,a)=>e(o)?(a.errorMessage=r,null):(a.errorMessage=t,o.length>=6&&o.length<=320&&s.test(o)))(o,n),modes:["blur"]},i={validate:e=>((e,t)=>{if(!e)return t.errorMessage=r,!1;t.errorMessage="dateOfBirth.invalid";const s=a(e),o=Date.now()-Date.parse(s);return new Date(o).getFullYear()-1970>=18})(e,i),modes:["blur"]},m={phoneNumberRule:l,emailRule:n,dateOfBirthRule:i};export{m as validationRules};
|
|
2
2
|
//# sourceMappingURL=defaultRules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64.js","sources":["../../../src/utils/base64.ts"],"sourcesContent":["import { DecodeObject } from '../types/global-types';\n\nexport const NOT_BASE64_ERROR = 'not base64';\nexport const BASE64_MALFORMED_URI_ERROR = 'malformed URI sequence';\n\nconst b64DecodeUnicode = str =>\n /**\n * The \"Unicode Problem\" Since DOMStrings are 16-bit-encoded strings:\n * In most browsers calling window.btoa on a Unicode string will cause\n * a Character Out Of Range exception if a character exceeds the range\n * of a 8-bit ASCII-encoded character.\n * This method solves the problem\n */\n decodeURIComponent(Array.prototype.map.call(window.atob(str), c => `%${`00${c.charCodeAt(0).toString(16)}`.slice(-2)}`).join(''));\n\n/**\n * @internal\n */\nconst base64 = {\n decode: (pData: string): DecodeObject => {\n if (!base64.isBase64(pData)) {\n return {\n success: false,\n error: NOT_BASE64_ERROR\n };\n }\n\n try {\n const data = b64DecodeUnicode(pData);\n return {\n success: true,\n data\n };\n } catch (e) {\n return {\n success: false,\n error: BASE64_MALFORMED_URI_ERROR\n };\n }\n },\n\n encode: pData => window.btoa(pData),\n\n isBase64: pDataStr => {\n if (!pDataStr) {\n return false;\n }\n\n if (pDataStr.length % 4) {\n return false;\n }\n\n try {\n return window.btoa(window.atob(pDataStr)) === pDataStr;\n } catch (e) {\n return false;\n }\n }\n};\n\nexport default base64;\n"],"names":["NOT_BASE64_ERROR","BASE64_MALFORMED_URI_ERROR","base64","decode","pData","isBase64","success","error","data","str","decodeURIComponent","Array","prototype","map","call","window","atob","c","charCodeAt","toString","slice","join","e","encode","btoa","pDataStr","length"],"mappings":"AAEO,MAAMA,EAAmB,aACnBC,EAA6B,yBAepCC,EAAS,CACXC,OAASC,IACL,IAAKF,EAAOG,SAASD,GACjB,MAAO,CACHE,SAAS,EACTC,MAAOP,GAIf,IAEI,MAAO,CACHM,SAAS,EACTE,MA1BSC,EAuBiBL,EAftCM,mBAAmBC,MAAMC,UAAUC,IAAIC,KAAKC,OAAOC,KAAKP,IAAMQ,GAAK,IAAI,KAAKA,EAAEC,WAAW,GAAGC,SAAS,MAAMC,
|
|
1
|
+
{"version":3,"file":"base64.js","sources":["../../../src/utils/base64.ts"],"sourcesContent":["import { DecodeObject } from '../types/global-types';\n\nexport const NOT_BASE64_ERROR = 'not base64';\nexport const BASE64_MALFORMED_URI_ERROR = 'malformed URI sequence';\n\nconst b64DecodeUnicode = str =>\n /**\n * The \"Unicode Problem\" Since DOMStrings are 16-bit-encoded strings:\n * In most browsers calling window.btoa on a Unicode string will cause\n * a Character Out Of Range exception if a character exceeds the range\n * of a 8-bit ASCII-encoded character.\n * This method solves the problem\n */\n decodeURIComponent(Array.prototype.map.call(window.atob(str), c => `%${`00${c.charCodeAt(0).toString(16)}`.slice(-2)}`).join(''));\n\n/**\n * @internal\n */\nconst base64 = {\n decode: (pData: string): DecodeObject => {\n if (!base64.isBase64(pData)) {\n return {\n success: false,\n error: NOT_BASE64_ERROR\n };\n }\n\n try {\n const data = b64DecodeUnicode(pData);\n return {\n success: true,\n data\n };\n } catch (e) {\n return {\n success: false,\n error: BASE64_MALFORMED_URI_ERROR\n };\n }\n },\n\n encode: pData => window.btoa(pData),\n\n isBase64: pDataStr => {\n if (!pDataStr) {\n return false;\n }\n\n if (pDataStr.length % 4) {\n return false;\n }\n\n try {\n return window.btoa(window.atob(pDataStr)) === pDataStr;\n } catch (e) {\n return false;\n }\n }\n};\n\nexport default base64;\n"],"names":["NOT_BASE64_ERROR","BASE64_MALFORMED_URI_ERROR","base64","decode","pData","isBase64","success","error","data","str","decodeURIComponent","Array","prototype","map","call","window","atob","c","charCodeAt","toString","slice","join","e","encode","btoa","pDataStr","length"],"mappings":"AAEO,MAAMA,EAAmB,aACnBC,EAA6B,yBAepCC,EAAS,CACXC,OAASC,IACL,IAAKF,EAAOG,SAASD,GACjB,MAAO,CACHE,SAAS,EACTC,MAAOP,GAIf,IAEI,MAAO,CACHM,SAAS,EACTE,MA1BSC,EAuBiBL,EAftCM,mBAAmBC,MAAMC,UAAUC,IAAIC,KAAKC,OAAOC,KAAKP,IAAMQ,GAAK,IAAI,KAAKA,EAAEC,WAAW,GAAGC,SAAS,MAAMC,OAAM,OAAOC,KAAK,MAoBzH,CAAE,MAAOC,GACL,MAAO,CACHhB,SAAS,EACTC,MAAON,EAEf,CAjCiBQ,IAAAA,CAiCjB,EAGJc,OAAQnB,GAASW,OAAOS,KAAKpB,GAE7BC,SAAUoB,IACN,IAAKA,EACD,OAAO,EAGX,GAAIA,EAASC,OAAS,EAClB,OAAO,EAGX,IACI,OAAOX,OAAOS,KAAKT,OAAOC,KAAKS,MAAeA,CAClD,CAAE,MAAOH,GACL,OAAO,CACX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"./getProp.js";function n(){const n=e(window,"screen.colorDepth")||"",
|
|
1
|
+
import e from"./getProp.js";function n(){const n=e(window,"screen.colorDepth")||"",t=e(window,"screen.height")||"",o=e(window,"screen.width")||"",r=e(window,"navigator.userAgent")||"";return{acceptHeader:"*/*",colorDepth:n,language:e(window,"navigator.language")||"en",javaEnabled:!1,screenHeight:t,screenWidth:o,userAgent:r,timeZoneOffset:(new Date).getTimezoneOffset()}}export{n as default};
|
|
2
2
|
//# sourceMappingURL=browserInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserInfo.js","sources":["../../../src/utils/browserInfo.ts"],"sourcesContent":["import getProp from './getProp';\nimport { BrowserInfo } from '../types/global-types';\n\n/**\n * Collects available frontend browser info and store it in the properties dictated by the EMVCo spec\n * (3DS_Spec_protocolAndCoreFny_v2-1_Oct2017.pdf)\n *\n * @example\n * ```js\n * const browserInfo = collectBrowserInfo();\n * ```\n *\n * @returns An object containing the retrieved browser properties\n */\nexport default function collectBrowserInfo(): BrowserInfo {\n const colorDepth = getProp(window, 'screen.colorDepth') || '';\n const javaEnabled =
|
|
1
|
+
{"version":3,"file":"browserInfo.js","sources":["../../../src/utils/browserInfo.ts"],"sourcesContent":["import getProp from './getProp';\nimport { BrowserInfo } from '../types/global-types';\n\n/**\n * Collects available frontend browser info and store it in the properties dictated by the EMVCo spec\n * (3DS_Spec_protocolAndCoreFny_v2-1_Oct2017.pdf)\n *\n * @example\n * ```js\n * const browserInfo = collectBrowserInfo();\n * ```\n *\n * @returns An object containing the retrieved browser properties\n */\nexport default function collectBrowserInfo(): BrowserInfo {\n const colorDepth = getProp(window, 'screen.colorDepth') || '';\n const javaEnabled = false;\n const screenHeight = getProp(window, 'screen.height') || ''; // TODO: Shall we set this to null instead?\n const screenWidth = getProp(window, 'screen.width') || ''; // TODO: Shall we set this to null instead?\n const userAgent = getProp(window, 'navigator.userAgent') || '';\n\n const language = getProp(window, 'navigator.language') || 'en';\n const d = new Date();\n const timeZoneOffset = d.getTimezoneOffset();\n\n return {\n acceptHeader: '*/*',\n colorDepth,\n language,\n javaEnabled,\n screenHeight,\n screenWidth,\n userAgent,\n timeZoneOffset\n };\n}\n"],"names":["collectBrowserInfo","colorDepth","getProp","window","screenHeight","screenWidth","userAgent","acceptHeader","language","javaEnabled","timeZoneOffset","Date","getTimezoneOffset"],"mappings":"4BAce,SAASA,IACpB,MAAMC,EAAaC,EAAQC,OAAQ,sBAAwB,GAErDC,EAAeF,EAAQC,OAAQ,kBAAoB,GACnDE,EAAcH,EAAQC,OAAQ,iBAAmB,GACjDG,EAAYJ,EAAQC,OAAQ,wBAA0B,GAM5D,MAAO,CACHI,aAAc,MACdN,aACAO,SAPaN,EAAQC,OAAQ,uBAAyB,KAQtDM,aAbgB,EAchBL,eACAC,cACAC,YACAI,gBAXM,IAAIC,MACWC,oBAY7B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{selectOne as e}from"../components/internal/SecuredFields/lib/utilities/dom.js";const
|
|
1
|
+
import{selectOne as e}from"../components/internal/SecuredFields/lib/utilities/dom.js";const t=(t,c,o="")=>{const n=e(document,t);if("country"===c||"stateOrProvince"===c||"issuer-list"===c||"selectedAccountType"===c){const t=e(n,`${o}.adyen-checkout__field--${c} .adyen-checkout__filter-input`);t?.focus()}else{const t=e(n,`${o} [name="${c}"]`);t?.focus()}};export{t as setFocusOnField};
|
|
2
2
|
//# sourceMappingURL=setFocus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setFocus.js","sources":["../../../src/utils/setFocus.ts"],"sourcesContent":["import { selectOne } from '../components/internal/SecuredFields/lib/utilities/dom';\n\n/**\n * Generic function to set focus on named element\n * @param holder -\n * @param fieldToFocus -\n */\nexport const setFocusOnField = (holder, fieldToFocus) => {\n const pdHolder = selectOne(document, holder);\n\n
|
|
1
|
+
{"version":3,"file":"setFocus.js","sources":["../../../src/utils/setFocus.ts"],"sourcesContent":["import { selectOne } from '../components/internal/SecuredFields/lib/utilities/dom';\n\n/**\n * Generic function to set focus on named element\n * @param holder -\n * @param fieldToFocus -\n * @param focusContextSelector - some fields can occur twice in a form but in a different context e.g. as part of a billingAddress or as part of a deliverySddress.\n * This param provides the context so we can select them correctly\n */\nexport const setFocusOnField = (holder, fieldToFocus, focusContextSelector = '') => {\n const pdHolder = selectOne(document, holder);\n\n // Identify if we're dealing with a dropdown\n if (\n fieldToFocus === 'country' ||\n fieldToFocus === 'stateOrProvince' ||\n fieldToFocus === 'issuer-list' ||\n fieldToFocus === 'selectedAccountType'\n ) {\n // Set focus on dropdown\n const field: HTMLElement = selectOne(\n pdHolder,\n `${focusContextSelector}.adyen-checkout__field--${fieldToFocus} .adyen-checkout__filter-input`\n );\n field?.focus();\n } else {\n // Set focus on input\n const field: HTMLElement = selectOne(pdHolder, `${focusContextSelector} [name=\"${fieldToFocus}\"]`);\n field?.focus();\n }\n};\n"],"names":["setFocusOnField","holder","fieldToFocus","focusContextSelector","pdHolder","selectOne","document","field","focus"],"mappings":"sFASaA,MAAAA,EAAkB,CAACC,EAAQC,EAAcC,EAAuB,MACzE,MAAMC,EAAWC,EAAUC,SAAUL,GAGrC,GACqB,YAAjBC,GACiB,oBAAjBA,GACiB,gBAAjBA,GACiB,wBAAjBA,EACF,CAEE,MAAMK,EAAqBF,EACvBD,EACA,GAAGD,4BAA+CD,mCAEtDK,GAAOC,YACJ,CAEH,MAAMD,EAAqBF,EAAUD,EAAU,GAAGD,YAA+BD,OACjFK,GAAOC,OACX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=e=>e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()
|
|
1
|
+
const e=e=>e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase();export{e as camelCaseToSnakeCase};
|
|
2
2
|
//# sourceMappingURL=textUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textUtils.js","sources":["../../../src/utils/textUtils.ts"],"sourcesContent":["export const camelCaseToSnakeCase = camelCaseString => {\n return camelCaseString.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();\n};\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n};\n"],"names":["camelCaseToSnakeCase","camelCaseString","replace","toLowerCase"
|
|
1
|
+
{"version":3,"file":"textUtils.js","sources":["../../../src/utils/textUtils.ts"],"sourcesContent":["export const camelCaseToSnakeCase = camelCaseString => {\n return camelCaseString.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();\n};\n\nexport const capitalizeFirstLetter = (str: string): string => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n};\n"],"names":["camelCaseToSnakeCase","camelCaseString","replace","toLowerCase"],"mappings":"AAAO,MAAMA,EAAuBC,GACzBA,EAAgBC,QAAQ,kBAAmB,SAASC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useMemo as e,useReducer as a,useCallback as t,useEffect as r}from"../../external/preact/hooks/dist/hooks.js";import s from"../Validator/Validator.js";import{
|
|
1
|
+
import{useMemo as e,useReducer as a,useCallback as t,useEffect as r}from"../../external/preact/hooks/dist/hooks.js";import s from"../Validator/Validator.js";import{init as l,getReducer as o}from"./reducer.js";function m(m){const{rules:d={},formatters:i={},defaultData:c={},fieldProblems:u={},schema:f=[]}=m,n=e((()=>new s(d)),[d]),p=({key:e,value:a,mode:t},r)=>{const s=i?.[e],l=function(e){return e&&"formatterFn"in e}(s)?s.formatterFn:s,o=l&&"function"==typeof l?l(a??"",r):a;return[o,n.validate({key:e,value:o,mode:t},r)]},[y,h]=a(o(p),{defaultData:c,schema:f??[],processField:p,fieldProblems:u},l),v=e((()=>y.schema.reduce(((e,a)=>e&&y.valid[a]),!0)),[y.schema,y.valid]),g=t(((e=null)=>{h({type:"validateForm",selectedSchema:e})}),[]),k=t(((e,a)=>h({type:"setErrors",key:e,value:a})),[]),F=t(((e,a)=>h({type:"setValid",key:e,value:a})),[]),b=t(((e,a)=>h({type:"setData",key:e,value:a})),[]),D=t((e=>h({type:"mergeData",data:e})),[]),P=t((e=>h({type:"setSchema",schema:e,defaultData:c})),[y.schema]),V=t((e=>h({type:"mergeForm",formValue:e})),[]),S=t((e=>h({type:"setFieldProblems",fieldProblems:e})),[y.schema]);return r((()=>{S(u??{})}),[JSON.stringify(u)]),{handleChangeFor:(e,a)=>t=>{const r=((e,a)=>a.target?"checkbox"===a.target.type?!y.data[e]:a.target.value:a)(e,t);h({type:"updateField",key:e,value:r,mode:a})},triggerValidation:g,setSchema:P,setData:b,mergeData:D,setValid:F,setErrors:k,isValid:v,mergeForm:V,setFieldProblems:S,schema:y.schema,valid:y.valid,errors:y.errors,data:y.data,fieldProblems:y.fieldProblems}}export{m as default};
|
|
2
2
|
//# sourceMappingURL=useForm.js.map
|