@bigcommerce/checkout-sdk 1.305.0 → 1.305.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 CHANGED
@@ -2,6 +2,13 @@
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.305.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.305.0...v1.305.1) (2022-11-08)
6
+
7
+
8
+ ### Code Refactoring
9
+
10
+ * **payment:** PAYPAL-1773 removed unnecessary business logic from PayPalCommerceInlineCheckoutButton strategy ([#1672](https://github.com/bigcommerce/checkout-sdk-js/issues/1672)) ([66597b0](https://github.com/bigcommerce/checkout-sdk-js/commit/66597b01d7487c5e3d2c7fbeaf70bf4050249f31))
11
+
5
12
  ## [1.305.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.304.0...v1.305.0) (2022-11-08)
6
13
 
7
14
 
@@ -795,30 +795,11 @@ declare interface PaypalCommerceCreditButtonInitializeOptions {
795
795
  }
796
796
 
797
797
  declare interface PaypalCommerceInlineCheckoutButtonInitializeOptions {
798
- /**
799
- * Accelerated Checkout Buttons container - is a generic container for all AC buttons
800
- * Used as a container where the button will be rendered with its own container
801
- * Example: 'data-cart-accelerated-checkout-buttons'
802
- * Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
803
- */
804
- acceleratedCheckoutContainerDataId: string;
805
- /**
806
- * A container identifier what used to add special class for container where the button will be generated in
807
- * Example: 'data-paypal-commerce-inline-button'
808
- * Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
809
- */
810
- buttonContainerDataId: string;
811
798
  /**
812
799
  * A class name used to add special class for container where the button will be generated in
813
800
  * Default: 'PaypalCommerceInlineButton'
814
801
  */
815
802
  buttonContainerClassName?: string;
816
- /**
817
- * Used by Accelerated Checkout strategy to hide native action button before rendering PayPal inline checkout button
818
- * Example: 'data-checkout-now-button'
819
- * Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
820
- */
821
- nativeCheckoutButtonDataId: string;
822
803
  /**
823
804
  * A set of styling options for the checkout button.
824
805
  */
@@ -827,6 +808,10 @@ declare interface PaypalCommerceInlineCheckoutButtonInitializeOptions {
827
808
  * A callback that gets called when payment complete on paypal side.
828
809
  */
829
810
  onComplete(): void;
811
+ /**
812
+ * A callback that gets called on any error
813
+ */
814
+ onError?(): void;
830
815
  }
831
816
 
832
817
  declare interface PaypalCommerceVenmoButtonInitializeOptions {