@stigg/react-sdk 4.14.0 → 4.15.0
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/customerPortal/CustomerPortal.d.ts +2 -2
- package/dist/components/customerPortal/CustomerPortalContainer.d.ts +4 -0
- package/dist/components/customerPortal/index.d.ts +3 -0
- package/dist/components/customerPortal/subscriptionOverview/SubscriptionsOverview.d.ts +2 -1
- package/dist/components/customerPortal/subscriptionOverview/SubscriptionsOverviewHeader.d.ts +2 -1
- package/dist/components/customerPortal/subscriptionOverview/charges/ChargeItem.d.ts +2 -1
- package/dist/components/customerPortal/subscriptionOverview/charges/ChargeList.d.ts +2 -1
- package/dist/components/customerPortal/subscriptionOverview/subscriptionView/SubscriptionView.d.ts +2 -1
- package/dist/components/customerPortal/subscriptionOverview/subscriptionView/TrialPanel.d.ts +2 -1
- package/dist/components/customerPortal/types.d.ts +10 -1
- package/dist/components/customerPortal/usage/CustomerUsageData.d.ts +2 -1
- package/dist/components/customerPortal/usage/featureUsage/EntitlementCTAButton.d.ts +2 -1
- package/dist/components/customerPortal/usage/featureUsage/FeatureUsage.d.ts +2 -1
- package/dist/components/paywall/index.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/react-sdk.cjs.development.js +33 -9
- 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 +36 -10
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/customerPortal/CustomerPortal.tsx +2 -2
- package/src/components/customerPortal/CustomerPortalContainer.tsx +8 -3
- package/src/components/customerPortal/index.ts +3 -0
- package/src/components/customerPortal/subscriptionOverview/SubscriptionsOverview.tsx +2 -1
- package/src/components/customerPortal/subscriptionOverview/SubscriptionsOverviewHeader.tsx +7 -2
- package/src/components/customerPortal/subscriptionOverview/charges/ChargeItem.tsx +2 -1
- package/src/components/customerPortal/subscriptionOverview/charges/ChargeList.tsx +2 -1
- package/src/components/customerPortal/subscriptionOverview/subscriptionView/SubscriptionView.tsx +2 -1
- package/src/components/customerPortal/subscriptionOverview/subscriptionView/TrialPanel.tsx +6 -2
- package/src/components/customerPortal/types.ts +15 -1
- package/src/components/customerPortal/usage/CustomerUsageData.tsx +2 -1
- package/src/components/customerPortal/usage/featureUsage/EntitlementCTAButton.tsx +6 -3
- package/src/components/customerPortal/usage/featureUsage/FeatureUsage.tsx +2 -1
- package/src/components/paywall/index.ts +1 -1
- package/src/index.ts +9 -1
|
@@ -3,10 +3,10 @@ import { CustomerPortalSubscription } from '@stigg/js-client-sdk';
|
|
|
3
3
|
import { DeepPartial } from '../../types';
|
|
4
4
|
import { CustomerPortalLocalization } from './customerPortalTextOverrides';
|
|
5
5
|
import { CustomerPortalTheme } from './customerPortalTheme';
|
|
6
|
-
import { OnBuyMoreCallbackFn } from './types';
|
|
6
|
+
import { OnBuyMoreCallbackFn, OnManageSubscriptionFn } from './types';
|
|
7
7
|
export declare type CustomerPortalSection = 'usage' | 'addons' | 'promotionalEntitlements' | 'billingInformation' | 'paymentDetails' | 'invoices';
|
|
8
8
|
export declare type CustomerPortalProps = {
|
|
9
|
-
onManageSubscription?:
|
|
9
|
+
onManageSubscription?: OnManageSubscriptionFn;
|
|
10
10
|
onBuyMore?: OnBuyMoreCallbackFn;
|
|
11
11
|
onCancelScheduledUpdates?: (subscription: CustomerPortalSubscription) => Promise<void> | void;
|
|
12
12
|
onContactSupport?: () => Promise<void> | void;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CustomerPortalProps } from './CustomerPortal';
|
|
3
|
+
import { CustomerPortalIntentionType } from './types';
|
|
4
|
+
export declare type OnManageClick = ({ intentionType }: {
|
|
5
|
+
intentionType: CustomerPortalIntentionType;
|
|
6
|
+
}) => void;
|
|
3
7
|
export declare function CustomerPortalContainer({ onManageSubscription, onBuyMore, onCancelScheduledUpdates, onContactSupport, paywallComponent, hiddenSections, }: CustomerPortalProps): JSX.Element;
|
|
@@ -6,3 +6,6 @@ export { CustomerUsageData, CustomerUsageDataProps } from './usage/CustomerUsage
|
|
|
6
6
|
export { AddonsList } from './subscriptionOverview/tabs/AddonsList';
|
|
7
7
|
export { Promotions } from './subscriptionOverview/tabs/Promotions';
|
|
8
8
|
export { CustomerPortalProvider } from './CustomerPortalProvider';
|
|
9
|
+
export { CustomerPortalLocalization } from './customerPortalTextOverrides';
|
|
10
|
+
export { CustomerPortalTheme } from './customerPortalTheme';
|
|
11
|
+
export * from './types';
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { CustomerPortalSubscription } from '@stigg/js-client-sdk';
|
|
3
3
|
import { CustomerPortalSection } from '../CustomerPortal';
|
|
4
4
|
import { OnBuyMoreCallbackFn } from '../types';
|
|
5
|
+
import { OnManageClick } from '../CustomerPortalContainer';
|
|
5
6
|
export declare type SubscriptionsOverviewProps = {
|
|
6
|
-
onManageSubscription:
|
|
7
|
+
onManageSubscription: OnManageClick;
|
|
7
8
|
onBuyMore?: OnBuyMoreCallbackFn;
|
|
8
9
|
onCancelScheduledUpdates?: (subscription: CustomerPortalSubscription) => void;
|
|
9
10
|
onContactSupport?: () => void;
|
package/dist/components/customerPortal/subscriptionOverview/SubscriptionsOverviewHeader.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CustomerPortalLocalization } from '../customerPortalTextOverrides';
|
|
3
|
+
import { OnManageClick } from '../CustomerPortalContainer';
|
|
3
4
|
declare type SubscriptionsOverviewHeaderProps = {
|
|
4
|
-
onManageSubscription:
|
|
5
|
+
onManageSubscription: OnManageClick;
|
|
5
6
|
hideManageButton: boolean;
|
|
6
7
|
textOverrides: CustomerPortalLocalization;
|
|
7
8
|
};
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import { Currency, CustomerPortalEntitlement } from '@stigg/js-client-sdk';
|
|
3
3
|
import { FeatureFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
4
4
|
import { OnBuyMoreCallbackFn } from '../../types';
|
|
5
|
+
import { OnManageClick } from '../../CustomerPortalContainer';
|
|
5
6
|
export declare type UsageBasedChargeProps = {
|
|
6
7
|
entitlement: Exclude<CustomerPortalEntitlement, 'feature'>;
|
|
7
8
|
feature: FeatureFragment;
|
|
8
9
|
amount: number;
|
|
9
10
|
currency: Currency;
|
|
10
11
|
onBuyMore?: OnBuyMoreCallbackFn;
|
|
11
|
-
onManageSubscription:
|
|
12
|
+
onManageSubscription: OnManageClick;
|
|
12
13
|
canUpgradeSubscription: boolean;
|
|
13
14
|
hasCustomSubscription: boolean;
|
|
14
15
|
hideChargePrice?: boolean;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CustomerPortalEntitlement, CustomerPortalSubscription } from '@stigg/js-client-sdk';
|
|
3
3
|
import { OnBuyMoreCallbackFn } from '../../types';
|
|
4
|
+
import { OnManageClick } from '../../CustomerPortalContainer';
|
|
4
5
|
export declare type ChargesProps = {
|
|
5
6
|
subscription: CustomerPortalSubscription;
|
|
6
7
|
entitlements: CustomerPortalEntitlement[];
|
|
7
8
|
onBuyMore?: OnBuyMoreCallbackFn;
|
|
8
|
-
onManageSubscription:
|
|
9
|
+
onManageSubscription: OnManageClick;
|
|
9
10
|
canUpgradeSubscription: boolean;
|
|
10
11
|
hasCustomSubscription: boolean;
|
|
11
12
|
};
|
package/dist/components/customerPortal/subscriptionOverview/subscriptionView/SubscriptionView.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CustomerPortalSubscription } from '@stigg/js-client-sdk';
|
|
3
3
|
import { CustomerPortalTheme } from '../../customerPortalTheme';
|
|
4
|
+
import { OnManageClick } from '../../CustomerPortalContainer';
|
|
4
5
|
declare type SubscriptionViewProps = {
|
|
5
6
|
mainSubscription: CustomerPortalSubscription;
|
|
6
7
|
trialSubscription: CustomerPortalSubscription | undefined;
|
|
7
|
-
onManageSubscription:
|
|
8
|
+
onManageSubscription: OnManageClick;
|
|
8
9
|
theme: CustomerPortalTheme;
|
|
9
10
|
};
|
|
10
11
|
export declare function SubscriptionView({ mainSubscription, trialSubscription, onManageSubscription, theme, }: SubscriptionViewProps): JSX.Element;
|
package/dist/components/customerPortal/subscriptionOverview/subscriptionView/TrialPanel.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CustomerPortalSubscription } from '@stigg/js-client-sdk';
|
|
3
|
+
import { OnManageClick } from '../../CustomerPortalContainer';
|
|
3
4
|
export declare function TrialPanel({ subscription, includePlanName, onManageSubscription, }: {
|
|
4
5
|
subscription: CustomerPortalSubscription | undefined;
|
|
5
6
|
includePlanName: boolean;
|
|
6
|
-
onManageSubscription
|
|
7
|
+
onManageSubscription: OnManageClick;
|
|
7
8
|
}): JSX.Element | null;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { CustomerPortalEntitlement } from '@stigg/js-client-sdk';
|
|
1
|
+
import { CustomerPortalEntitlement, CustomerPortalSubscription } from '@stigg/js-client-sdk';
|
|
2
2
|
import { FeatureFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
3
3
|
export declare type OnBuyMoreCallbackFn = (feature: FeatureFragment, entitlement: CustomerPortalEntitlement) => void;
|
|
4
|
+
export declare enum CustomerPortalIntentionType {
|
|
5
|
+
MANAGE_SUBSCRIPTION = "MANAGE_SUBSCRIPTION",
|
|
6
|
+
UPGRADE_PLAN = "UPGRADE_PLAN",
|
|
7
|
+
UPGRADE_TRIAL_PLAN = "UPGRADE_TRIAL_PLAN"
|
|
8
|
+
}
|
|
9
|
+
export declare type OnManageSubscriptionFn = ({ intentionType, customerSubscriptions, }: {
|
|
10
|
+
intentionType: CustomerPortalIntentionType;
|
|
11
|
+
customerSubscriptions: CustomerPortalSubscription[];
|
|
12
|
+
}) => Promise<void> | void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OnBuyMoreCallbackFn } from '../types';
|
|
3
|
+
import { OnManageClick } from '../CustomerPortalContainer';
|
|
3
4
|
export declare type CustomerUsageDataProps = {
|
|
4
|
-
onManageSubscription?:
|
|
5
|
+
onManageSubscription?: OnManageClick;
|
|
5
6
|
onBuyMore?: OnBuyMoreCallbackFn;
|
|
6
7
|
};
|
|
7
8
|
export declare function CustomerUsageData({ onManageSubscription, onBuyMore }: CustomerUsageDataProps): JSX.Element | null;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { CustomerPortalEntitlement } from '@stigg/js-client-sdk';
|
|
3
3
|
import { FeatureFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
4
4
|
import { OnBuyMoreCallbackFn } from '../../types';
|
|
5
|
+
import { OnManageClick } from '../../CustomerPortalContainer';
|
|
5
6
|
export declare type EntitlementCtaButtonProps = {
|
|
6
7
|
entitlement: Exclude<CustomerPortalEntitlement, 'feature'>;
|
|
7
8
|
feature: FeatureFragment;
|
|
8
|
-
onManageSubscription:
|
|
9
|
+
onManageSubscription: OnManageClick | undefined;
|
|
9
10
|
onBuyMore?: OnBuyMoreCallbackFn;
|
|
10
11
|
canBuyMore: boolean;
|
|
11
12
|
canUpgradeSubscription: boolean;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { CustomerPortalEntitlement } from '@stigg/js-client-sdk';
|
|
3
3
|
import { CustomerPortalSubscriptionPriceFragment } from '@stigg/api-client-js/src/generated/sdk';
|
|
4
4
|
import { OnBuyMoreCallbackFn } from '../../types';
|
|
5
|
+
import { OnManageClick } from '../../CustomerPortalContainer';
|
|
5
6
|
export declare type UsageBoxProps = {
|
|
6
7
|
entitlement: CustomerPortalEntitlement;
|
|
7
8
|
subscriptionPrice: CustomerPortalSubscriptionPriceFragment | undefined;
|
|
8
|
-
onManageSubscription:
|
|
9
|
+
onManageSubscription: OnManageClick | undefined;
|
|
9
10
|
onBuyMore?: OnBuyMoreCallbackFn;
|
|
10
11
|
hasCustomSubscription: boolean;
|
|
11
12
|
canUpgradeSubscription: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { PaywallContainer as Paywall, PaywallContainerProps as PaywallProps } from './PaywallContainer';
|
|
2
|
-
export
|
|
2
|
+
export * from './types';
|
|
3
3
|
export { PaywallLocalization, PlanPriceText, CurrentPlanParams } from './paywallTextOverrides';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './styles.css';
|
|
2
2
|
export * from '@stigg/js-client-sdk';
|
|
3
|
-
export { Paywall, PaywallProps, OnPlanSelectedCallbackFn, PaywallPlan, SubscribeIntentionType, PaywallLocalization, PlanPriceText, CurrentPlanParams, } from './components/paywall';
|
|
4
|
-
export { CustomerPortalProvider, CustomerPortal, CustomerPortalProps, CustomerPortalSection, AddonsList, PaymentDetailsSection, InvoicesSection, CustomerUsageData, CustomerUsageDataProps, SubscriptionsOverview, SubscriptionsOverviewProps, Promotions, } from './components/customerPortal';
|
|
3
|
+
export { Paywall, PaywallProps, OnPlanSelectedCallbackFn, PaywallPlan, SubscribeIntentionType, PaywallLocalization, PlanPriceText, CurrentPlanParams, PaywallData, SelectDefaultTierIndexFn, ShouldHidePlanFn, } from './components/paywall';
|
|
4
|
+
export { CustomerPortalProvider, CustomerPortal, CustomerPortalProps, CustomerPortalSection, AddonsList, PaymentDetailsSection, InvoicesSection, CustomerUsageData, CustomerUsageDataProps, SubscriptionsOverview, SubscriptionsOverviewProps, Promotions, CustomerPortalIntentionType, OnBuyMoreCallbackFn, OnManageSubscriptionFn, CustomerPortalLocalization, CustomerPortalTheme, } from './components/customerPortal';
|
|
5
5
|
export { StiggProvider, StiggProviderProps, useStiggContext, StiggContextValue, StiggContext, } from './components/StiggProvider';
|
|
6
6
|
export { Checkout, CheckoutProps, CheckoutProviderProps, CheckoutContainerProps, CheckoutLocalization, CheckoutResult, OnCheckoutCompletedParams, OnCheckoutParams, CheckoutTheme, CheckoutMockProps, MockCheckoutPreviewCallback, MockCheckoutStateCallback, BillingInformation, TaxDetailsInput, } from './components/checkout';
|
|
7
7
|
export { useWaitForCheckoutCompleted, ProvisionStatus } from './components/hooks';
|
|
8
|
-
export { HorizontalAlignment, TextAlignment } from './theme/types';
|
|
8
|
+
export { HorizontalAlignment, TextAlignment, FontVariant, FontWeight, StiggTheme } from './theme/types';
|
|
9
9
|
export { CustomizedTheme as Theme } from './theme/Theme';
|
|
@@ -4258,13 +4258,19 @@ function SectionTitle(_ref) {
|
|
|
4258
4258
|
}, title);
|
|
4259
4259
|
}
|
|
4260
4260
|
|
|
4261
|
+
(function (CustomerPortalIntentionType) {
|
|
4262
|
+
CustomerPortalIntentionType["MANAGE_SUBSCRIPTION"] = "MANAGE_SUBSCRIPTION";
|
|
4263
|
+
CustomerPortalIntentionType["UPGRADE_PLAN"] = "UPGRADE_PLAN";
|
|
4264
|
+
CustomerPortalIntentionType["UPGRADE_TRIAL_PLAN"] = "UPGRADE_TRIAL_PLAN";
|
|
4265
|
+
})(exports.CustomerPortalIntentionType || (exports.CustomerPortalIntentionType = {}));
|
|
4266
|
+
|
|
4261
4267
|
var StyledEditIcon = /*#__PURE__*/_styled(SvgEditIcon, {
|
|
4262
4268
|
target: "e1fjw26b0",
|
|
4263
4269
|
label: "StyledEditIcon"
|
|
4264
4270
|
})("path{stroke:", function (_ref) {
|
|
4265
4271
|
var theme = _ref.theme;
|
|
4266
4272
|
return theme.stigg.palette.primary;
|
|
4267
|
-
}, ";}" + ( "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
4273
|
+
}, ";}" + ( "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvbnNPdmVydmlld0hlYWRlci50c3giXSwibmFtZXMiOltd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kw9U3Vic2NyaXB0aW9uc092ZXJ2aWV3SGVhZGVyLmpzLm1hcCJdfQ== */"));
|
|
4268
4274
|
|
|
4269
4275
|
function SubscriptionsOverviewHeader(_ref2) {
|
|
4270
4276
|
var onManageSubscription = _ref2.onManageSubscription,
|
|
@@ -4279,7 +4285,11 @@ function SubscriptionsOverviewHeader(_ref2) {
|
|
|
4279
4285
|
}), !hideManageButton && React__default.createElement(StyledButton$1, {
|
|
4280
4286
|
className: "stigg-manage-subscription-button",
|
|
4281
4287
|
variant: "outlined",
|
|
4282
|
-
onClick:
|
|
4288
|
+
onClick: function onClick() {
|
|
4289
|
+
return onManageSubscription({
|
|
4290
|
+
intentionType: exports.CustomerPortalIntentionType.MANAGE_SUBSCRIPTION
|
|
4291
|
+
});
|
|
4292
|
+
}
|
|
4283
4293
|
}, React__default.createElement(StyledEditIcon, {
|
|
4284
4294
|
className: "stigg-manage-subscription-button-image"
|
|
4285
4295
|
}), React__default.createElement(Typography, {
|
|
@@ -5634,7 +5644,7 @@ var OnTrialBadge = /*#__PURE__*/_styled("div", {
|
|
|
5634
5644
|
})("width:100%;display:flex;align-items:center;gap:4px;background-color:", function (_ref) {
|
|
5635
5645
|
var theme = _ref.theme;
|
|
5636
5646
|
return theme.stigg.palette.warning;
|
|
5637
|
-
}, ";border-radius:10px;padding:8px 16px;margin-top:16px;" + ( "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5647
|
+
}, ";border-radius:10px;padding:8px 16px;margin-top:16px;" + ( "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRyaWFsUGFuZWwudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFnQyIsImZpbGUiOiJUcmlhbFBhbmVsLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkL21hY3JvJztcclxuaW1wb3J0IFJlY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Z2VTdWJzY3JpcHRpb24oeyBpbnRlbnRpb25UeXBlOiBDdXN0b21lclBvcnRhbEludGVudGlvblR5cGUuVVBHUkFERV9UUklBTF9QTEFOIH0pIH0sXHJcbiAgICAgICAgICAgIFJlYWN0LmNyZWF0ZUVsZW1lbnQoVHlwb2dyYXBoeSwgeyBjb2xvcjogXCJ3aGl0ZVwiIH0sIFwiVXBncmFkZSBwbGFuXCIpKSkpO1xyXG59XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVRyaWFsUGFuZWwuanMubWFwIl19 */"));
|
|
5638
5648
|
|
|
5639
5649
|
var StyledLink = /*#__PURE__*/_styled(Link, {
|
|
5640
5650
|
target: "el5iwyw0",
|
|
@@ -5642,7 +5652,7 @@ var StyledLink = /*#__PURE__*/_styled(Link, {
|
|
|
5642
5652
|
})( {
|
|
5643
5653
|
name: "69ka7t",
|
|
5644
5654
|
styles: "text-decoration-color:white;color:white;cursor:pointer",
|
|
5645
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5655
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRyaWFsUGFuZWwudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtCZ0MiLCJmaWxlIjoiVHJpYWxQYW5lbC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZC9tYWNybyc7XHJcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IFN1YnNjcmlwdGlvblN0YXR1cyB9IGZyb20gJ0BzdGlnZy9qcy1jbGllbnQtc2RrJztcclxuaW1wb3J0IExpbmsgZnJvbSAnQG11aS9tYXRlcmlhbC9MaW5rJztcclxuaW1wb3J0IFNhbmRDbG9ja0ljb24gZnJvbSAnLi4vLi4vLi4vLi4vYXNzZXRzL3NhbmQt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wiKSkpKTtcclxufVxyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1UcmlhbFBhbmVsLmpzLm1hcCJdfQ== */",
|
|
5646
5656
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$f
|
|
5647
5657
|
});
|
|
5648
5658
|
|
|
@@ -5670,7 +5680,11 @@ function TrialPanel(_ref2) {
|
|
|
5670
5680
|
color: "white"
|
|
5671
5681
|
}, subscription.trialRemainingDays + " days remaining in trial", includePlanName && " of the " + subscription.planName + " plan")), React__default.createElement(StyledLink, {
|
|
5672
5682
|
className: "stigg-subscription-trial-upgrade-button",
|
|
5673
|
-
onClick:
|
|
5683
|
+
onClick: function onClick() {
|
|
5684
|
+
return onManageSubscription({
|
|
5685
|
+
intentionType: exports.CustomerPortalIntentionType.UPGRADE_TRIAL_PLAN
|
|
5686
|
+
});
|
|
5687
|
+
}
|
|
5674
5688
|
}, React__default.createElement(Typography, {
|
|
5675
5689
|
color: "white"
|
|
5676
5690
|
}, "Upgrade plan")));
|
|
@@ -5825,7 +5839,11 @@ function EntitlementCtaButton(_ref) {
|
|
|
5825
5839
|
if (canUpgradeSubscription) {
|
|
5826
5840
|
return onManageSubscription ? React__default.createElement(StyledButton$2, {
|
|
5827
5841
|
variant: "text",
|
|
5828
|
-
onClick:
|
|
5842
|
+
onClick: function onClick() {
|
|
5843
|
+
return onManageSubscription({
|
|
5844
|
+
intentionType: exports.CustomerPortalIntentionType.UPGRADE_PLAN
|
|
5845
|
+
});
|
|
5846
|
+
}
|
|
5829
5847
|
}, React__default.createElement(Typography, {
|
|
5830
5848
|
color: "primary.main"
|
|
5831
5849
|
}, "Upgrade")) : null;
|
|
@@ -6563,10 +6581,16 @@ function CustomerPortalContainer(_ref) {
|
|
|
6563
6581
|
|
|
6564
6582
|
var customerPortalSectionRef = React.useRef(null);
|
|
6565
6583
|
|
|
6566
|
-
var onManageClick = function onManageClick() {
|
|
6584
|
+
var onManageClick = function onManageClick(_ref2) {
|
|
6585
|
+
var intentionType = _ref2.intentionType;
|
|
6586
|
+
|
|
6567
6587
|
if (onManageSubscription) {
|
|
6568
|
-
|
|
6569
|
-
|
|
6588
|
+
var _customerPortal$subsc;
|
|
6589
|
+
|
|
6590
|
+
void onManageSubscription({
|
|
6591
|
+
intentionType: intentionType,
|
|
6592
|
+
customerSubscriptions: (_customerPortal$subsc = customerPortal == null ? void 0 : customerPortal.subscriptions) != null ? _customerPortal$subsc : []
|
|
6593
|
+
});
|
|
6570
6594
|
} else {
|
|
6571
6595
|
var _customerPortalSectio;
|
|
6572
6596
|
|