@adyen/adyen-web 5.53.0 → 5.53.2

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.
@@ -122,11 +122,17 @@ export interface CoreOptions {
122
122
  */
123
123
  loadingContext?: string;
124
124
  }
125
- export type PaymentMethodsConfiguration = {
125
+ type PaymentMethodsConfigurationMap = {
126
126
  [key in keyof PaymentMethods]?: Partial<PaymentMethodOptions<key>>;
127
- } | {
128
- [key in PaymentActionsType]?: any;
129
- } | {
130
- [key: string]: UIElementProps;
131
127
  };
128
+ type PaymentActionTypesMap = {
129
+ [key in PaymentActionsType]?: Partial<UIElementProps>;
130
+ };
131
+ /**
132
+ * Type must be loose, otherwise it will take priority over the rest
133
+ */
134
+ type NonMappedPaymentMethodsMap = {
135
+ [key: string]: any;
136
+ };
137
+ export type PaymentMethodsConfiguration = PaymentMethodsConfigurationMap & PaymentActionTypesMap & NonMappedPaymentMethodsMap;
132
138
  export {};
package/package.json CHANGED
@@ -16,6 +16,7 @@
16
16
  "typings": "dist/types",
17
17
  "exports": {
18
18
  ".": {
19
+ "types": "./dist/types/index.d.ts",
19
20
  "import": "./dist/es/index.js",
20
21
  "require": "./dist/cjs/index.js"
21
22
  },
@@ -24,7 +25,7 @@
24
25
  "./dist/es/adyen.css": "./dist/es/adyen.css",
25
26
  "./package.json": "./package.json"
26
27
  },
27
- "version": "5.53.0",
28
+ "version": "5.53.2",
28
29
  "license": "MIT",
29
30
  "homepage": "https://docs.adyen.com/checkout",
30
31
  "repository": "github:Adyen/adyen-web",
@@ -81,10 +82,10 @@
81
82
  "@types/jest": "29.5.2",
82
83
  "@typescript-eslint/eslint-plugin": "5.59.1",
83
84
  "@typescript-eslint/parser": "5.59.1",
84
- "autoprefixer": "10.4.14",
85
+ "autoprefixer": "10.4.16",
85
86
  "babel-jest": "29.5.0",
86
87
  "cross-env": "^7.0.3",
87
- "cssnano": "5.1.15",
88
+ "cssnano": "6.0.1",
88
89
  "dotenv": "^16.0.3",
89
90
  "enzyme": "3.11.0",
90
91
  "enzyme-adapter-preact-pure": "4.1.0",
@@ -102,7 +103,7 @@
102
103
  "jest-environment-jsdom": "29.5.0",
103
104
  "jest-mock-extended": "^3.0.1",
104
105
  "lint-staged": "^13.0.3",
105
- "postcss": "8.4.24",
106
+ "postcss": "8.4.31",
106
107
  "react": "^18.2.0",
107
108
  "react-dom": "^18.2.0",
108
109
  "rollup": "^2.79.1",