@globalpayments/js 4.0.19 → 4.1.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/README.md +1 -1
- package/package.json +2 -2
- package/types/apm/qr-code-payments/enums.d.ts +2 -1
- package/types/common/constants.d.ts +2 -0
- package/types/common/enums.d.ts +6 -0
- package/types/internal/lib/add-footer-branded-icons.d.ts +12 -0
- package/types/internal/lib/enums.d.ts +4 -0
- package/types/internal/lib/styles/built-in-validations/common.d.ts +0 -4
- package/types/internal/lib/styles/built-in-validations/default.d.ts +0 -4
- package/types/internal/lib/styles/built-in-validations/gp-default.d.ts +0 -4
- package/types/internal/lib/styles/built-in-validations/simple.d.ts +0 -4
- package/types/internal/lib/styles/currency-conversion/common.d.ts +12 -2
- package/types/internal/lib/styles/currency-conversion/default.d.ts +5 -0
- package/types/internal/lib/styles/currency-conversion/gp-default.d.ts +12 -2
- package/types/internal/lib/styles/currency-conversion/simple.d.ts +5 -0
- package/types/internal/lib/styles/default.d.ts +13 -4
- package/types/internal/lib/styles/gp-default.d.ts +24 -6
- package/types/internal/lib/styles/qr-code-payments/common.d.ts +8 -0
- package/types/internal/lib/styles/simple.d.ts +13 -4
- package/types/internal/lib/styles/themes/brand-themes/base/base-theme-preset.d.ts +5 -0
- package/types/internal/lib/styles/themes/brand-themes/base/base-theme.d.ts +1693 -0
- package/types/internal/lib/styles/themes/brand-themes/base/base-token-definition.d.ts +98 -0
- package/types/internal/lib/styles/themes/brand-themes/base/contracts.d.ts +82 -0
- package/types/internal/lib/styles/themes/brand-themes/brand-theme-boipa-uk.d.ts +9 -0
- package/types/internal/lib/styles/themes/brand-themes/brand-theme-boipa.d.ts +9 -0
- package/types/internal/lib/styles/themes/brand-themes/brand-theme-commerzbank.d.ts +9 -0
- package/types/internal/lib/styles/themes/brand-themes/brand-theme-e-service.d.ts +9 -0
- package/types/internal/lib/styles/themes/brand-themes/brand-theme-nbg-pay.d.ts +9 -0
- package/types/internal/lib/styles/themes/brand-themes/brand-themes.d.ts +14 -0
- package/types/internal/lib/styles/themes/helpers.d.ts +1 -0
- package/types/internal/lib/styles/tooltip/common.d.ts +8 -0
- package/types/lib/version.d.ts +1 -1
- package/types/ui/form/index.d.ts +148 -25
- package/types/apm/apm-payment-methods/index.d.ts +0 -3
- package/types/apm/apm-payment-methods/open-banking/contracts.d.ts +0 -7
- package/types/apm/apm-payment-methods/qr-code-payments/components/common.d.ts +0 -1
- package/types/apm/apm-payment-methods/qr-code-payments/components/redirect-action-handler.d.ts +0 -1
- package/types/apm/apm-payment-methods/qr-code-payments/components/redirect-in-frame-action-handler.d.ts +0 -1
- package/types/apm/apm-payment-methods/qr-code-payments/constants.d.ts +0 -1
- package/types/apm/apm-payment-methods/qr-code-payments/contracts.d.ts +0 -17
- package/types/apm/apm-payment-methods/qr-code-payments/enums.d.ts +0 -9
- package/types/apm/apm-payment-methods/qr-code-payments/helpers.d.ts +0 -2
- package/types/apm/apm-payment-methods/qr-code-payments/requests/get-qr-code-payment-methods.d.ts +0 -3
- package/types/apm/open-banking/contracts.d.ts +0 -7
- package/types/apm/payment-methods/components/common.d.ts +0 -5
- package/types/apm/payment-methods/components/constants.d.ts +0 -1
- package/types/apm/payment-methods/components/redirect-action-handler.d.ts +0 -1
- package/types/apm/payment-methods/contracts.d.ts +0 -8
- package/types/apm/payment-methods/enums.d.ts +0 -10
- package/types/common/local-storage.d.ts +0 -6
- package/types/internal/gateways/gp-api/get-currency-conversion-rates.d.ts +0 -3
- package/types/internal/lib/currency-conversion/components/dom-manipulation.d.ts +0 -1
- package/types/internal/lib/currency-conversion/components/radio-group.d.ts +0 -2
- package/types/internal/lib/dynamic-currency-conversion/contracts/constants.d.ts +0 -1
- package/types/internal/lib/styles/common/tooltip.d.ts +0 -490
- package/types/internal/lib/styles/open-banking/common.d.ts +0 -43
- package/types/internal/validators/currency-conversion.d.ts +0 -4
- package/types/ui/iframe-field/action-accumulate-currency-conversion-data.d.ts +0 -3
- package/types/ui/iframe-field/action-add-currency-conversion.d.ts +0 -2
- package/types/ui/iframe-field/action-add-dynamic-currency-conversion.d.ts +0 -2
- package/types/ui/iframe-field/action-card-request-currency-conversion.d.ts +0 -6
- package/types/ui/iframe-field/action-get-value.d.ts +0 -5
- package/types/ui/iframe-field/action-request-currency-conversion-data.d.ts +0 -3
- package/types/ui/iframe-field/action-request-currency-conversion.d.ts +0 -6
- package/types/ui/iframe-field/action-set-custom-validation-message.d.ts +0 -3
- package/types/ui/iframe-field/action-set-validation-message.d.ts +0 -2
- package/types/ui/iframe-field/apple-pay/action-add-apple-pay.d.ts +0 -2
- package/types/ui/iframe-field/click-to-pay/action-add-click-to-pay.d.ts +0 -2
- package/types/ui/iframe-field/currency-conversion/action-accumulate-currency-conversion-data.d.ts +0 -3
- package/types/ui/iframe-field/currency-conversion/action-add-currency-conversion.d.ts +0 -2
- package/types/ui/iframe-field/currency-conversion/action-get-status.d.ts +0 -8
- package/types/ui/iframe-field/currency-conversion/action-request-completed.d.ts +0 -6
- package/types/ui/iframe-field/currency-conversion/action-request-currency-conversion-data.d.ts +0 -3
- package/types/ui/iframe-field/currency-conversion/action-request-currency-conversion.d.ts +0 -6
- package/types/ui/iframe-field/currency-conversion/action-request-pass-data.d.ts +0 -3
- package/types/ui/iframe-field/currency-conversion/action-set-value.d.ts +0 -3
- package/types/ui/iframe-field/google-pay/action-add-google-pay.d.ts +0 -2
- package/types/ui/iframe-field/installments/action-accumulate-installment-data.d.ts +0 -3
- package/types/ui/iframe-field/installments/action-add-installments.d.ts +0 -3
- package/types/ui/iframe-field/installments/action-card-request-installments.d.ts +0 -6
- package/types/ui/iframe-field/installments/action-request-installment-data.d.ts +0 -3
- package/types/ui/iframe-field/open-banking/action-add-open-banking.d.ts +0 -2
- package/types/ui/iframe-field/paypal/action-add.d.ts +0 -2
- package/types/ui/iframe-field/qr-code-payment-methods/action-add-qr-code-payment-methods.d.ts +0 -3
- package/types/ui/iframe-field/qr-code-payment-methods/action-qr-code-payment-methods-request-start.d.ts +0 -6
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { IThemePreset } from "./contracts";
|
|
2
|
+
export declare const getBaseTokenDefinitions: (assetBaseUrl: string, themePreset?: IThemePreset | undefined) => {
|
|
3
|
+
"@font-face": {
|
|
4
|
+
"font-family": string;
|
|
5
|
+
src: string;
|
|
6
|
+
};
|
|
7
|
+
":root": {
|
|
8
|
+
"--inputfield-label-font": string;
|
|
9
|
+
"--inputfield-container-font-placeholder": string;
|
|
10
|
+
"--inputfield-container-font-input": string;
|
|
11
|
+
"--inputfield-container-font-error": string;
|
|
12
|
+
"--tooltip-overlay-font-heading": string;
|
|
13
|
+
"--tooltip-overlay-font-body": string;
|
|
14
|
+
"--button-primary-font-label": string;
|
|
15
|
+
"--dcc-radio-button-font": string;
|
|
16
|
+
"--dcc-options-label-font": string;
|
|
17
|
+
"--dcc-options-font-exchange-rate": string;
|
|
18
|
+
"--other-method-divider-font": string;
|
|
19
|
+
"--inputfield-label-weight-text": string;
|
|
20
|
+
"--dcc-options-label-weight-text": string;
|
|
21
|
+
"--button-primary-weight-label-text": string;
|
|
22
|
+
"--dcc-radio-button-weight-text-label": string;
|
|
23
|
+
"--inputfield-container-weight-text-placeholder": string;
|
|
24
|
+
"--inputfield-container-weight-text-input": string;
|
|
25
|
+
"--inputfield-container-weight-text-error": string;
|
|
26
|
+
"--other-method-divider-weight-text": string;
|
|
27
|
+
"--dropin-ui-body-color-background": string;
|
|
28
|
+
"--dropin-ui-body-padding-top": string;
|
|
29
|
+
"--dropin-ui-body-padding-bottom": string;
|
|
30
|
+
"--dropin-ui-body-padding-left": string;
|
|
31
|
+
"--dropin-ui-body-padding-right": string;
|
|
32
|
+
"--inputfield-label-color-text": string;
|
|
33
|
+
"--inputfield-container-color-border-focus": string;
|
|
34
|
+
"--inputfield-container-color-border-hover": string;
|
|
35
|
+
"--inputfield-tooltip-color-border-hover": string;
|
|
36
|
+
"--inputfield-tooltip-color-focus-indicator-focus": string;
|
|
37
|
+
"--general-tooltip-color-border-hover": string;
|
|
38
|
+
"--general-tooltip-color-focus-indicator-focus": string;
|
|
39
|
+
"--inputfield-tooltip-color-border-focus": string;
|
|
40
|
+
"--inputfield-container-color-border-error": string;
|
|
41
|
+
"--inputfield-container-color-text-error": string;
|
|
42
|
+
"--inputfield-container-color-text-input": string;
|
|
43
|
+
"--dcc-options-label-color-text": string;
|
|
44
|
+
"--dcc-options-color-text-exchange-rate": string;
|
|
45
|
+
"--dcc-radio-button-color-text-default": string;
|
|
46
|
+
"--dcc-radio-button-color-text-hover": string;
|
|
47
|
+
"--dcc-radio-button-color-text-focus": string;
|
|
48
|
+
"--tooltip-overlay-color-background": string;
|
|
49
|
+
"--inputfield-container-color-border-default": string;
|
|
50
|
+
"--inputfield-container-color-text-placeholder": string;
|
|
51
|
+
"--inputfield-tooltip-color-border-default": string;
|
|
52
|
+
"--dcc-radio-button-color-border-default": string;
|
|
53
|
+
"--dcc-radio-button-color-border-hover": string;
|
|
54
|
+
"--dcc-radio-button-color-focus-indicator-focus": string;
|
|
55
|
+
"--dcc-radio-button-color-border-focus": string;
|
|
56
|
+
"--dcc-radio-button-color-border-selected": string;
|
|
57
|
+
"--dcc-radio-button-color-background-selected": string;
|
|
58
|
+
"--dcc-radio-button-color-icon-selected": string;
|
|
59
|
+
"--dcc-radio-button-color-text-selected": string;
|
|
60
|
+
"--button-primary-color-background-default": string;
|
|
61
|
+
"--button-primary-color-background-focus": string;
|
|
62
|
+
"--button-primary-color-text-default": string;
|
|
63
|
+
"--button-primary-color-text-hover": string;
|
|
64
|
+
"--button-primary-color-text-focus": string;
|
|
65
|
+
"--button-primary-color-background-hover": string;
|
|
66
|
+
"--button-primary-color-focus-indicator-focus": string;
|
|
67
|
+
"--dropin-ui-body-radius-bottom-left": string;
|
|
68
|
+
"--dropin-ui-body-radius-bottom-right": string;
|
|
69
|
+
"--dropin-ui-body-radius-top-left": string;
|
|
70
|
+
"--dropin-ui-body-radius-top-right": string;
|
|
71
|
+
"--button-primary-radius-top-left": string;
|
|
72
|
+
"--button-primary-radius-top-right": string;
|
|
73
|
+
"--button-primary-radius-bottom-left": string;
|
|
74
|
+
"--button-primary-radius-bottom-right": string;
|
|
75
|
+
"--button-primary-size-text": string;
|
|
76
|
+
"--other-method-divider-size-text": string;
|
|
77
|
+
"--inputfield-label-size-text": string;
|
|
78
|
+
"--inputfield-container-size-text-placeholder": string;
|
|
79
|
+
"--inputfield-container-size-text-input": string;
|
|
80
|
+
"--tooltip-overlay-size-text-heading": string;
|
|
81
|
+
"--tooltip-overlay-size-text-body": string;
|
|
82
|
+
"--inputfield-container-size-text-error": string;
|
|
83
|
+
"--dcc-options-label-size-text": string;
|
|
84
|
+
"--dcc-radio-button-size-text": string;
|
|
85
|
+
"--dcc-options-size-text-exchange-rate": string;
|
|
86
|
+
"--tooltip-overlay-color-text-heading": string;
|
|
87
|
+
"--tooltip-overlay-color-text-body": string;
|
|
88
|
+
"--other-method-divider-color-text": string;
|
|
89
|
+
"--other-method-divider-color-line": string;
|
|
90
|
+
"--tooltip-overlay-line-height-text-heading": string;
|
|
91
|
+
"--tooltip-overlay-line-height-text-body": string;
|
|
92
|
+
"--dcc-options-line-height-text-exchange-rate": string;
|
|
93
|
+
"--hppfooter-desktop": string;
|
|
94
|
+
"--hppfooter-tablet": string;
|
|
95
|
+
"--hppfooter-mobile": string;
|
|
96
|
+
"--dropin-ui-button-primary-icon": string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export interface IThemePreset {
|
|
2
|
+
name: string;
|
|
3
|
+
colors: {
|
|
4
|
+
brand: {
|
|
5
|
+
color1: string;
|
|
6
|
+
accent1: string;
|
|
7
|
+
accent2: string;
|
|
8
|
+
accent3: string;
|
|
9
|
+
dark: string;
|
|
10
|
+
lightGrey: string;
|
|
11
|
+
buttonLabelColor1: string;
|
|
12
|
+
buttonLabelColor2: string;
|
|
13
|
+
errorColor: string;
|
|
14
|
+
};
|
|
15
|
+
general: IThemePresetGeneralColors;
|
|
16
|
+
};
|
|
17
|
+
fontFamily: IThemePresetFontFamily;
|
|
18
|
+
borders: {
|
|
19
|
+
dropInUIBody: {
|
|
20
|
+
topLeft: string;
|
|
21
|
+
topRight: string;
|
|
22
|
+
bottomLeft: string;
|
|
23
|
+
bottomRight: string;
|
|
24
|
+
};
|
|
25
|
+
buttonPrimary: {
|
|
26
|
+
topLeft: string;
|
|
27
|
+
topRight: string;
|
|
28
|
+
bottomLeft: string;
|
|
29
|
+
bottomRight: string;
|
|
30
|
+
};
|
|
31
|
+
radius: {
|
|
32
|
+
general: string;
|
|
33
|
+
curve: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
images: {
|
|
37
|
+
brand: {
|
|
38
|
+
buttonPrimaryIcon: string;
|
|
39
|
+
footer: {
|
|
40
|
+
desktopLogo: string;
|
|
41
|
+
tabletLogo: string;
|
|
42
|
+
mobileLogo: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
paddings: {
|
|
47
|
+
dropInUIBody: IThemePresetBodyPaddings;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface IThemePresetGeneralColors {
|
|
51
|
+
coolGrey25: string;
|
|
52
|
+
coolGreyBase: string;
|
|
53
|
+
neutralWhite: string;
|
|
54
|
+
coolGrey61: string;
|
|
55
|
+
coolGrey76: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IThemePresetBodyPaddings {
|
|
58
|
+
top: string;
|
|
59
|
+
bottom: string;
|
|
60
|
+
left: string;
|
|
61
|
+
right: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IThemePresetFontFamily {
|
|
64
|
+
brand: {
|
|
65
|
+
fontName: string;
|
|
66
|
+
fontFileName: string;
|
|
67
|
+
fontFormat?: string;
|
|
68
|
+
fontWeightMedium: string;
|
|
69
|
+
fontWeightRegular: string;
|
|
70
|
+
};
|
|
71
|
+
sizes: {
|
|
72
|
+
buttonPrimary: string;
|
|
73
|
+
bodyBase: string;
|
|
74
|
+
small1: string;
|
|
75
|
+
small2: string;
|
|
76
|
+
};
|
|
77
|
+
lineHeights: {
|
|
78
|
+
small1: string;
|
|
79
|
+
small2: string;
|
|
80
|
+
small3: string;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IThemePreset } from "./base/contracts";
|
|
2
|
+
declare const fieldStyles: (assetBaseUrl: string) => {};
|
|
3
|
+
declare const parentStyles: (assetBaseUrl: string) => {};
|
|
4
|
+
export declare const getThemeStyles: (assetBaseUrl: string) => {
|
|
5
|
+
fieldStyles: object;
|
|
6
|
+
parentStyles: object;
|
|
7
|
+
};
|
|
8
|
+
export declare const getThemePreset: () => IThemePreset;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IThemePreset } from "./base/contracts";
|
|
2
|
+
declare const fieldStyles: (assetBaseUrl: string) => {};
|
|
3
|
+
declare const parentStyles: (assetBaseUrl: string) => {};
|
|
4
|
+
export declare const getThemeStyles: (assetBaseUrl: string) => {
|
|
5
|
+
fieldStyles: object;
|
|
6
|
+
parentStyles: object;
|
|
7
|
+
};
|
|
8
|
+
export declare const getThemePreset: () => IThemePreset;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IThemePreset } from "./base/contracts";
|
|
2
|
+
declare const fieldStyles: (assetBaseUrl: string) => {};
|
|
3
|
+
declare const parentStyles: (assetBaseUrl: string) => {};
|
|
4
|
+
export declare const getThemeStyles: (assetBaseUrl: string) => {
|
|
5
|
+
fieldStyles: object;
|
|
6
|
+
parentStyles: object;
|
|
7
|
+
};
|
|
8
|
+
export declare const getThemePreset: () => IThemePreset;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IThemePreset } from "./base/contracts";
|
|
2
|
+
declare const fieldStyles: (assetBaseUrl: string) => {};
|
|
3
|
+
declare const parentStyles: (assetBaseUrl: string) => {};
|
|
4
|
+
export declare const getThemeStyles: (assetBaseUrl: string) => {
|
|
5
|
+
fieldStyles: object;
|
|
6
|
+
parentStyles: object;
|
|
7
|
+
};
|
|
8
|
+
export declare const getThemePreset: () => IThemePreset;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IThemePreset } from "./base/contracts";
|
|
2
|
+
declare const fieldStyles: (assetBaseUrl: string) => {};
|
|
3
|
+
declare const parentStyles: (assetBaseUrl: string) => {};
|
|
4
|
+
export declare const getThemeStyles: (assetBaseUrl: string) => {
|
|
5
|
+
fieldStyles: object;
|
|
6
|
+
parentStyles: object;
|
|
7
|
+
};
|
|
8
|
+
export declare const getThemePreset: () => IThemePreset;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum BrandThemes {
|
|
2
|
+
BrandThemeBOIPA = "brand-theme-boipa",
|
|
3
|
+
BrandThemeBOIPAUK = "brand-theme-boipa-uk",
|
|
4
|
+
BrandThemeCOMMERZBANK = "brand-theme-commerzbank",
|
|
5
|
+
BrandThemeNBGPAY = "brand-theme-nbg-pay",
|
|
6
|
+
BrandThemeESERVICE = "brand-theme-e-service"
|
|
7
|
+
}
|
|
8
|
+
export declare const getFieldStyles: (assetBaseUrl: string) => {
|
|
9
|
+
[x: string]: object;
|
|
10
|
+
};
|
|
11
|
+
export declare const getParentStyles: (assetBaseUrl: string) => {
|
|
12
|
+
[x: string]: object;
|
|
13
|
+
};
|
|
14
|
+
export declare const getBrandThemeNames: () => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isBrandTheme: (style: string | undefined) => boolean;
|
|
@@ -10,6 +10,14 @@ declare const styles: (assetBaseUrl: string) => {
|
|
|
10
10
|
"background-size": string;
|
|
11
11
|
background: string;
|
|
12
12
|
"font-family": string;
|
|
13
|
+
"font-size": string;
|
|
14
|
+
"line-height": string;
|
|
15
|
+
};
|
|
16
|
+
".secure-payment-form .tooltip h4": {
|
|
17
|
+
"font-family": string;
|
|
18
|
+
"font-size": string;
|
|
19
|
+
"line-height": string;
|
|
20
|
+
color: string;
|
|
13
21
|
};
|
|
14
22
|
".secure-payment-form .tooltip:focus": {
|
|
15
23
|
border: string;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.
|
|
1
|
+
declare const _default: "4.1.1";
|
|
2
2
|
export default _default;
|