@adyen/adyen-web 5.33.0 → 5.34.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/README.md +5 -1
- package/dist/adyen.css +5 -5
- 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 +5 -5
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +5 -5
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/adyen.css +5 -5
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/Ach/components/AchInput/types.d.ts +1 -1
- package/dist/types/components/AmazonPay/types.d.ts +9 -9
- package/dist/types/components/ApplePay/types.d.ts +2 -2
- package/dist/types/components/Atome/config.d.ts +1 -1
- package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +0 -1
- package/dist/types/components/Card/Bancontact.d.ts +5 -2
- package/dist/types/components/Card/Card.d.ts +6 -7
- package/dist/types/components/Card/ClickToPayHolder.d.ts +1 -1
- package/dist/types/components/Card/ClickToPayWrapper.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/AvailableBrands/AvailableBrands.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/types.d.ts +2 -2
- package/dist/types/components/Card/components/CardInput/types.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/ClickToPayComponent.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPBrand/CtPBrand.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCards.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPSingleCard/CtPSingleCard.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/CtPLoginInput.d.ts +11 -7
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.d.ts +11 -7
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayContext.d.ts +2 -0
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayProvider.d.ts +4 -2
- package/dist/types/components/Card/components/ClickToPay/services/ClickToPayService.d.ts +1 -1
- package/dist/types/components/Card/components/ClickToPay/services/sdks/AbstractSrcInitiator.d.ts +3 -4
- package/dist/types/components/Card/components/ClickToPay/services/sdks/MastercardSdk.d.ts +2 -3
- package/dist/types/components/Card/components/ClickToPay/services/sdks/SrciError.d.ts +2 -2
- package/dist/types/components/Card/components/ClickToPay/services/sdks/VisaSdk.d.ts +2 -3
- package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +14 -10
- package/dist/types/components/Card/components/ClickToPay/services/types.d.ts +10 -10
- package/dist/types/components/Card/types.d.ts +17 -6
- package/dist/types/components/Dropin/types.d.ts +1 -1
- package/dist/types/components/DuitNow/DuitNow.d.ts +0 -1
- package/dist/types/components/Giftcard/components/types.d.ts +2 -2
- package/dist/types/components/Klarna/types.d.ts +2 -2
- package/dist/types/components/Oxxo/types.d.ts +1 -1
- package/dist/types/components/PayNow/PayNow.d.ts +0 -1
- package/dist/types/components/PayPal/Paypal.d.ts +1 -1
- package/dist/types/components/PayPal/types.d.ts +7 -4
- package/dist/types/components/Pix/PixInput/types.d.ts +1 -1
- package/dist/types/components/PromptPay/PromptPay.d.ts +0 -1
- package/dist/types/components/Swish/Swish.d.ts +0 -1
- package/dist/types/components/ThreeDS2/types.d.ts +4 -4
- package/dist/types/components/UPI/components/UPIComponent/UPIComponent.d.ts +8 -6
- package/dist/types/components/UPI/components/VpaInput/VpaInput.d.ts +11 -7
- package/dist/types/components/UPI/types.d.ts +1 -1
- package/dist/types/components/WeChat/WeChat.d.ts +0 -1
- package/dist/types/components/helpers/QRLoaderContainer.d.ts +0 -1
- package/dist/types/components/internal/Address/types.d.ts +3 -3
- package/dist/types/components/internal/Await/Await.d.ts +0 -1
- package/dist/types/components/internal/Await/types.d.ts +0 -1
- package/dist/types/components/internal/Button/types.d.ts +1 -1
- package/dist/types/components/internal/IbanInput/utils.d.ts +1 -1
- package/dist/types/components/internal/Modal/Modal.d.ts +2 -2
- package/dist/types/components/internal/Modal/useModal.d.ts +2 -2
- package/dist/types/components/internal/Modal/useTrapFocus.d.ts +1 -1
- package/dist/types/components/internal/PersonalDetails/types.d.ts +1 -1
- package/dist/types/components/internal/QRLoader/QRLoader.d.ts +1 -1
- package/dist/types/components/internal/QRLoader/types.d.ts +1 -2
- package/dist/types/components/internal/SecuredFields/lib/CSF/utils/processErrors.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/types.d.ts +5 -5
- package/dist/types/components/types.d.ts +3 -3
- package/dist/types/core/Analytics/Analytics.d.ts +2 -1
- package/dist/types/core/Analytics/EventsQueue.d.ts +1 -1
- package/dist/types/core/RiskModule/RiskModule.d.ts +1 -1
- package/dist/types/core/Services/analytics/post-telemetry.d.ts +3 -1
- package/dist/types/core/Services/analytics/types.d.ts +2 -2
- package/dist/types/core/Services/data-set.d.ts +1 -1
- package/dist/types/core/Services/http.d.ts +1 -1
- package/dist/types/core/types.d.ts +1 -1
- package/dist/types/language/Language.d.ts +3 -3
- package/dist/types/language/types.d.ts +2 -2
- package/dist/types/language/utils.d.ts +4 -3
- package/dist/types/types/index.d.ts +13 -13
- package/dist/types/utils/Formatters/types.d.ts +1 -1
- package/dist/types/utils/Validator/types.d.ts +9 -9
- package/dist/types/utils/useForm/types.d.ts +2 -2
- package/package.json +10 -10
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ValidationRuleResult } from './ValidationRuleResult';
|
|
2
2
|
import { Formatter } from '../useForm/types';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type ValidatorMode = 'blur' | 'input';
|
|
4
|
+
export type ErrorMessageObject = {
|
|
5
5
|
translationKey: string;
|
|
6
6
|
translationObject: any;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type Ruleset = {
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type CountryRuleset = {
|
|
12
12
|
[country: string]: Ruleset;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type FormatRules = {
|
|
15
15
|
[field: string]: Formatter;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type CountryFormatRules = {
|
|
18
18
|
[country: string]: FormatRules;
|
|
19
19
|
};
|
|
20
20
|
export interface ValidatorRule {
|
|
@@ -22,10 +22,10 @@ export interface ValidatorRule {
|
|
|
22
22
|
errorMessage?: string | ErrorMessageObject;
|
|
23
23
|
modes: ValidatorMode[];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type ValidatorRules = {
|
|
26
26
|
[field: string]: ValidatorRule | ValidatorRule[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type CountryBasedValidatorRules = {
|
|
29
29
|
[country: string]: ValidatorRules;
|
|
30
30
|
};
|
|
31
31
|
export interface FieldData {
|
|
@@ -38,7 +38,7 @@ export interface FieldContext {
|
|
|
38
38
|
[key: string]: any;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type ValidationRuleResults = {
|
|
42
42
|
[key: string]: ValidationRuleResult;
|
|
43
43
|
};
|
|
44
44
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorRules } from '../Validator/types';
|
|
2
2
|
import { FormatterFn } from '../Formatters/types';
|
|
3
|
-
export
|
|
3
|
+
export type FormState<FormSchema> = {
|
|
4
4
|
schema?: string[];
|
|
5
5
|
data: FormSchema;
|
|
6
6
|
errors: {
|
|
@@ -19,7 +19,7 @@ export interface Formatter {
|
|
|
19
19
|
format?: string;
|
|
20
20
|
maxlength?: number;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type FormProps = {
|
|
23
23
|
rules?: ValidatorRules;
|
|
24
24
|
formatters?: {
|
|
25
25
|
[key: string]: Formatter | Function;
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"./dist/adyen.css": "./dist/adyen.css",
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
|
-
"version": "5.
|
|
26
|
+
"version": "5.34.0",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"homepage": "https://docs.adyen.com/checkout",
|
|
29
29
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
"@testing-library/preact": "3.2.3",
|
|
68
68
|
"@testing-library/preact-hooks": "1.1.0",
|
|
69
69
|
"@testing-library/user-event": "14.4.3",
|
|
70
|
-
"@types/jest": "29.
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "
|
|
72
|
-
"@typescript-eslint/parser": "
|
|
70
|
+
"@types/jest": "29.4.0",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "5.50.0",
|
|
72
|
+
"@typescript-eslint/parser": "5.50.0",
|
|
73
73
|
"autoprefixer": "10.4.13",
|
|
74
|
-
"babel-jest": "29.
|
|
74
|
+
"babel-jest": "29.4.1",
|
|
75
75
|
"cross-env": "^7.0.3",
|
|
76
76
|
"cssnano": "5.1.14",
|
|
77
77
|
"dotenv": "^16.0.3",
|
|
78
78
|
"enzyme": "3.11.0",
|
|
79
79
|
"enzyme-adapter-preact-pure": "4.1.0",
|
|
80
|
-
"eslint": "8.
|
|
80
|
+
"eslint": "8.33.0",
|
|
81
81
|
"eslint-plugin-import": "^2.26.0",
|
|
82
82
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
83
83
|
"eslint-plugin-react": "^7.31.8",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"filesize": "^10.0.0",
|
|
87
87
|
"gzip-size": "^6.0.0",
|
|
88
88
|
"husky": "^8.0.1",
|
|
89
|
-
"jest": "29.
|
|
90
|
-
"jest-environment-jsdom": "29.
|
|
89
|
+
"jest": "29.4.1",
|
|
90
|
+
"jest-environment-jsdom": "29.4.1",
|
|
91
91
|
"jest-mock-extended": "^3.0.1",
|
|
92
92
|
"lint-staged": "^13.0.3",
|
|
93
93
|
"postcss": "8.4.21",
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
"rollup-plugin-stylelint": "1.0.0",
|
|
97
97
|
"rollup-plugin-terser": "^7.0.2",
|
|
98
98
|
"rollup-plugin-visualizer": "^5.8.3",
|
|
99
|
-
"sass": "1.
|
|
99
|
+
"sass": "1.58.0",
|
|
100
100
|
"stylelint": "14.16.1",
|
|
101
101
|
"stylelint-config-standard-scss": "6.1.0",
|
|
102
102
|
"tslib": "^2.4.1",
|
|
103
|
-
"typescript": "4.5
|
|
103
|
+
"typescript": "4.9.5",
|
|
104
104
|
"whatwg-fetch": "^3.6.2"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|