@bigcommerce/checkout-sdk 1.370.0 → 1.371.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/CHANGELOG.md +14 -0
- package/dist/checkout-button.d.ts +2 -40
- 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 +2 -40
- 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 +1 -3
- package/docs/interfaces/AmazonPayV2ButtonConfig.md +2 -0
- package/docs/interfaces/PayPalButtonStyleOptions.md +0 -17
- package/docs/interfaces/WithBuyNowFeature.md +98 -0
- package/package.json +1 -1
- package/docs/interfaces/PayPalCommerceInlineButtonInitializeOptions.md +0 -61
- package/docs/interfaces/WithPayPalCommerceInlineButtonInitializeOptions.md +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.371.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.371.0...v1.371.1) (2023-03-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Code Refactoring
|
|
9
|
+
|
|
10
|
+
* **payment:** PAYPAL-2078 removed PayPalCommerceInlineCheckoutButtonStrategy ([#1922](https://github.com/bigcommerce/checkout-sdk-js/issues/1922)) ([7d586db](https://github.com/bigcommerce/checkout-sdk-js/commit/7d586db8f65cba45419cb7c29350084fc3963a15))
|
|
11
|
+
|
|
12
|
+
## [1.371.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.370.0...v1.371.0) (2023-03-27)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **payment:** PAYPAL-2004 added ability to change style for amazonpay button ([#1914](https://github.com/bigcommerce/checkout-sdk-js/issues/1914)) ([3019104](https://github.com/bigcommerce/checkout-sdk-js/commit/30191047cbc9719664680a375ce026123ab18328))
|
|
18
|
+
|
|
5
19
|
## [1.370.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.369.2...v1.370.0) (2023-03-27)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -458,7 +458,7 @@ declare class CheckoutButtonErrorSelector {
|
|
|
458
458
|
getDeinitializeButtonError(methodId?: CheckoutButtonMethodType): Error | undefined;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions &
|
|
461
|
+
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions;
|
|
462
462
|
|
|
463
463
|
declare class CheckoutButtonInitializer {
|
|
464
464
|
private _store;
|
|
@@ -634,14 +634,6 @@ declare interface PayPalButtonStyleOptions {
|
|
|
634
634
|
shape?: StyleButtonShape;
|
|
635
635
|
height?: number;
|
|
636
636
|
label?: StyleButtonLabel;
|
|
637
|
-
custom?: {
|
|
638
|
-
label?: string;
|
|
639
|
-
css?: {
|
|
640
|
-
background?: string;
|
|
641
|
-
color?: string;
|
|
642
|
-
width?: string;
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
637
|
}
|
|
646
638
|
|
|
647
639
|
/**
|
|
@@ -701,32 +693,6 @@ declare interface PayPalCommerceCreditButtonInitializeOptions {
|
|
|
701
693
|
onComplete?(): void;
|
|
702
694
|
}
|
|
703
695
|
|
|
704
|
-
/**
|
|
705
|
-
* A set of options that are required to initialize ApplePay in cart.
|
|
706
|
-
*
|
|
707
|
-
* When ApplePay is initialized, an ApplePay button will be inserted into the
|
|
708
|
-
* DOM. When a customer clicks on it, it will trigger Apple sheet.
|
|
709
|
-
*/
|
|
710
|
-
declare interface PayPalCommerceInlineButtonInitializeOptions {
|
|
711
|
-
/**
|
|
712
|
-
* A class name used to add special class for container where the button will be generated in
|
|
713
|
-
* Default: 'PaypalCommerceInlineButton'
|
|
714
|
-
*/
|
|
715
|
-
buttonContainerClassName?: string;
|
|
716
|
-
/**
|
|
717
|
-
* A set of styling options for the checkout button.
|
|
718
|
-
*/
|
|
719
|
-
style?: Pick<PayPalButtonStyleOptions, 'custom'>;
|
|
720
|
-
/**
|
|
721
|
-
* A callback that gets called when payment complete on paypal side.
|
|
722
|
-
*/
|
|
723
|
-
onComplete(): void;
|
|
724
|
-
/**
|
|
725
|
-
* A callback that gets called on any error
|
|
726
|
-
*/
|
|
727
|
-
onError?(): void;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
696
|
declare interface PayPalCommerceVenmoButtonInitializeOptions {
|
|
731
697
|
/**
|
|
732
698
|
* A set of styling options for the checkout button.
|
|
@@ -871,7 +837,7 @@ declare interface WithBoltButtonInitializeOptions {
|
|
|
871
837
|
bolt?: BoltButtonInitializeOptions;
|
|
872
838
|
}
|
|
873
839
|
|
|
874
|
-
declare interface WithBuyNowFeature {
|
|
840
|
+
declare interface WithBuyNowFeature extends AmazonPayV2ButtonConfig {
|
|
875
841
|
/**
|
|
876
842
|
* The options that are required to initialize Buy Now functionality.
|
|
877
843
|
*/
|
|
@@ -888,10 +854,6 @@ declare interface WithPayPalCommerceCreditButtonInitializeOptions {
|
|
|
888
854
|
paypalcommercecredit?: PayPalCommerceCreditButtonInitializeOptions;
|
|
889
855
|
}
|
|
890
856
|
|
|
891
|
-
declare interface WithPayPalCommerceInlineButtonInitializeOptions {
|
|
892
|
-
paypalcommerceinline?: PayPalCommerceInlineButtonInitializeOptions;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
857
|
declare interface WithPayPalCommerceVenmoButtonInitializeOptions {
|
|
896
858
|
paypalcommercevenmo?: PayPalCommerceVenmoButtonInitializeOptions;
|
|
897
859
|
}
|