@adyen/adyen-web 5.54.0 → 5.55.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/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/Ach/Ach.d.ts +1 -0
- package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +1 -0
- package/dist/types/components/Card/Bancontact.d.ts +1 -0
- package/dist/types/components/Card/Card.d.ts +1 -0
- package/dist/types/components/CashAppPay/CashAppPay.d.ts +1 -0
- package/dist/types/components/ClickToPay/ClickToPay.d.ts +1 -0
- package/dist/types/components/Dragonpay/Dragonpay.d.ts +1 -0
- package/dist/types/components/Dropin/Dropin.d.ts +1 -0
- package/dist/types/components/DuitNow/DuitNow.d.ts +1 -0
- package/dist/types/components/PayNow/PayNow.d.ts +1 -0
- package/dist/types/components/PromptPay/PromptPay.d.ts +1 -0
- package/dist/types/components/Swish/Swish.d.ts +1 -0
- package/dist/types/components/WeChat/WeChat.d.ts +1 -0
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
- package/dist/types/components/types.d.ts +6 -0
- package/dist/types/utils/detectInIframeInSameOrigin.d.ts +7 -0
- package/package.json +4 -4
- package/dist/types/utils/detectInIframe.d.ts +0 -2
|
@@ -34,6 +34,7 @@ export declare class AchElement extends UIElement<AchElementProps> {
|
|
|
34
34
|
loadingContext?: string;
|
|
35
35
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => UIElement<any>;
|
|
36
36
|
clientKey?: string;
|
|
37
|
+
paymentMethodType?: string;
|
|
37
38
|
elementRef?: any;
|
|
38
39
|
i18n?: import("../../language").default;
|
|
39
40
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -35,6 +35,7 @@ declare class BCMCMobileElement extends QRLoaderContainer {
|
|
|
35
35
|
loadingContext?: string;
|
|
36
36
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
37
37
|
clientKey?: string;
|
|
38
|
+
paymentMethodType?: string;
|
|
38
39
|
elementRef?: any;
|
|
39
40
|
i18n?: import("../../language").default;
|
|
40
41
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -93,6 +93,7 @@ declare class BancontactElement extends CardElement {
|
|
|
93
93
|
loadingContext?: string;
|
|
94
94
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
95
95
|
clientKey?: string;
|
|
96
|
+
paymentMethodType?: string;
|
|
96
97
|
elementRef?: any;
|
|
97
98
|
i18n?: import("../../language").default;
|
|
98
99
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -105,6 +105,7 @@ export declare class CardElement extends UIElement<CardElementProps> {
|
|
|
105
105
|
loadingContext?: string;
|
|
106
106
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => UIElement<any>;
|
|
107
107
|
clientKey?: string;
|
|
108
|
+
paymentMethodType?: string;
|
|
108
109
|
elementRef?: any;
|
|
109
110
|
i18n?: import("../../language").default;
|
|
110
111
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -56,6 +56,7 @@ export declare class CashAppPay extends UIElement<CashAppPayElementProps> {
|
|
|
56
56
|
loadingContext?: string;
|
|
57
57
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => UIElement<any>;
|
|
58
58
|
clientKey?: string;
|
|
59
|
+
paymentMethodType?: string;
|
|
59
60
|
elementRef?: any;
|
|
60
61
|
i18n?: import("../../language").default;
|
|
61
62
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -38,6 +38,7 @@ export declare class ClickToPayElement extends UIElement<ClickToPayElementProps>
|
|
|
38
38
|
loadingContext?: string;
|
|
39
39
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => UIElement<any>;
|
|
40
40
|
clientKey?: string;
|
|
41
|
+
paymentMethodType?: string;
|
|
41
42
|
elementRef?: any;
|
|
42
43
|
i18n?: import("../../language").default;
|
|
43
44
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -43,6 +43,7 @@ export declare class DragonpayElement extends UIElement<DragonpayElementProps> {
|
|
|
43
43
|
payButton?: (options: import("../types").PayButtonFunctionProps) => h.JSX.Element;
|
|
44
44
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => UIElement<any>;
|
|
45
45
|
clientKey?: string;
|
|
46
|
+
paymentMethodType?: string;
|
|
46
47
|
elementRef?: any;
|
|
47
48
|
_parentInstance?: import("../../core/core").default;
|
|
48
49
|
order?: import("../../types").Order;
|
|
@@ -69,6 +69,7 @@ declare class DropinElement extends UIElement<DropinElementProps> {
|
|
|
69
69
|
loadingContext?: string;
|
|
70
70
|
createFromAction?: (action: PaymentAction, props: object) => UIElement<any>;
|
|
71
71
|
clientKey?: string;
|
|
72
|
+
paymentMethodType?: string;
|
|
72
73
|
elementRef?: any;
|
|
73
74
|
i18n?: import("../../language").default;
|
|
74
75
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -35,6 +35,7 @@ declare class DuitNowElement extends QRLoaderContainer {
|
|
|
35
35
|
loadingContext?: string;
|
|
36
36
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
37
37
|
clientKey?: string;
|
|
38
|
+
paymentMethodType?: string;
|
|
38
39
|
elementRef?: any;
|
|
39
40
|
i18n?: import("../../language").default;
|
|
40
41
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -35,6 +35,7 @@ declare class PayNowElement extends QRLoaderContainer {
|
|
|
35
35
|
loadingContext?: string;
|
|
36
36
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
37
37
|
clientKey?: string;
|
|
38
|
+
paymentMethodType?: string;
|
|
38
39
|
elementRef?: any;
|
|
39
40
|
i18n?: import("../../language").default;
|
|
40
41
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -35,6 +35,7 @@ declare class PromptPayElement extends QRLoaderContainer {
|
|
|
35
35
|
loadingContext?: string;
|
|
36
36
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
37
37
|
clientKey?: string;
|
|
38
|
+
paymentMethodType?: string;
|
|
38
39
|
elementRef?: any;
|
|
39
40
|
i18n?: import("../../language").default;
|
|
40
41
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -35,6 +35,7 @@ declare class SwishElement extends QRLoaderContainer {
|
|
|
35
35
|
loadingContext?: string;
|
|
36
36
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
37
37
|
clientKey?: string;
|
|
38
|
+
paymentMethodType?: string;
|
|
38
39
|
elementRef?: any;
|
|
39
40
|
i18n?: import("../../language").default;
|
|
40
41
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -35,6 +35,7 @@ declare class WeChatPayElement extends QRLoaderContainer {
|
|
|
35
35
|
loadingContext?: string;
|
|
36
36
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>;
|
|
37
37
|
clientKey?: string;
|
|
38
|
+
paymentMethodType?: string;
|
|
38
39
|
elementRef?: any;
|
|
39
40
|
i18n?: import("../../language").default;
|
|
40
41
|
_parentInstance?: import("../../core/core").default;
|
|
@@ -11,7 +11,7 @@ export declare const ENCRYPTED_BANK_LOCATION_FIELD = "encryptedBankLocationId";
|
|
|
11
11
|
export declare const ENCRYPTED_SECURITY_CODE_3_DIGITS = "encryptedSecurityCode3digits";
|
|
12
12
|
export declare const ENCRYPTED_SECURITY_CODE_4_DIGITS = "encryptedSecurityCode4digits";
|
|
13
13
|
export declare const GIFT_CARD = "giftcard";
|
|
14
|
-
export declare const SF_VERSION = "4.
|
|
14
|
+
export declare const SF_VERSION = "4.8.0";
|
|
15
15
|
export declare const DEFAULT_CARD_GROUP_TYPES: string[];
|
|
16
16
|
export declare const NON_CREDIT_CARD_TYPE_SECURED_FIELDS: string[];
|
|
17
17
|
export declare const CREDIT_CARD_SF_FIELDS: string[];
|
|
@@ -127,6 +127,12 @@ export interface UIElementProps extends BaseElementProps {
|
|
|
127
127
|
createFromAction?: (action: PaymentAction, props: object) => UIElement;
|
|
128
128
|
/** @internal */
|
|
129
129
|
clientKey?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Returned after the payments call, when an action is returned. It represents the payment method tx variant
|
|
132
|
+
* that was used for the payment
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
paymentMethodType?: string;
|
|
130
136
|
/** @internal */
|
|
131
137
|
elementRef?: any;
|
|
132
138
|
/** @internal */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the page is being run in an iframe with the same origin as the parent.
|
|
3
|
+
* In this scenario, if the merchant has set redirectFromTopWhenInIframe: true, then we can perform the redirect on the top level, parent, window;
|
|
4
|
+
* rather than on the iframe's window
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: () => boolean;
|
|
7
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"./dist/es/adyen.css": "./dist/es/adyen.css",
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
|
-
"version": "5.
|
|
28
|
+
"version": "5.55.1",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"homepage": "https://docs.adyen.com/checkout",
|
|
31
31
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"dotenv": "^16.0.3",
|
|
90
90
|
"enzyme": "3.11.0",
|
|
91
91
|
"enzyme-adapter-preact-pure": "4.1.0",
|
|
92
|
-
"eslint": "8.
|
|
92
|
+
"eslint": "8.53.0",
|
|
93
93
|
"eslint-plugin-import": "^2.26.0",
|
|
94
94
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
95
95
|
"eslint-plugin-react": "^7.31.8",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"jest": "29.7.0",
|
|
103
103
|
"jest-environment-jsdom": "29.7.0",
|
|
104
104
|
"jest-mock-extended": "^3.0.1",
|
|
105
|
-
"lint-staged": "^
|
|
105
|
+
"lint-staged": "^15.0.0",
|
|
106
106
|
"postcss": "8.4.31",
|
|
107
107
|
"react": "^18.2.0",
|
|
108
108
|
"react-dom": "^18.2.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"stylelint-config-standard-scss": "7.0.1",
|
|
118
118
|
"tslib": "2.6.2",
|
|
119
119
|
"typescript": "4.9.5",
|
|
120
|
-
"vite": "4.5.
|
|
120
|
+
"vite": "4.5.1",
|
|
121
121
|
"vite-plugin-stylelint": "^4.3.0",
|
|
122
122
|
"whatwg-fetch": "^3.6.2"
|
|
123
123
|
},
|