@stigg/react-sdk 4.4.0-beta.10 → 4.4.0-beta.12
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/components/checkout/Checkout.d.ts +1 -1
- package/dist/components/checkout/CheckoutContainer.d.ts +4 -2
- package/dist/components/checkout/CheckoutProvider.d.ts +4 -2
- package/dist/components/checkout/components/DowngradeToFreeContainer.d.ts +3 -7
- package/dist/components/checkout/components/StyledArrow.d.ts +5 -0
- package/dist/components/checkout/hooks/useLoadCheckout.d.ts +3 -1
- package/dist/components/checkout/hooks/usePreviewSubscription.d.ts +8 -5
- package/dist/components/checkout/summary/CheckoutSummary.d.ts +1 -1
- package/dist/components/checkout/summary/components/LineItems.d.ts +6 -6
- package/dist/components/checkout/textOverrides.d.ts +24 -3
- package/dist/react-sdk.cjs.development.js +255 -195
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +261 -211
- package/dist/react-sdk.esm.js.map +1 -1
- package/dist/stories/mocks/checkout/consts.d.ts +11 -0
- package/dist/stories/mocks/checkout/mockCheckoutPreview.d.ts +2 -0
- package/dist/stories/mocks/checkout/mockCheckoutState.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/checkout/Checkout.tsx +3 -1
- package/src/components/checkout/CheckoutContainer.tsx +21 -2
- package/src/components/checkout/CheckoutProvider.tsx +6 -2
- package/src/components/checkout/components/DowngradeToFreeContainer.tsx +32 -35
- package/src/components/checkout/components/StyledArrow.tsx +9 -0
- package/src/components/checkout/hooks/useLoadCheckout.ts +10 -2
- package/src/components/checkout/hooks/usePreviewSubscription.ts +16 -6
- package/src/components/checkout/planHeader/PlanHeader.tsx +18 -25
- package/src/components/checkout/promotionCode/AddPromotionCode.tsx +2 -1
- package/src/components/checkout/summary/CheckoutSummary.tsx +33 -21
- package/src/components/checkout/summary/components/LineItems.tsx +10 -17
- package/src/components/checkout/textOverrides.ts +21 -4
- package/src/stories/Checkout.stories.tsx +32 -6
- package/src/stories/mocks/checkout/consts.ts +15 -0
- package/src/stories/mocks/checkout/mockCheckoutPreview.ts +121 -0
- package/src/stories/mocks/checkout/mockCheckoutState.ts +206 -0
- package/dist/components/checkout/planHeader/PlanHeader.style.d.ts +0 -25
- package/src/components/checkout/planHeader/PlanHeader.style.tsx +0 -23
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import { CheckoutProviderProps } from './CheckoutProvider';
|
|
3
3
|
import { CheckoutContainerProps } from './CheckoutContainer';
|
|
4
4
|
export declare type CheckoutProps = CheckoutProviderProps & CheckoutContainerProps;
|
|
5
|
-
export declare const Checkout: ({ textOverrides, theme, resourceId, planId, preferredBillingPeriod, billingCountryCode, billableFeatures, billingInformation, ...containerProps }: CheckoutProps) => JSX.Element;
|
|
5
|
+
export declare const Checkout: ({ textOverrides, theme, resourceId, planId, preferredBillingPeriod, billingCountryCode, billableFeatures, billingInformation, onMockCheckoutState, ...containerProps }: CheckoutProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { BillingAddress, ApplySubscription, CheckoutStatePlan, PreviewSubscription, SubscriptionPreview } from '@stigg/js-client-sdk';
|
|
3
3
|
export declare type CheckoutResult = {
|
|
4
4
|
success: boolean;
|
|
5
5
|
errorMessage?: string;
|
|
@@ -12,6 +12,7 @@ export declare type OnCheckoutCompletedParams = {
|
|
|
12
12
|
success: boolean;
|
|
13
13
|
error?: string;
|
|
14
14
|
};
|
|
15
|
+
export declare type OnMockCheckoutPreviewCallback = (params: PreviewSubscription) => SubscriptionPreview;
|
|
15
16
|
export declare type CheckoutContainerProps = {
|
|
16
17
|
onCheckout?: (params: OnCheckoutParams) => Promise<CheckoutResult>;
|
|
17
18
|
onCheckoutCompleted: (params: OnCheckoutCompletedParams) => Promise<void>;
|
|
@@ -23,5 +24,6 @@ export declare type CheckoutContainerProps = {
|
|
|
23
24
|
}) => Promise<void>;
|
|
24
25
|
disablePromotionCode?: boolean;
|
|
25
26
|
disableSuccessAnimation?: boolean;
|
|
27
|
+
onMockCheckoutPreview?: OnMockCheckoutPreviewCallback;
|
|
26
28
|
};
|
|
27
|
-
export declare function CheckoutContainer({ onCheckout, onCheckoutCompleted, onChangePlan, onBillingAddressChange, disablePromotionCode, disableSuccessAnimation, }: CheckoutContainerProps): JSX.Element;
|
|
29
|
+
export declare function CheckoutContainer({ onCheckout, onCheckoutCompleted, onChangePlan, onBillingAddressChange, disablePromotionCode, disableSuccessAnimation, onMockCheckoutPreview, }: CheckoutContainerProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BillableFeature, BillingPeriod, GetCheckoutStateResults } from '@stigg/js-client-sdk';
|
|
2
|
+
import { BillableFeature, BillingPeriod, GetCheckoutState, GetCheckoutStateResults } from '@stigg/js-client-sdk';
|
|
3
3
|
import { DeepPartial } from '../../types';
|
|
4
4
|
import { AddonsStepState, PaymentStepState, PlanStepState, ProgressBarState, WidgetState } from './hooks';
|
|
5
5
|
import { CheckoutLocalization } from './textOverrides';
|
|
@@ -21,6 +21,7 @@ export interface CheckoutContextState {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const CheckoutContext: React.Context<[CheckoutContextState, (updater: (state: CheckoutContextState) => void) => void] | null>;
|
|
23
23
|
export declare const useCheckoutContext: () => [CheckoutContextState, (updater: (state: CheckoutContextState) => void) => void];
|
|
24
|
+
export declare type MockCheckoutStateCallback = (params: GetCheckoutState) => GetCheckoutStateResults;
|
|
24
25
|
export declare type CheckoutProviderProps = {
|
|
25
26
|
textOverrides?: DeepPartial<CheckoutLocalization>;
|
|
26
27
|
theme?: DeepPartial<CheckoutTheme>;
|
|
@@ -30,7 +31,8 @@ export declare type CheckoutProviderProps = {
|
|
|
30
31
|
billingCountryCode?: string;
|
|
31
32
|
billableFeatures?: BillableFeature[];
|
|
32
33
|
billingInformation?: BillingInformation;
|
|
34
|
+
onMockCheckoutState?: MockCheckoutStateCallback;
|
|
33
35
|
};
|
|
34
|
-
export declare function CheckoutProvider({ children, textOverrides, theme, preferredBillingPeriod, billableFeatures, resourceId, planId, billingCountryCode, billingInformation, }: {
|
|
36
|
+
export declare function CheckoutProvider({ children, textOverrides, theme, preferredBillingPeriod, billableFeatures, resourceId, planId, billingCountryCode, billingInformation, onMockCheckoutState, }: {
|
|
35
37
|
children: React.ReactNode;
|
|
36
38
|
} & CheckoutProviderProps): JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="@emotion/styled/macro" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CheckoutStatePlan, Subscription } from '@stigg/js-client-sdk';
|
|
4
|
-
import { Currency, BillingPeriod } from '@stigg/js-client-sdk';
|
|
5
4
|
import { CheckoutLocalization } from '../textOverrides';
|
|
6
5
|
import { CheckoutContainerProps } from '../CheckoutContainer';
|
|
7
6
|
export declare const DowngradeToFreePlanBox: import("@emotion/styled/macro").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
@@ -14,13 +13,10 @@ export declare const DowngradeToFreePlanBox: import("@emotion/styled/macro").Sty
|
|
|
14
13
|
}, "slot" | "title" | "translate" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
15
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
15
|
}, {}, {}>;
|
|
17
|
-
export declare const DowngradeToFreeContent: ({
|
|
16
|
+
export declare const DowngradeToFreeContent: ({ headerText, planName, priceText, }: {
|
|
17
|
+
headerText: string;
|
|
18
18
|
planName: string;
|
|
19
|
-
|
|
20
|
-
amount: number;
|
|
21
|
-
currency: Currency;
|
|
22
|
-
} | undefined;
|
|
23
|
-
billingPeriod?: BillingPeriod | undefined;
|
|
19
|
+
priceText: string;
|
|
24
20
|
}) => JSX.Element;
|
|
25
21
|
declare type DowngradeToFreePlanProps = {
|
|
26
22
|
checkoutLocalization: CheckoutLocalization;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="@emotion/styled/macro" />
|
|
3
|
+
export declare const StyledArrowRightIcon: import("@emotion/styled/macro").StyledComponent<import("react").SVGProps<SVGElement> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
}, {}, {}>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { GetCheckoutStateResults } from '@stigg/js-client-sdk';
|
|
2
|
+
import { MockCheckoutStateCallback } from '../CheckoutProvider';
|
|
2
3
|
declare type UseLoadCheckoutProps = {
|
|
3
4
|
planId: string;
|
|
4
5
|
resourceId?: string;
|
|
5
6
|
billingCountryCode?: string;
|
|
7
|
+
onMockCheckoutState?: MockCheckoutStateCallback;
|
|
6
8
|
};
|
|
7
|
-
export declare function useLoadCheckout({ planId, resourceId, billingCountryCode }: UseLoadCheckoutProps): {
|
|
9
|
+
export declare function useLoadCheckout({ planId, resourceId, billingCountryCode, onMockCheckoutState }: UseLoadCheckoutProps): {
|
|
8
10
|
checkout: GetCheckoutStateResults | null | undefined;
|
|
9
11
|
isLoading: boolean;
|
|
10
12
|
};
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import { StiggClient, SubscriptionPreview } from '@stigg/js-client-sdk';
|
|
2
2
|
import { SubscriptionState } from './useSubscriptionModel';
|
|
3
|
+
import { OnMockCheckoutPreviewCallback } from '../CheckoutContainer';
|
|
4
|
+
declare type UsePreviewSubscriptionProps = {
|
|
5
|
+
onMockCheckoutPreview?: OnMockCheckoutPreviewCallback;
|
|
6
|
+
};
|
|
3
7
|
export declare type PreviewSubscriptionProps = {
|
|
4
8
|
customerId?: string;
|
|
5
9
|
planId?: string;
|
|
6
10
|
resourceId?: string;
|
|
7
11
|
stigg: StiggClient;
|
|
8
|
-
} & SubscriptionState;
|
|
9
|
-
export declare const usePreviewSubscriptionAction: () => {
|
|
12
|
+
} & SubscriptionState & UsePreviewSubscriptionProps;
|
|
13
|
+
export declare const usePreviewSubscriptionAction: ({ onMockCheckoutPreview }?: UsePreviewSubscriptionProps) => {
|
|
10
14
|
previewSubscriptionAction: ({ promotionCode }?: {
|
|
11
15
|
promotionCode?: string | null | undefined;
|
|
12
16
|
}) => Promise<{
|
|
13
17
|
subscriptionPreview: SubscriptionPreview | null;
|
|
14
18
|
errorMessage: string | null;
|
|
15
|
-
} | {
|
|
16
|
-
subscriptionPreview: null;
|
|
17
19
|
}>;
|
|
18
20
|
};
|
|
19
|
-
export declare const usePreviewSubscription: () => {
|
|
21
|
+
export declare const usePreviewSubscription: ({ onMockCheckoutPreview }?: UsePreviewSubscriptionProps) => {
|
|
20
22
|
subscriptionPreview: SubscriptionPreview | null;
|
|
21
23
|
isFetchingSubscriptionPreview: boolean;
|
|
22
24
|
};
|
|
25
|
+
export {};
|
|
@@ -13,6 +13,6 @@ export declare const SummaryCard: import("@emotion/styled/macro").StyledComponen
|
|
|
13
13
|
}, "slot" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
15
|
}, {}, {}>;
|
|
16
|
-
export declare const CheckoutSummary: ({ onCheckout, onCheckoutCompleted, disablePromotionCode, disableSuccessAnimation, isFreeDowngrade, }: CheckoutContainerProps & {
|
|
16
|
+
export declare const CheckoutSummary: ({ onCheckout, onCheckoutCompleted, disablePromotionCode, disableSuccessAnimation, isFreeDowngrade, onMockCheckoutPreview, }: CheckoutContainerProps & {
|
|
17
17
|
isFreeDowngrade: boolean;
|
|
18
18
|
}) => JSX.Element;
|
|
@@ -21,16 +21,16 @@ export declare const BilledPriceLineItem: ({ label, quantity, price }: {
|
|
|
21
21
|
price: Price;
|
|
22
22
|
}) => JSX.Element;
|
|
23
23
|
export declare const DiscountLineItem: ({ subscriptionPreview, isFetchingSubscriptionPreview, }: {
|
|
24
|
-
subscriptionPreview: SubscriptionPreview
|
|
24
|
+
subscriptionPreview: SubscriptionPreview;
|
|
25
25
|
isFetchingSubscriptionPreview: boolean;
|
|
26
|
-
}) => JSX.Element
|
|
26
|
+
}) => JSX.Element;
|
|
27
27
|
export declare const AppliedCreditsLineItem: ({ subscriptionPreview, isFetchingSubscriptionPreview, checkoutLocalization, }: {
|
|
28
|
-
subscriptionPreview: SubscriptionPreview
|
|
28
|
+
subscriptionPreview: SubscriptionPreview;
|
|
29
29
|
isFetchingSubscriptionPreview: boolean;
|
|
30
30
|
checkoutLocalization: CheckoutLocalization;
|
|
31
|
-
}) => JSX.Element
|
|
31
|
+
}) => JSX.Element;
|
|
32
32
|
export declare const TaxLineItem: ({ subscriptionPreview, isFetchingSubscriptionPreview, checkoutLocalization, }: {
|
|
33
|
-
subscriptionPreview: SubscriptionPreview
|
|
33
|
+
subscriptionPreview: SubscriptionPreview;
|
|
34
34
|
isFetchingSubscriptionPreview: boolean;
|
|
35
35
|
checkoutLocalization: CheckoutLocalization;
|
|
36
|
-
}) => JSX.Element
|
|
36
|
+
}) => JSX.Element;
|
|
@@ -28,9 +28,30 @@ export declare type CheckoutLocalization = {
|
|
|
28
28
|
taxTitle: (params: {
|
|
29
29
|
taxDetails: SubscriptionPreviewTaxDetails;
|
|
30
30
|
}) => string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
downgradeToFree: {
|
|
32
|
+
alertText: (params: {
|
|
33
|
+
plan: Plan;
|
|
34
|
+
}) => string;
|
|
35
|
+
freePlanHeader: (params: {
|
|
36
|
+
plan: Plan;
|
|
37
|
+
}) => string;
|
|
38
|
+
freePlanName: (params: {
|
|
39
|
+
plan: Plan;
|
|
40
|
+
}) => string;
|
|
41
|
+
freePlanPriceText: (params: {
|
|
42
|
+
plan: Plan;
|
|
43
|
+
}) => string;
|
|
44
|
+
paidPlanHeader: (params: {
|
|
45
|
+
plan: Plan;
|
|
46
|
+
}) => string;
|
|
47
|
+
paidPlanName: (params: {
|
|
48
|
+
plan: Plan;
|
|
49
|
+
}) => string;
|
|
50
|
+
paidPlanPriceText: (params: {
|
|
51
|
+
plan: Plan;
|
|
52
|
+
billingPeriod?: BillingPeriod;
|
|
53
|
+
}) => string;
|
|
54
|
+
};
|
|
34
55
|
checkoutSuccessText: string;
|
|
35
56
|
};
|
|
36
57
|
export declare function getResolvedCheckoutLocalize(localizeOverride?: DeepPartial<CheckoutLocalization>): CheckoutLocalization;
|