@adyen/adyen-web 5.28.2 → 5.29.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 +4 -2
- package/dist/adyen.css +7 -6
- 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 +7 -6
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +7 -6
- 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 -1
- 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 +7 -6
- 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 -1
- 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/AmazonPay/AmazonPay.d.ts +1 -16
- package/dist/types/components/AmazonPay/defaultProps.d.ts +3 -17
- package/dist/types/components/AmazonPay/types.d.ts +1 -2
- package/dist/types/components/AmazonPay/utils.d.ts +2 -2
- package/dist/types/components/Blik/Blik.d.ts +5 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayContext.d.ts +2 -2
- package/dist/types/components/Card/components/ClickToPay/context/useClickToPayContext.d.ts +2 -2
- package/dist/types/components/Card/components/ClickToPay/models/ShopperCard.d.ts +4 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/SrciError.d.ts +2 -1
- package/dist/types/components/Card/components/ClickToPay/services/sdks/config.d.ts +5 -2
- package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +2 -0
- package/dist/types/components/Card/components/ClickToPay/services/types.d.ts +6 -3
- package/dist/types/components/Card/components/ClickToPay/services/utils.d.ts +3 -0
- package/dist/types/components/Dropin/Dropin.d.ts +6 -0
- package/dist/types/components/Giftcard/Giftcard.d.ts +2 -2
- package/dist/types/components/PayNow/PayNow.d.ts +46 -0
- package/dist/types/components/PayNow/config.d.ts +7 -0
- package/dist/types/components/PayNow/index.d.ts +1 -0
- package/dist/types/components/PromptPay/PromptPay.d.ts +46 -0
- package/dist/types/components/PromptPay/config.d.ts +7 -0
- package/dist/types/components/PromptPay/index.d.ts +1 -0
- package/dist/types/components/ThreeDS2/ThreeDS2Challenge.d.ts +1 -0
- package/dist/types/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.d.ts +1 -0
- package/dist/types/components/ThreeDS2/components/Challenge/types.d.ts +1 -0
- package/dist/types/components/UIElement.d.ts +15 -6
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +1 -4
- package/dist/types/core/types.d.ts +2 -1
- package/dist/types/language/config.d.ts +1 -0
- package/dist/types/language/locales/index.d.ts +1727 -25
- package/dist/types/types/index.d.ts +2 -2
- package/dist/types/utils/Script.d.ts +8 -3
- package/package.json +8 -4
|
@@ -236,13 +236,13 @@ export declare type CheckoutSessionSetupResponse = {
|
|
|
236
236
|
export declare type CheckoutSessionPaymentResponse = {
|
|
237
237
|
sessionData: string;
|
|
238
238
|
status?: string;
|
|
239
|
-
resultCode
|
|
239
|
+
resultCode: string;
|
|
240
240
|
action?: PaymentAction;
|
|
241
241
|
};
|
|
242
242
|
export declare type CheckoutSessionDetailsResponse = {
|
|
243
243
|
sessionData: string;
|
|
244
244
|
status?: string;
|
|
245
|
-
resultCode
|
|
245
|
+
resultCode: string;
|
|
246
246
|
action?: PaymentAction;
|
|
247
247
|
};
|
|
248
248
|
export declare type CheckoutSessionBalanceResponse = {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
interface IScript {
|
|
2
|
+
load(): Promise<any>;
|
|
3
|
+
remove(): HTMLScriptElement;
|
|
4
|
+
}
|
|
1
5
|
/**
|
|
2
6
|
* Creates a script element from a certain source in the passed node selector.
|
|
3
7
|
* If no selector is passed it will add the script element in the body.
|
|
@@ -11,14 +15,15 @@
|
|
|
11
15
|
* script.remove();
|
|
12
16
|
* ```
|
|
13
17
|
*/
|
|
14
|
-
declare class Script {
|
|
15
|
-
private readonly script;
|
|
18
|
+
declare class Script implements IScript {
|
|
16
19
|
private readonly src;
|
|
17
20
|
private readonly node;
|
|
18
21
|
private readonly attributes;
|
|
19
22
|
private readonly dataAttributes;
|
|
23
|
+
private isScriptLoadCalled;
|
|
24
|
+
private script;
|
|
20
25
|
constructor(src: any, node?: string, attributes?: Partial<HTMLScriptElement>, dataAttributes?: Record<string, string | undefined>);
|
|
21
|
-
load: () => Promise<
|
|
26
|
+
load: () => Promise<void>;
|
|
22
27
|
remove: () => HTMLScriptElement;
|
|
23
28
|
}
|
|
24
29
|
export default Script;
|
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.29.0",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"homepage": "https://docs.adyen.com/checkout",
|
|
29
29
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -60,9 +60,11 @@
|
|
|
60
60
|
"@rollup/plugin-eslint": "^8.0.1",
|
|
61
61
|
"@rollup/plugin-json": "^4.1.0",
|
|
62
62
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
63
|
-
"@rollup/plugin-replace": "^
|
|
63
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
64
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
64
65
|
"@testing-library/preact": "^2.0.1",
|
|
65
66
|
"@testing-library/preact-hooks": "^1.1.0",
|
|
67
|
+
"@testing-library/user-event": "^14.4.3",
|
|
66
68
|
"@types/jest": "^27.4.1",
|
|
67
69
|
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
68
70
|
"@typescript-eslint/parser": "^5.39.0",
|
|
@@ -78,10 +80,12 @@
|
|
|
78
80
|
"eslint-plugin-import": "^2.26.0",
|
|
79
81
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
80
82
|
"eslint-plugin-react": "^7.31.8",
|
|
83
|
+
"eslint-plugin-testing-library": "^5.9.1",
|
|
81
84
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
82
85
|
"filesize": "^9.0.11",
|
|
83
86
|
"gzip-size": "^6.0.0",
|
|
84
87
|
"jest": "^26.6.3",
|
|
88
|
+
"jest-mock-extended": "^3.0.1",
|
|
85
89
|
"node-sass": "^6.0.1",
|
|
86
90
|
"postcss": "^8.4.7",
|
|
87
91
|
"postcss-reporter": "^7.0.5",
|
|
@@ -94,7 +98,7 @@
|
|
|
94
98
|
"stylelint": "^13.13.1",
|
|
95
99
|
"stylelint-config-recommended": "^5.0.0",
|
|
96
100
|
"ts-jest": "^26.5.6",
|
|
97
|
-
"tslib": "^2.
|
|
101
|
+
"tslib": "^2.4.1",
|
|
98
102
|
"typescript": "^4.4.4",
|
|
99
103
|
"whatwg-fetch": "^3.6.2"
|
|
100
104
|
},
|
|
@@ -105,7 +109,7 @@
|
|
|
105
109
|
"@types/googlepay": "^0.6.2",
|
|
106
110
|
"classnames": "^2.3.1",
|
|
107
111
|
"core-js-pure": "^3.25.3",
|
|
108
|
-
"preact": "10.
|
|
112
|
+
"preact": "10.11.2"
|
|
109
113
|
},
|
|
110
114
|
"files": [
|
|
111
115
|
"dist",
|