@bigcommerce/checkout-sdk 1.262.2 → 1.263.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 +11 -0
- package/dist/checkout-button.d.ts +29 -12
- 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 +29 -12
- 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/dist/hosted-form.js +1 -1
- package/dist/hosted-form.js.map +1 -1
- package/dist/hosted-form.umd.js +1 -1
- package/dist/hosted-form.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/enums/checkoutbuttonmethodtype.md +7 -0
- package/docs/interfaces/checkoutbuttoninitializeoptions.md +10 -0
- package/docs/interfaces/paypalbuttonstyleoptions_2.md +1 -1
- package/docs/interfaces/paypalcommercevenmobuttoninitializeoptions.md +30 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
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.263.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.262.4...v1.263.0) (2022-07-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **payment:** PAYPAL-1383 added PayPalCommerce Venmo button strategy ([#1485](https://github.com/bigcommerce/checkout-sdk-js/issues/1485)) ([6fb289f](https://github.com/bigcommerce/checkout-sdk-js/commit/6fb289fa252b5a21cdc0958dfa88a1121e200775))
|
|
11
|
+
|
|
12
|
+
### [1.262.4](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.262.3...v1.262.4) (2022-07-05)
|
|
13
|
+
|
|
14
|
+
### [1.262.3](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.262.2...v1.262.3) (2022-07-01)
|
|
15
|
+
|
|
5
16
|
### [1.262.2](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.262.1...v1.262.2) (2022-06-30)
|
|
6
17
|
|
|
7
18
|
|
|
@@ -251,16 +251,6 @@ declare interface CheckoutButtonInitializeOptions extends CheckoutButtonOptions
|
|
|
251
251
|
* omitted unless you need to support Braintree Venmo.
|
|
252
252
|
*/
|
|
253
253
|
braintreevenmo?: BraintreeVenmoButtonInitializeOptions;
|
|
254
|
-
/**
|
|
255
|
-
* The options that are required to facilitate PayPal. They can be omitted
|
|
256
|
-
* unless you need to support Paypal.
|
|
257
|
-
*/
|
|
258
|
-
paypal?: PaypalButtonInitializeOptions;
|
|
259
|
-
/**
|
|
260
|
-
* The options that are required to facilitate PayPal Commerce. They can be omitted
|
|
261
|
-
* unless you need to support Paypal.
|
|
262
|
-
*/
|
|
263
|
-
paypalCommerce?: PaypalCommerceButtonInitializeOptions;
|
|
264
254
|
/**
|
|
265
255
|
* The ID of a container which the checkout button should be inserted.
|
|
266
256
|
*/
|
|
@@ -310,6 +300,21 @@ declare interface CheckoutButtonInitializeOptions extends CheckoutButtonOptions
|
|
|
310
300
|
* They can be omitted unless you need to support Authorize.Net GooglePay.
|
|
311
301
|
*/
|
|
312
302
|
googlepayauthorizenet?: GooglePayButtonInitializeOptions;
|
|
303
|
+
/**
|
|
304
|
+
* The options that are required to facilitate PayPal. They can be omitted
|
|
305
|
+
* unless you need to support Paypal.
|
|
306
|
+
*/
|
|
307
|
+
paypal?: PaypalButtonInitializeOptions;
|
|
308
|
+
/**
|
|
309
|
+
* The options that are required to facilitate PayPal Commerce. They can be omitted
|
|
310
|
+
* unless you need to support Paypal.
|
|
311
|
+
*/
|
|
312
|
+
paypalCommerce?: PaypalCommerceButtonInitializeOptions;
|
|
313
|
+
/**
|
|
314
|
+
* The options that are required to facilitate PayPal Commerce Venmo. They can be omitted
|
|
315
|
+
* unless you need to support PayPal Commerce Venmo.
|
|
316
|
+
*/
|
|
317
|
+
paypalcommercevenmo?: PaypalCommerceVenmoButtonInitializeOptions;
|
|
313
318
|
}
|
|
314
319
|
|
|
315
320
|
declare class CheckoutButtonInitializer {
|
|
@@ -419,7 +424,8 @@ declare enum CheckoutButtonMethodType {
|
|
|
419
424
|
GOOGLEPAY_STRIPEUPE = "googlepaystripeupe",
|
|
420
425
|
MASTERPASS = "masterpass",
|
|
421
426
|
PAYPALEXPRESS = "paypalexpress",
|
|
422
|
-
PAYPALCOMMERCE = "paypalcommerce"
|
|
427
|
+
PAYPALCOMMERCE = "paypalcommerce",
|
|
428
|
+
PAYPALCOMMERCE_VENMO = "paypalcommercevenmo"
|
|
423
429
|
}
|
|
424
430
|
|
|
425
431
|
/**
|
|
@@ -527,7 +533,7 @@ declare interface PaypalButtonStyleOptions_2 {
|
|
|
527
533
|
layout?: StyleButtonLayout;
|
|
528
534
|
color?: StyleButtonColor;
|
|
529
535
|
shape?: StyleButtonShape;
|
|
530
|
-
height?:
|
|
536
|
+
height?: number;
|
|
531
537
|
label?: StyleButtonLabel;
|
|
532
538
|
tagline?: boolean;
|
|
533
539
|
}
|
|
@@ -555,6 +561,17 @@ declare interface PaypalCommerceButtonInitializeOptions {
|
|
|
555
561
|
messagingContainer?: string;
|
|
556
562
|
}
|
|
557
563
|
|
|
564
|
+
declare interface PaypalCommerceVenmoButtonInitializeOptions {
|
|
565
|
+
/**
|
|
566
|
+
* A set of styling options for the checkout button.
|
|
567
|
+
*/
|
|
568
|
+
style?: PaypalButtonStyleOptions_2;
|
|
569
|
+
/**
|
|
570
|
+
* Flag which helps to detect that the strategy initializes on Checkout page
|
|
571
|
+
*/
|
|
572
|
+
initializesOnCheckoutPage?: boolean;
|
|
573
|
+
}
|
|
574
|
+
|
|
558
575
|
/**
|
|
559
576
|
* A set of options for configuring an asynchronous request.
|
|
560
577
|
*/
|