@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.
Files changed (93) hide show
  1. package/README.md +5 -1
  2. package/dist/adyen.css +5 -5
  3. package/dist/adyen.css.map +1 -1
  4. package/dist/adyen.js +1 -1
  5. package/dist/adyen.js.map +1 -1
  6. package/dist/cjs/adyen.css +5 -5
  7. package/dist/cjs/adyen.css.map +1 -1
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/es/adyen.css +5 -5
  10. package/dist/es/adyen.css.map +1 -1
  11. package/dist/es/index.js +1 -1
  12. package/dist/es.modern/adyen.css +5 -5
  13. package/dist/es.modern/adyen.css.map +1 -1
  14. package/dist/es.modern/index.js +1 -1
  15. package/dist/types/components/Ach/components/AchInput/types.d.ts +1 -1
  16. package/dist/types/components/AmazonPay/types.d.ts +9 -9
  17. package/dist/types/components/ApplePay/types.d.ts +2 -2
  18. package/dist/types/components/Atome/config.d.ts +1 -1
  19. package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +0 -1
  20. package/dist/types/components/Card/Bancontact.d.ts +5 -2
  21. package/dist/types/components/Card/Card.d.ts +6 -7
  22. package/dist/types/components/Card/ClickToPayHolder.d.ts +1 -1
  23. package/dist/types/components/Card/ClickToPayWrapper.d.ts +1 -1
  24. package/dist/types/components/Card/components/CardInput/components/AvailableBrands/AvailableBrands.d.ts +1 -1
  25. package/dist/types/components/Card/components/CardInput/components/types.d.ts +2 -2
  26. package/dist/types/components/Card/components/CardInput/types.d.ts +1 -1
  27. package/dist/types/components/Card/components/ClickToPay/ClickToPayComponent.d.ts +1 -1
  28. package/dist/types/components/Card/components/ClickToPay/components/CtPBrand/CtPBrand.d.ts +1 -1
  29. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCards.d.ts +1 -1
  30. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +1 -1
  31. package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPSingleCard/CtPSingleCard.d.ts +1 -1
  32. package/dist/types/components/Card/components/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.d.ts +1 -1
  33. package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/CtPLoginInput.d.ts +11 -7
  34. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.d.ts +1 -1
  35. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.d.ts +11 -7
  36. package/dist/types/components/Card/components/ClickToPay/context/ClickToPayContext.d.ts +2 -0
  37. package/dist/types/components/Card/components/ClickToPay/context/ClickToPayProvider.d.ts +4 -2
  38. package/dist/types/components/Card/components/ClickToPay/services/ClickToPayService.d.ts +1 -1
  39. package/dist/types/components/Card/components/ClickToPay/services/sdks/AbstractSrcInitiator.d.ts +3 -4
  40. package/dist/types/components/Card/components/ClickToPay/services/sdks/MastercardSdk.d.ts +2 -3
  41. package/dist/types/components/Card/components/ClickToPay/services/sdks/SrciError.d.ts +2 -2
  42. package/dist/types/components/Card/components/ClickToPay/services/sdks/VisaSdk.d.ts +2 -3
  43. package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +14 -10
  44. package/dist/types/components/Card/components/ClickToPay/services/types.d.ts +10 -10
  45. package/dist/types/components/Card/types.d.ts +17 -6
  46. package/dist/types/components/Dropin/types.d.ts +1 -1
  47. package/dist/types/components/DuitNow/DuitNow.d.ts +0 -1
  48. package/dist/types/components/Giftcard/components/types.d.ts +2 -2
  49. package/dist/types/components/Klarna/types.d.ts +2 -2
  50. package/dist/types/components/Oxxo/types.d.ts +1 -1
  51. package/dist/types/components/PayNow/PayNow.d.ts +0 -1
  52. package/dist/types/components/PayPal/Paypal.d.ts +1 -1
  53. package/dist/types/components/PayPal/types.d.ts +7 -4
  54. package/dist/types/components/Pix/PixInput/types.d.ts +1 -1
  55. package/dist/types/components/PromptPay/PromptPay.d.ts +0 -1
  56. package/dist/types/components/Swish/Swish.d.ts +0 -1
  57. package/dist/types/components/ThreeDS2/types.d.ts +4 -4
  58. package/dist/types/components/UPI/components/UPIComponent/UPIComponent.d.ts +8 -6
  59. package/dist/types/components/UPI/components/VpaInput/VpaInput.d.ts +11 -7
  60. package/dist/types/components/UPI/types.d.ts +1 -1
  61. package/dist/types/components/WeChat/WeChat.d.ts +0 -1
  62. package/dist/types/components/helpers/QRLoaderContainer.d.ts +0 -1
  63. package/dist/types/components/internal/Address/types.d.ts +3 -3
  64. package/dist/types/components/internal/Await/Await.d.ts +0 -1
  65. package/dist/types/components/internal/Await/types.d.ts +0 -1
  66. package/dist/types/components/internal/Button/types.d.ts +1 -1
  67. package/dist/types/components/internal/IbanInput/utils.d.ts +1 -1
  68. package/dist/types/components/internal/Modal/Modal.d.ts +2 -2
  69. package/dist/types/components/internal/Modal/useModal.d.ts +2 -2
  70. package/dist/types/components/internal/Modal/useTrapFocus.d.ts +1 -1
  71. package/dist/types/components/internal/PersonalDetails/types.d.ts +1 -1
  72. package/dist/types/components/internal/QRLoader/QRLoader.d.ts +1 -1
  73. package/dist/types/components/internal/QRLoader/types.d.ts +1 -2
  74. package/dist/types/components/internal/SecuredFields/lib/CSF/utils/processErrors.d.ts +1 -1
  75. package/dist/types/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.d.ts +1 -1
  76. package/dist/types/components/internal/SecuredFields/lib/types.d.ts +5 -5
  77. package/dist/types/components/types.d.ts +3 -3
  78. package/dist/types/core/Analytics/Analytics.d.ts +2 -1
  79. package/dist/types/core/Analytics/EventsQueue.d.ts +1 -1
  80. package/dist/types/core/RiskModule/RiskModule.d.ts +1 -1
  81. package/dist/types/core/Services/analytics/post-telemetry.d.ts +3 -1
  82. package/dist/types/core/Services/analytics/types.d.ts +2 -2
  83. package/dist/types/core/Services/data-set.d.ts +1 -1
  84. package/dist/types/core/Services/http.d.ts +1 -1
  85. package/dist/types/core/types.d.ts +1 -1
  86. package/dist/types/language/Language.d.ts +3 -3
  87. package/dist/types/language/types.d.ts +2 -2
  88. package/dist/types/language/utils.d.ts +4 -3
  89. package/dist/types/types/index.d.ts +13 -13
  90. package/dist/types/utils/Formatters/types.d.ts +1 -1
  91. package/dist/types/utils/Validator/types.d.ts +9 -9
  92. package/dist/types/utils/useForm/types.d.ts +2 -2
  93. package/package.json +10 -10
@@ -1,20 +1,20 @@
1
1
  import { ValidationRuleResult } from './ValidationRuleResult';
2
2
  import { Formatter } from '../useForm/types';
3
- declare type ValidatorMode = 'blur' | 'input';
4
- export declare type ErrorMessageObject = {
3
+ type ValidatorMode = 'blur' | 'input';
4
+ export type ErrorMessageObject = {
5
5
  translationKey: string;
6
6
  translationObject: any;
7
7
  };
8
- export declare type Ruleset = {
8
+ export type Ruleset = {
9
9
  [key: string]: any;
10
10
  };
11
- export declare type CountryRuleset = {
11
+ export type CountryRuleset = {
12
12
  [country: string]: Ruleset;
13
13
  };
14
- export declare type FormatRules = {
14
+ export type FormatRules = {
15
15
  [field: string]: Formatter;
16
16
  };
17
- export declare type CountryFormatRules = {
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 declare type ValidatorRules = {
25
+ export type ValidatorRules = {
26
26
  [field: string]: ValidatorRule | ValidatorRule[];
27
27
  };
28
- export declare type CountryBasedValidatorRules = {
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 declare type ValidationRuleResults = {
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 declare type FormState<FormSchema> = {
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 declare type FormProps = {
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.33.0",
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.2.6",
71
- "@typescript-eslint/eslint-plugin": "^5.37.0",
72
- "@typescript-eslint/parser": "^5.39.0",
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.3.1",
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.31.0",
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.3.1",
90
- "jest-environment-jsdom": "29.3.1",
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.57.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.3",
103
+ "typescript": "4.9.5",
104
104
  "whatwg-fetch": "^3.6.2"
105
105
  },
106
106
  "dependencies": {