@bigcommerce/checkout-sdk 1.283.1 → 1.284.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.
- package/CHANGELOG.md +21 -0
- package/dist/checkout-button.d.ts +3 -14
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +24 -14
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +30 -1
- package/docs/interfaces/BaseCheckoutButtonInitializeOptions.md +1 -1
- package/docs/interfaces/BodlService.md +30 -0
- package/docs/interfaces/PaypalCommerceButtonInitializeOptions.md +4 -4
- package/package.json +1 -1
- package/docs/interfaces/PaypalCommerceV2ButtonInitializeOptions.md +0 -26
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1053,7 +1053,7 @@ declare interface BaseCheckoutButtonInitializeOptions extends CheckoutButtonOpti
|
|
|
1053
1053
|
* The options that are required to facilitate PayPal Commerce V2. They can be omitted
|
|
1054
1054
|
* unless you need to support Paypal Commerce.
|
|
1055
1055
|
*/
|
|
1056
|
-
paypalcommerce?:
|
|
1056
|
+
paypalcommerce?: PaypalCommerceButtonInitializeOptions;
|
|
1057
1057
|
/**
|
|
1058
1058
|
* The options that are required to facilitate PayPal Commerce. They can be omitted
|
|
1059
1059
|
* unless you need to support PayPal Commerce Credit / PayLater.
|
|
@@ -1447,6 +1447,11 @@ declare interface BlueSnapV2StyleProps {
|
|
|
1447
1447
|
width?: string;
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
|
+
declare interface BodlService {
|
|
1451
|
+
checkoutBegin(): void;
|
|
1452
|
+
orderPurchased(): void;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1450
1455
|
declare interface BodyStyles {
|
|
1451
1456
|
backgroundColor?: string;
|
|
1452
1457
|
}
|
|
@@ -6081,9 +6086,9 @@ declare interface PaypalCommerceButtonInitializeOptions {
|
|
|
6081
6086
|
*/
|
|
6082
6087
|
style?: PaypalButtonStyleOptions_2;
|
|
6083
6088
|
/**
|
|
6084
|
-
*
|
|
6089
|
+
* Flag which helps to detect that the strategy initializes on Checkout page
|
|
6085
6090
|
*/
|
|
6086
|
-
|
|
6091
|
+
initializesOnCheckoutPage?: boolean;
|
|
6087
6092
|
}
|
|
6088
6093
|
|
|
6089
6094
|
declare interface PaypalCommerceCreditButtonInitializeOptions {
|
|
@@ -6461,17 +6466,6 @@ declare interface PaypalCommerceStoredCardFieldsMap {
|
|
|
6461
6466
|
[PaypalCommerceFormFieldType.CardNumberVerification]?: PaypalCommerceStoredCardFieldOptions;
|
|
6462
6467
|
}
|
|
6463
6468
|
|
|
6464
|
-
declare interface PaypalCommerceV2ButtonInitializeOptions {
|
|
6465
|
-
/**
|
|
6466
|
-
* A set of styling options for the checkout button.
|
|
6467
|
-
*/
|
|
6468
|
-
style?: PaypalButtonStyleOptions_2;
|
|
6469
|
-
/**
|
|
6470
|
-
* Flag which helps to detect that the strategy initializes on Checkout page
|
|
6471
|
-
*/
|
|
6472
|
-
initializesOnCheckoutPage?: boolean;
|
|
6473
|
-
}
|
|
6474
|
-
|
|
6475
6469
|
declare interface PaypalCommerceVenmoButtonInitializeOptions {
|
|
6476
6470
|
/**
|
|
6477
6471
|
* A set of styling options for the checkout button.
|
|
@@ -7468,6 +7462,22 @@ declare interface ZipCodeElementOptions {
|
|
|
7468
7462
|
containerId: string;
|
|
7469
7463
|
}
|
|
7470
7464
|
|
|
7465
|
+
/**
|
|
7466
|
+
* Creates an instance of `BodlService`.
|
|
7467
|
+
*
|
|
7468
|
+
* @remarks
|
|
7469
|
+
*
|
|
7470
|
+
* ```js
|
|
7471
|
+
* const bodlService = BodlService();
|
|
7472
|
+
* bodlService.checkoutBegin();
|
|
7473
|
+
*
|
|
7474
|
+
* ```
|
|
7475
|
+
*
|
|
7476
|
+
* @param {CheckoutService} checkoutService - An instance of CheckoutService
|
|
7477
|
+
* @returns an instance of `BodlService`.
|
|
7478
|
+
*/
|
|
7479
|
+
export declare function createBodlService(subscribe: (subscriber: (state: CheckoutSelectors) => void) => void): BodlService;
|
|
7480
|
+
|
|
7471
7481
|
/**
|
|
7472
7482
|
* Creates an instance of `CheckoutButtonInitializer`.
|
|
7473
7483
|
*
|