@stripe/stripe-js
Advanced tools
Comparing version 1.41.0 to 1.42.0
@@ -57,3 +57,3 @@ function _typeof(obj) { | ||
name: 'stripe-js', | ||
version: "1.41.0", | ||
version: "1.42.0", | ||
startTime: startTime | ||
@@ -60,0 +60,0 @@ }); |
@@ -61,3 +61,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "1.41.0", | ||
version: "1.42.0", | ||
startTime: startTime | ||
@@ -64,0 +64,0 @@ }); |
@@ -41,3 +41,3 @@ var V3_URL = 'https://js.stripe.com/v3'; | ||
name: 'stripe-js', | ||
version: "1.41.0", | ||
version: "1.42.0", | ||
startTime: startTime | ||
@@ -44,0 +44,0 @@ }); |
@@ -45,3 +45,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "1.41.0", | ||
version: "1.42.0", | ||
startTime: startTime | ||
@@ -48,0 +48,0 @@ }); |
{ | ||
"name": "@stripe/stripe-js", | ||
"version": "1.41.0", | ||
"version": "1.42.0", | ||
"description": "Stripe.js loading utility", | ||
@@ -5,0 +5,0 @@ "main": "dist/stripe.js", |
@@ -89,3 +89,35 @@ import {StripeElementBase} from './base'; | ||
*/ | ||
update(options: Partial<StripeCartElementOptions>): StripeCartElement; | ||
update(options: StripeCartElementUpdateOptions): StripeCartElement; | ||
/** | ||
* Makes the Cart Element visible | ||
*/ | ||
show(): StripeCartElement; | ||
/** | ||
* Makes the Cart Element not visible | ||
*/ | ||
hide(): StripeCartElement; | ||
/** | ||
* Cancels the "Check Out" button loader and displays an error message regarding why going to checkout failed | ||
*/ | ||
cancelCheckout(errorMessage?: string | null): StripeCartElement; | ||
/** | ||
* Adds a line item to the CartSession | ||
*/ | ||
addLineItem( | ||
lineItemData: | ||
| { | ||
product: string; | ||
price?: null; | ||
quantity?: number | null; | ||
} | ||
| { | ||
price: string; | ||
product?: null; | ||
quantity?: number | null; | ||
} | ||
): Promise<{error?: StripeError}>; | ||
}; | ||
@@ -114,3 +146,3 @@ | ||
header?: { | ||
text?: string; | ||
text?: string | null; | ||
}; | ||
@@ -125,2 +157,21 @@ | ||
/* | ||
* Updatable options for an `Elements` instance | ||
*/ | ||
export interface StripeCartElementUpdateOptions { | ||
/** | ||
* Override the text used in the title of the Element. | ||
* By default the Cart Element will use the title 'Your [descriptor]'. | ||
*/ | ||
header?: { | ||
text?: string | null; | ||
}; | ||
/** | ||
* Control whether the Element automatically appears when items are added to the cart. | ||
* By default, the Cart Element will use 'auto'. | ||
*/ | ||
showOnAdd?: CartShowOnAdd | null; | ||
} | ||
export interface StripeCartElementPayloadEvent { | ||
@@ -127,0 +178,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
389833
10513