@globalpayments/js 3.0.6 → 3.0.7
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 +1 -1
- package/types/common/enums.d.ts +2 -1
- package/types/internal/built-in-validations/constants.d.ts +1 -0
- package/types/internal/built-in-validations/helpers.d.ts +4 -0
- package/types/internal/lib/enums.d.ts +3 -0
- package/types/lib/version.d.ts +1 -1
- package/types/ui/form/index.d.ts +39 -22
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ This plugin allows you to use online payments (eCommerce) features of a variety
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
26
|
```html
|
|
27
|
-
<script src="https://js.globalpay.com/3.0.
|
|
27
|
+
<script src="https://js.globalpay.com/3.0.7/globalpayments.js"></script>
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
> Note: Installing via NPM will only provide TypeScript types for type-checking.
|
package/package.json
CHANGED
package/types/common/enums.d.ts
CHANGED
|
@@ -15,5 +15,6 @@ export declare enum HostedFieldValidationEvents {
|
|
|
15
15
|
Validate = "hosted-field-validate",
|
|
16
16
|
ValidatePassData = "hosted-field-validate-pass-data",
|
|
17
17
|
ValidateForm = "hosted-field-validate-form",
|
|
18
|
-
ValidateFormValid = "hosted-field-validate-form-valid"
|
|
18
|
+
ValidateFormValid = "hosted-field-validate-form-valid",
|
|
19
|
+
ValidateFormInvalid = "hosted-field-validate-form-invalid"
|
|
19
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BUILT_IN_VALIDATIONS_VALIDATION_ROUND_COUNTER_KEY: string;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export declare const showHostedFieldValidation: (fieldId: string | null, validationMessage: string, target?: string | undefined) => void;
|
|
2
2
|
export declare const hideHostedFieldValidation: (fieldId: string | null, target?: string | undefined) => void;
|
|
3
|
+
export declare const resetValidationRoundCounter: () => void;
|
|
4
|
+
export declare const getValidationRoundCounter: () => number;
|
|
5
|
+
export declare const increaseValidationRoundCounter: () => void;
|
|
6
|
+
export declare const removeValidationRoundCounter: () => void;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "3.0.
|
|
1
|
+
declare const _default: "3.0.7";
|
|
2
2
|
export default _default;
|
package/types/ui/form/index.d.ts
CHANGED
|
@@ -806,7 +806,11 @@ export declare const parentStyles: () => {
|
|
|
806
806
|
".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
|
|
807
807
|
width: string;
|
|
808
808
|
height: string;
|
|
809
|
-
"background-size": string;
|
|
809
|
+
"background-size": string; /**
|
|
810
|
+
* Appends additional CSS rules to the group of hosted fields
|
|
811
|
+
*
|
|
812
|
+
* @param json New CSS rules
|
|
813
|
+
*/
|
|
810
814
|
};
|
|
811
815
|
};
|
|
812
816
|
".secure-payment-form .apm-active .ctp-panel .ctp-button": {
|
|
@@ -823,16 +827,16 @@ export declare const parentStyles: () => {
|
|
|
823
827
|
border: string;
|
|
824
828
|
"border-width": string;
|
|
825
829
|
display: string;
|
|
826
|
-
/**
|
|
827
|
-
* Sets a special-case event listener that fires when all hosted
|
|
828
|
-
* fields in a form have registered / loaded
|
|
829
|
-
*
|
|
830
|
-
* @param fn The listener function
|
|
831
|
-
*/
|
|
832
830
|
padding: string;
|
|
833
831
|
transform: string;
|
|
834
832
|
"-webkit-transform": string;
|
|
835
833
|
};
|
|
834
|
+
/**
|
|
835
|
+
* Sets a special-case event listener that fires when all hosted
|
|
836
|
+
* fields in a form have registered / loaded
|
|
837
|
+
*
|
|
838
|
+
* @param fn The listener function
|
|
839
|
+
*/
|
|
836
840
|
".secure-payment-form .ctp-panel .right-arrow": {
|
|
837
841
|
position: string;
|
|
838
842
|
background: string;
|
|
@@ -1437,7 +1441,11 @@ export declare const parentStyles: () => {
|
|
|
1437
1441
|
".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
|
|
1438
1442
|
width: string;
|
|
1439
1443
|
height: string;
|
|
1440
|
-
"background-size": string;
|
|
1444
|
+
"background-size": string; /**
|
|
1445
|
+
* Appends additional CSS rules to the group of hosted fields
|
|
1446
|
+
*
|
|
1447
|
+
* @param json New CSS rules
|
|
1448
|
+
*/
|
|
1441
1449
|
};
|
|
1442
1450
|
};
|
|
1443
1451
|
".secure-payment-form .apm-active .ctp-panel .ctp-button": {
|
|
@@ -1454,16 +1462,16 @@ export declare const parentStyles: () => {
|
|
|
1454
1462
|
border: string;
|
|
1455
1463
|
"border-width": string;
|
|
1456
1464
|
display: string;
|
|
1457
|
-
/**
|
|
1458
|
-
* Sets a special-case event listener that fires when all hosted
|
|
1459
|
-
* fields in a form have registered / loaded
|
|
1460
|
-
*
|
|
1461
|
-
* @param fn The listener function
|
|
1462
|
-
*/
|
|
1463
1465
|
padding: string;
|
|
1464
1466
|
transform: string;
|
|
1465
1467
|
"-webkit-transform": string;
|
|
1466
1468
|
};
|
|
1469
|
+
/**
|
|
1470
|
+
* Sets a special-case event listener that fires when all hosted
|
|
1471
|
+
* fields in a form have registered / loaded
|
|
1472
|
+
*
|
|
1473
|
+
* @param fn The listener function
|
|
1474
|
+
*/
|
|
1467
1475
|
".secure-payment-form .ctp-panel .right-arrow": {
|
|
1468
1476
|
position: string;
|
|
1469
1477
|
background: string;
|
|
@@ -1671,7 +1679,12 @@ export declare const parentStyles: () => {
|
|
|
1671
1679
|
background: string;
|
|
1672
1680
|
margin: string;
|
|
1673
1681
|
padding: string;
|
|
1674
|
-
"border-radius": string;
|
|
1682
|
+
"border-radius": string; /**
|
|
1683
|
+
* Instantiates a new UIForm object for a group of hosted fields
|
|
1684
|
+
*
|
|
1685
|
+
* @param fields Hosted field configuration
|
|
1686
|
+
* @param styles Custom CSS configuration
|
|
1687
|
+
*/
|
|
1675
1688
|
};
|
|
1676
1689
|
".secure-payment-form .installment-plan-options-title": {
|
|
1677
1690
|
color: string;
|
|
@@ -2368,7 +2381,11 @@ export declare const parentStyles: () => {
|
|
|
2368
2381
|
".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
|
|
2369
2382
|
width: string;
|
|
2370
2383
|
height: string;
|
|
2371
|
-
"background-size": string;
|
|
2384
|
+
"background-size": string; /**
|
|
2385
|
+
* Appends additional CSS rules to the group of hosted fields
|
|
2386
|
+
*
|
|
2387
|
+
* @param json New CSS rules
|
|
2388
|
+
*/
|
|
2372
2389
|
};
|
|
2373
2390
|
};
|
|
2374
2391
|
".secure-payment-form .apm-active .ctp-panel .ctp-button": {
|
|
@@ -2385,16 +2402,16 @@ export declare const parentStyles: () => {
|
|
|
2385
2402
|
border: string;
|
|
2386
2403
|
"border-width": string;
|
|
2387
2404
|
display: string;
|
|
2388
|
-
/**
|
|
2389
|
-
* Sets a special-case event listener that fires when all hosted
|
|
2390
|
-
* fields in a form have registered / loaded
|
|
2391
|
-
*
|
|
2392
|
-
* @param fn The listener function
|
|
2393
|
-
*/
|
|
2394
2405
|
padding: string;
|
|
2395
2406
|
transform: string;
|
|
2396
2407
|
"-webkit-transform": string;
|
|
2397
2408
|
};
|
|
2409
|
+
/**
|
|
2410
|
+
* Sets a special-case event listener that fires when all hosted
|
|
2411
|
+
* fields in a form have registered / loaded
|
|
2412
|
+
*
|
|
2413
|
+
* @param fn The listener function
|
|
2414
|
+
*/
|
|
2398
2415
|
".secure-payment-form .ctp-panel .right-arrow": {
|
|
2399
2416
|
position: string;
|
|
2400
2417
|
background: string;
|