@stigg/react-sdk 4.4.0-beta.10 → 4.4.0-beta.11

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.
@@ -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: ({ planName, totalPrice, billingPeriod, }: {
16
+ export declare const DowngradeToFreeContent: ({ headerText, planName, priceText, }: {
17
+ headerText: string;
18
18
  planName: string;
19
- totalPrice?: {
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
+ }, {}, {}>;
@@ -12,8 +12,6 @@ export declare const usePreviewSubscriptionAction: () => {
12
12
  }) => Promise<{
13
13
  subscriptionPreview: SubscriptionPreview | null;
14
14
  errorMessage: string | null;
15
- } | {
16
- subscriptionPreview: null;
17
15
  }>;
18
16
  };
19
17
  export declare const usePreviewSubscription: () => {
@@ -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 | null;
24
+ subscriptionPreview: SubscriptionPreview;
25
25
  isFetchingSubscriptionPreview: boolean;
26
- }) => JSX.Element | null;
26
+ }) => JSX.Element;
27
27
  export declare const AppliedCreditsLineItem: ({ subscriptionPreview, isFetchingSubscriptionPreview, checkoutLocalization, }: {
28
- subscriptionPreview: SubscriptionPreview | null;
28
+ subscriptionPreview: SubscriptionPreview;
29
29
  isFetchingSubscriptionPreview: boolean;
30
30
  checkoutLocalization: CheckoutLocalization;
31
- }) => JSX.Element | null;
31
+ }) => JSX.Element;
32
32
  export declare const TaxLineItem: ({ subscriptionPreview, isFetchingSubscriptionPreview, checkoutLocalization, }: {
33
- subscriptionPreview: SubscriptionPreview | null;
33
+ subscriptionPreview: SubscriptionPreview;
34
34
  isFetchingSubscriptionPreview: boolean;
35
35
  checkoutLocalization: CheckoutLocalization;
36
- }) => JSX.Element | null;
36
+ }) => JSX.Element;
@@ -28,9 +28,30 @@ export declare type CheckoutLocalization = {
28
28
  taxTitle: (params: {
29
29
  taxDetails: SubscriptionPreviewTaxDetails;
30
30
  }) => string;
31
- downgradeToFreeAlertText: (params: {
32
- plan: Plan;
33
- }) => string;
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;