@economist/web-apple-pay 1.7.3 → 1.7.5
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/dist/index.js +610 -83
- package/dist/src/apple-pay-button.d.ts +4 -3
- package/dist/src/apple-pay-button.js +597 -78
- package/dist/src/apple-pay-button.stories.js +605 -86
- package/dist/src/apple-pay-modal.d.ts +16 -1
- package/dist/src/apple-pay-modal.js +556 -10
- package/dist/src/apple-pay-modal.stories.js +597 -78
- package/dist/src/clients/payment-checkout/apple-session.js +4 -2
- package/dist/src/clients/payment-checkout/detects.js +2 -1
- package/dist/src/clients/payment-checkout/payment-handler.d.ts +1 -0
- package/dist/src/clients/payment-checkout/payment-handler.js +1 -0
- package/dist/src/clients/payment-checkout/types.d.ts +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/constants.js +9 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +610 -83
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Offer, ProductVariant } from './types/offer.types';
|
|
2
|
+
import { ApplePayEntryPoint } from './constants';
|
|
2
3
|
export declare const APPLE_PAY_EXCLUDED_VARIANTS: readonly ProductVariant[];
|
|
3
4
|
export declare class ApplePayButton extends HTMLElement {
|
|
4
5
|
#private;
|
|
@@ -7,13 +8,13 @@ export declare class ApplePayButton extends HTMLElement {
|
|
|
7
8
|
/**
|
|
8
9
|
* Creates and configures an ApplePayButton if the feature flag is present.
|
|
9
10
|
*/
|
|
10
|
-
static createIfEnabled(offer: Offer | undefined, country: string, entryPoint
|
|
11
|
+
static createIfEnabled(offer: Offer | undefined, country: string, entryPoint?: ApplePayEntryPoint): ApplePayButton | null;
|
|
11
12
|
get offer(): Offer | null;
|
|
12
13
|
set offer(value: Offer | null);
|
|
13
14
|
get country(): string;
|
|
14
15
|
set country(value: string);
|
|
15
|
-
get entryPoint():
|
|
16
|
-
set entryPoint(value:
|
|
16
|
+
get entryPoint(): ApplePayEntryPoint | '';
|
|
17
|
+
set entryPoint(value: ApplePayEntryPoint);
|
|
17
18
|
/**
|
|
18
19
|
* Awaitable contract for the component's current render lifecycle.
|
|
19
20
|
*
|