@bigcommerce/checkout-sdk 1.283.1 → 1.284.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/CHANGELOG.md +7 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +21 -0
- 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 -0
- package/docs/interfaces/BodlService.md +30 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -7468,6 +7473,22 @@ declare interface ZipCodeElementOptions {
|
|
|
7468
7473
|
containerId: string;
|
|
7469
7474
|
}
|
|
7470
7475
|
|
|
7476
|
+
/**
|
|
7477
|
+
* Creates an instance of `BodlService`.
|
|
7478
|
+
*
|
|
7479
|
+
* @remarks
|
|
7480
|
+
*
|
|
7481
|
+
* ```js
|
|
7482
|
+
* const bodlService = BodlService();
|
|
7483
|
+
* bodlService.checkoutBegin();
|
|
7484
|
+
*
|
|
7485
|
+
* ```
|
|
7486
|
+
*
|
|
7487
|
+
* @param {CheckoutService} checkoutService - An instance of CheckoutService
|
|
7488
|
+
* @returns an instance of `BodlService`.
|
|
7489
|
+
*/
|
|
7490
|
+
export declare function createBodlService(subscribe: (subscriber: (state: CheckoutSelectors) => void) => void): BodlService;
|
|
7491
|
+
|
|
7471
7492
|
/**
|
|
7472
7493
|
* Creates an instance of `CheckoutButtonInitializer`.
|
|
7473
7494
|
*
|