@stigg/react-sdk 4.3.0-beta.0 → 4.3.0-beta.1
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/CheckoutContainer.style.d.ts +0 -3
- package/dist/components/checkout/CheckoutProvider.d.ts +2 -0
- package/dist/components/checkout/hooks/useLoadCheckout.d.ts +1 -3
- package/dist/components/checkout/index.d.ts +1 -1
- package/dist/components/checkout/theme.d.ts +6 -2
- package/dist/components/common/mapExternalTheme.d.ts +2 -3
- package/dist/index.d.ts +1 -1
- package/dist/react-sdk.cjs.development.js +111 -85
- 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 +113 -90
- package/dist/react-sdk.esm.js.map +1 -1
- package/dist/stories/CustomerPortal.stories.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/checkout/CheckoutContainer.style.ts +3 -3
- package/src/components/checkout/CheckoutContainer.tsx +3 -7
- package/src/components/checkout/CheckoutProvider.tsx +9 -4
- package/src/components/checkout/CheckoutSummary.tsx +1 -1
- package/src/components/checkout/components/InputField.tsx +1 -2
- package/src/components/checkout/hooks/useLoadCheckout.ts +1 -1
- package/src/components/checkout/index.ts +1 -1
- package/src/components/checkout/steps/payment/stripe/StripePaymentForm.tsx +2 -2
- package/src/components/checkout/steps/plan/BillingPeriodPicker.style.tsx +1 -1
- package/src/components/checkout/theme.ts +31 -14
- package/src/components/common/mapExternalTheme.ts +22 -12
- package/src/index.ts +1 -1
- package/src/stories/Checkout.stories.tsx +4 -1
- package/src/stories/CustomerPortal.stories.tsx +1 -1
- package/dist/components/checkout/types.d.ts +0 -7
- package/src/components/checkout/types.ts +0 -7
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
export declare const CheckoutLayout: import("@emotion/styled/macro").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
$backgroundColor: string;
|
|
8
|
-
$borderColor: string;
|
|
9
6
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
7
|
export declare const CheckoutContent: import("@emotion/styled/macro").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
11
8
|
children?: import("react").ReactNode;
|
|
@@ -4,9 +4,11 @@ import { DeepPartial } from '../../types';
|
|
|
4
4
|
import { AddonsStepState, PaymentStepState, PlanStepState, ProgressBarState, WidgetState } from './hooks';
|
|
5
5
|
import { CheckoutLocalization } from './textOverrides';
|
|
6
6
|
import { CheckoutTheme } from './theme';
|
|
7
|
+
import { StiggTheme } from '../../theme/types';
|
|
7
8
|
export interface CheckoutContextState {
|
|
8
9
|
checkout?: GetCheckoutStateResults | null;
|
|
9
10
|
checkoutLocalization: CheckoutLocalization;
|
|
11
|
+
stiggTheme: StiggTheme;
|
|
10
12
|
theme: CheckoutTheme;
|
|
11
13
|
isLoading: boolean;
|
|
12
14
|
resourceId?: string;
|
|
@@ -5,9 +5,7 @@ declare type useLoadCheckoutProps = {
|
|
|
5
5
|
billingCountryCode?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function useLoadCheckout({ planId, resourceId, billingCountryCode }: useLoadCheckoutProps): {
|
|
8
|
-
checkout:
|
|
9
|
-
configuration?: {} | undefined;
|
|
10
|
-
}) | null | undefined;
|
|
8
|
+
checkout: GetCheckoutStateResults | null | undefined;
|
|
11
9
|
isLoading: boolean;
|
|
12
10
|
};
|
|
13
11
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { CheckoutConfiguration } from '@stigg/js-client-sdk';
|
|
1
2
|
import { StiggTheme } from '../../theme/types';
|
|
2
3
|
import { DeepPartial } from '../../types';
|
|
3
|
-
import { CheckoutConfiguration } from './types';
|
|
4
4
|
export declare type CheckoutTheme = {
|
|
5
|
+
primary: string;
|
|
6
|
+
textColor: string;
|
|
5
7
|
backgroundColor: string;
|
|
6
8
|
borderColor: string;
|
|
9
|
+
selectionColor: string;
|
|
10
|
+
summaryBackgroundColor: string;
|
|
7
11
|
};
|
|
8
|
-
export declare function getResolvedCheckoutTheme(
|
|
12
|
+
export declare function getResolvedCheckoutTheme(globalTheme: StiggTheme, themeOverride?: DeepPartial<CheckoutTheme>, _remoteConfiguration?: CheckoutConfiguration | null): CheckoutTheme;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CustomerPortalConfiguration, PaywallConfiguration } from '@stigg/js-client-sdk';
|
|
1
|
+
import { CheckoutConfiguration, CustomerPortalConfiguration, PaywallConfiguration } from '@stigg/js-client-sdk';
|
|
2
2
|
import { CustomizedTheme } from '../../theme/Theme';
|
|
3
|
-
import { CheckoutConfiguration } from '../checkout/types';
|
|
4
3
|
export declare function mapCustomerPortalConfiguration(configuration: CustomerPortalConfiguration): CustomizedTheme;
|
|
5
4
|
export declare function mapPaywallConfiguration(paywallConfiguration: PaywallConfiguration): CustomizedTheme;
|
|
6
|
-
export declare function mapCheckoutConfiguration(
|
|
5
|
+
export declare function mapCheckoutConfiguration(configuration: CheckoutConfiguration): CustomizedTheme;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from '@stigg/js-client-sdk';
|
|
|
3
3
|
export { Paywall, PaywallProps, OnPlanSelectedCallbackFn, PaywallPlan, SubscribeIntentionType, PaywallLocalization, } from './components/paywall';
|
|
4
4
|
export { CustomerPortalProvider, CustomerPortal, CustomerPortalProps, CustomerPortalSection, AddonsList, PaymentDetailsSection, InvoicesSection, CustomerUsageData, CustomerUsageDataProps, SubscriptionsOverview, SubscriptionsOverviewProps, Promotions, } from './components/customerPortal';
|
|
5
5
|
export { StiggProvider, StiggProviderProps, useStiggContext, StiggContextValue, StiggContext, } from './components/StiggProvider';
|
|
6
|
-
export { Checkout, CheckoutProps,
|
|
6
|
+
export { Checkout, CheckoutProps, CheckoutTheme } from './components/checkout';
|
|
7
7
|
export { useWaitForCheckoutCompleted, ProvisionStatus } from './components/hooks';
|
|
8
8
|
export { HorizontalAlignment, TextAlignment } from './theme/types';
|
|
9
9
|
export { CustomizedTheme as Theme } from './theme/Theme';
|