@carlonicora/nextjs-jsonapi 1.109.0 → 1.110.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/{AssistantMessageInterface-Cs1yb-gF.d.ts → AssistantMessageInterface-BNzf1etU.d.ts} +14 -1
- package/dist/{AssistantMessageInterface-DQ3mH5L8.d.mts → AssistantMessageInterface-DrgHDjZ5.d.mts} +14 -1
- package/dist/{BlockNoteEditor-3XYBZLWO.js → BlockNoteEditor-7OKW6HHN.js} +19 -20
- package/dist/BlockNoteEditor-7OKW6HHN.js.map +1 -0
- package/dist/{BlockNoteEditor-EBFZG7AL.mjs → BlockNoteEditor-K7IIWM3S.mjs} +4 -5
- package/dist/{BlockNoteEditor-EBFZG7AL.mjs.map → BlockNoteEditor-K7IIWM3S.mjs.map} +1 -1
- package/dist/BlockNoteViewer-OPSCTHKJ.mjs +31 -0
- package/dist/BlockNoteViewer-OPSCTHKJ.mjs.map +1 -0
- package/dist/BlockNoteViewer-UW5VZ5UF.js +31 -0
- package/dist/BlockNoteViewer-UW5VZ5UF.js.map +1 -0
- package/dist/billing/index.d.mts +41 -41
- package/dist/billing/index.d.ts +41 -41
- package/dist/billing/index.js +346 -347
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +3 -4
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-7E3O52U5.js → chunk-6XWW67F2.js} +25 -12
- package/dist/chunk-6XWW67F2.js.map +1 -0
- package/dist/{chunk-UHO3KUUH.js → chunk-AKXUNE3A.js} +977 -850
- package/dist/chunk-AKXUNE3A.js.map +1 -0
- package/dist/{chunk-UOYIWJEJ.mjs → chunk-CWVYU4YZ.mjs} +18 -5
- package/dist/{chunk-UOYIWJEJ.mjs.map → chunk-CWVYU4YZ.mjs.map} +1 -1
- package/dist/{chunk-CRTVAQEK.mjs → chunk-TXVVZLUQ.mjs} +1388 -1261
- package/dist/chunk-TXVVZLUQ.mjs.map +1 -0
- package/dist/{chunk-CFI4WZ5R.js → chunk-U2HR57MY.js} +111 -5
- package/dist/chunk-U2HR57MY.js.map +1 -0
- package/dist/chunk-WPAQRB5Q.mjs +7 -0
- package/dist/chunk-WPAQRB5Q.mjs.map +1 -0
- package/dist/chunk-YBZVWLPH.js +7 -0
- package/dist/chunk-YBZVWLPH.js.map +1 -0
- package/dist/{chunk-MSNNAHDB.mjs → chunk-ZYPNVEHB.mjs} +112 -6
- package/dist/{chunk-MSNNAHDB.mjs.map → chunk-ZYPNVEHB.mjs.map} +1 -1
- package/dist/client/index.d.mts +3 -4
- package/dist/client/index.d.ts +3 -4
- package/dist/client/index.js +4 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +3 -4
- package/dist/components/index.d.mts +418 -415
- package/dist/components/index.d.ts +418 -415
- package/dist/components/index.js +6 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -4
- package/dist/{config-CN23v3eJ.d.ts → config-BrkU_Ynz.d.ts} +2 -2
- package/dist/{config-gh88Qn4h.d.mts → config-snd2ToEB.d.mts} +2 -2
- package/dist/contexts/index.d.mts +15 -15
- package/dist/contexts/index.d.ts +15 -15
- package/dist/contexts/index.js +4 -5
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +3 -4
- package/dist/core/index.d.mts +35 -4
- package/dist/core/index.d.ts +35 -4
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/features/help/index.d.mts +25 -66
- package/dist/features/help/index.d.ts +25 -66
- package/dist/features/help/index.js +114 -124
- package/dist/features/help/index.js.map +1 -1
- package/dist/features/help/index.mjs +95 -105
- package/dist/features/help/index.mjs.map +1 -1
- package/dist/features/help/server.d.mts +27 -65
- package/dist/features/help/server.d.ts +27 -65
- package/dist/features/help/server.js +4 -119
- package/dist/features/help/server.js.map +1 -1
- package/dist/features/help/server.mjs +4 -119
- package/dist/features/help/server.mjs.map +1 -1
- package/dist/help-content-config.interface-C5ESIod9.d.mts +13 -0
- package/dist/help-content-config.interface-C5ESIod9.d.ts +13 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/testing/index.d.mts +1 -2
- package/dist/testing/index.d.ts +1 -2
- package/package.json +1 -6
- package/src/client/config.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/viewers/BlockNoteViewer.tsx +27 -0
- package/src/components/viewers/BlockNoteViewerContainer.tsx +10 -0
- package/src/core/registry/helpStore.ts +2 -19
- package/src/features/assistant-message/components/parts/MessageSourcesContainer.tsx +4 -0
- package/src/features/assistant-message/components/parts/tabs/ContentsTab.tsx +5 -5
- package/src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx +3 -2
- package/src/features/help/components/HelpArticleBody.tsx +27 -19
- package/src/features/help/components/HelpHint.tsx +20 -11
- package/src/features/help/components/HelpSearchResultRow.tsx +16 -6
- package/src/features/help/components/HelpSideNav.tsx +54 -19
- package/src/features/help/components/__tests__/HelpAskAi.spec.tsx +1 -1
- package/src/features/help/components/__tests__/HelpHint.spec.tsx +17 -17
- package/src/features/help/components/__tests__/HelpSearchResultRow.spec.tsx +18 -19
- package/src/features/help/components/__tests__/HelpSideNav.spec.tsx +20 -22
- package/src/features/help/contexts/HelpContext.spec.tsx +1 -3
- package/src/features/help/index.ts +3 -6
- package/src/features/help/interfaces/help-content-config.interface.ts +0 -5
- package/src/features/help/server-entry.ts +6 -15
- package/src/features/help/types/help-article.types.ts +2 -4
- package/src/features/how-to/HowToModule.ts +14 -1
- package/src/features/how-to/components/forms/HowToEditor.tsx +108 -4
- package/src/features/how-to/data/HowTo.spec.ts +43 -0
- package/src/features/how-to/data/HowTo.ts +47 -4
- package/src/features/how-to/data/HowToInterface.ts +14 -1
- package/src/features/how-to/data/HowToService.ts +61 -0
- package/dist/BlockNoteEditor-3XYBZLWO.js.map +0 -1
- package/dist/chunk-3J7RQBF3.js +0 -123
- package/dist/chunk-3J7RQBF3.js.map +0 -1
- package/dist/chunk-7E3O52U5.js.map +0 -1
- package/dist/chunk-CFI4WZ5R.js.map +0 -1
- package/dist/chunk-CQID6RCF.mjs +0 -38
- package/dist/chunk-CQID6RCF.mjs.map +0 -1
- package/dist/chunk-CRTVAQEK.mjs.map +0 -1
- package/dist/chunk-MZTKPPET.mjs +0 -123
- package/dist/chunk-MZTKPPET.mjs.map +0 -1
- package/dist/chunk-UHO3KUUH.js.map +0 -1
- package/dist/chunk-YQQHAFBS.js +0 -38
- package/dist/chunk-YQQHAFBS.js.map +0 -1
- package/dist/features/help/server/createHelpAssetRouteHandler.d.mts +0 -11
- package/dist/features/help/server/createHelpAssetRouteHandler.d.ts +0 -11
- package/dist/features/help/server/createHelpAssetRouteHandler.js +0 -43
- package/dist/features/help/server/createHelpAssetRouteHandler.js.map +0 -1
- package/dist/features/help/server/createHelpAssetRouteHandler.mjs +0 -43
- package/dist/features/help/server/createHelpAssetRouteHandler.mjs.map +0 -1
- package/dist/help-content-config.interface-B9L02u9i.d.mts +0 -50
- package/dist/help-content-config.interface-B9L02u9i.d.ts +0 -50
- package/src/features/help/components/mdx/Callout.tsx +0 -21
- package/src/features/help/components/mdx/EntityRef.tsx +0 -18
- package/src/features/help/components/mdx/KeyBinding.tsx +0 -6
- package/src/features/help/components/mdx/Related.tsx +0 -33
- package/src/features/help/components/mdx/Screenshot.tsx +0 -9
- package/src/features/help/components/mdx/Steps.tsx +0 -21
- package/src/features/help/components/mdx/Video.tsx +0 -8
- package/src/features/help/components/mdx/mdx-server-components.ts +0 -23
- package/src/features/help/components/mdx/mdxComponents.ts +0 -9
- package/src/features/help/hooks/useHelpArticle.ts +0 -7
- package/src/features/help/hooks/useHelpManifest.ts +0 -5
- package/src/features/help/server/__tests__/createHelpAssetRouteHandler.spec.ts +0 -43
- package/src/features/help/server/createHelpAssetRouteHandler.ts +0 -35
- package/src/features/help/server/generateHelpArticleMetadata.ts +0 -18
- package/src/features/help/server/generateHelpArticleStaticParams.ts +0 -7
- package/src/features/help/server/generateHelpModeStaticParams.ts +0 -5
- package/src/features/help/server/getHelpContent.ts +0 -17
- package/src/features/help/server/index.ts +0 -8
- package/src/features/help/server/serializeHelpArticle.tsx +0 -46
- package/src/features/help/utils/__tests__/helpNavigation.spec.ts +0 -70
- package/src/features/help/utils/helpNavigation.ts +0 -29
package/dist/billing/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { j as StripeSubscriptionInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, M as MeterInterface, o as MeterSummaryInterface, d as StripePriceInterface, I as InvoiceStatus, g as StripeProductInterface, b as ProrationPreviewInterface, i as SubscriptionStatus, n as StripeUsageInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-C3qqh3mi.js';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { j as StripeSubscriptionInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, M as MeterInterface, o as MeterSummaryInterface, d as StripePriceInterface, I as InvoiceStatus, g as StripeProductInterface, b as ProrationPreviewInterface, i as SubscriptionStatus, n as StripeUsageInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-C3qqh3mi.js';
|
|
4
4
|
import '../ApiDataInterface-BcZeXy5X.js';
|
|
5
5
|
import '../feature.interface-BO25VLlx.js';
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ type SubscriptionSummaryCardProps = {
|
|
|
10
10
|
error?: string;
|
|
11
11
|
onManageClick: () => void;
|
|
12
12
|
};
|
|
13
|
-
declare function SubscriptionSummaryCard({ subscriptions, loading, error, onManageClick, }: SubscriptionSummaryCardProps):
|
|
13
|
+
declare function SubscriptionSummaryCard({ subscriptions, loading, error, onManageClick, }: SubscriptionSummaryCardProps): React.JSX.Element;
|
|
14
14
|
|
|
15
15
|
type PaymentMethodSummaryCardProps = {
|
|
16
16
|
paymentMethods: PaymentMethodInterface[];
|
|
@@ -19,14 +19,14 @@ type PaymentMethodSummaryCardProps = {
|
|
|
19
19
|
error?: string;
|
|
20
20
|
onManageClick: () => void;
|
|
21
21
|
};
|
|
22
|
-
declare function PaymentMethodSummaryCard({ paymentMethods, defaultPaymentMethodId, loading, error, onManageClick, }: PaymentMethodSummaryCardProps):
|
|
22
|
+
declare function PaymentMethodSummaryCard({ paymentMethods, defaultPaymentMethodId, loading, error, onManageClick, }: PaymentMethodSummaryCardProps): React.JSX.Element;
|
|
23
23
|
|
|
24
24
|
type CustomerInfoCardProps = {
|
|
25
25
|
customer: StripeCustomerInterface | null;
|
|
26
26
|
loading?: boolean;
|
|
27
27
|
error?: string;
|
|
28
28
|
};
|
|
29
|
-
declare function CustomerInfoCard({ customer, loading, error }: CustomerInfoCardProps):
|
|
29
|
+
declare function CustomerInfoCard({ customer, loading, error }: CustomerInfoCardProps): React.JSX.Element;
|
|
30
30
|
|
|
31
31
|
type InvoicesSummaryCardProps = {
|
|
32
32
|
invoices: StripeInvoiceInterface[];
|
|
@@ -34,7 +34,7 @@ type InvoicesSummaryCardProps = {
|
|
|
34
34
|
error?: string;
|
|
35
35
|
onViewAllClick: () => void;
|
|
36
36
|
};
|
|
37
|
-
declare function InvoicesSummaryCard({ invoices, loading, error, onViewAllClick }: InvoicesSummaryCardProps):
|
|
37
|
+
declare function InvoicesSummaryCard({ invoices, loading, error, onViewAllClick }: InvoicesSummaryCardProps): React.JSX.Element;
|
|
38
38
|
|
|
39
39
|
type BillingUsageSummaryCardProps = {
|
|
40
40
|
meters: MeterInterface[];
|
|
@@ -43,9 +43,9 @@ type BillingUsageSummaryCardProps = {
|
|
|
43
43
|
error?: string;
|
|
44
44
|
onViewDetailsClick: () => void;
|
|
45
45
|
};
|
|
46
|
-
declare function BillingUsageSummaryCard({ meters, summaries, loading, error, onViewDetailsClick, }: BillingUsageSummaryCardProps):
|
|
46
|
+
declare function BillingUsageSummaryCard({ meters, summaries, loading, error, onViewDetailsClick, }: BillingUsageSummaryCardProps): React.JSX.Element;
|
|
47
47
|
|
|
48
|
-
declare function BillingDashboardContainer():
|
|
48
|
+
declare function BillingDashboardContainer(): React.JSX.Element;
|
|
49
49
|
|
|
50
50
|
type BillingDetailModalProps = {
|
|
51
51
|
open: boolean;
|
|
@@ -54,11 +54,11 @@ type BillingDetailModalProps = {
|
|
|
54
54
|
children: ReactNode;
|
|
55
55
|
className?: string;
|
|
56
56
|
};
|
|
57
|
-
declare function BillingDetailModal({ open, onOpenChange, title, children, className }: BillingDetailModalProps):
|
|
57
|
+
declare function BillingDetailModal({ open, onOpenChange, title, children, className }: BillingDetailModalProps): React.JSX.Element;
|
|
58
58
|
|
|
59
59
|
declare function StripeProvider({ children }: {
|
|
60
60
|
children: ReactNode;
|
|
61
|
-
}):
|
|
61
|
+
}): React.JSX.Element;
|
|
62
62
|
declare function isStripeConfigured(): boolean;
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -87,37 +87,37 @@ type BillingAlertBannerProps = {
|
|
|
87
87
|
onUpdatePayment?: () => void;
|
|
88
88
|
onAddPayment?: () => void;
|
|
89
89
|
};
|
|
90
|
-
declare function BillingAlertBanner({ subscription, onUpdatePayment, onAddPayment }: BillingAlertBannerProps):
|
|
90
|
+
declare function BillingAlertBanner({ subscription, onUpdatePayment, onAddPayment }: BillingAlertBannerProps): React.JSX.Element | null;
|
|
91
91
|
|
|
92
|
-
declare function PaymentMethodsContainer():
|
|
92
|
+
declare function PaymentMethodsContainer(): React.JSX.Element;
|
|
93
93
|
|
|
94
94
|
type PaymentMethodCardProps = {
|
|
95
95
|
paymentMethod: PaymentMethodInterface;
|
|
96
96
|
onUpdate: () => void;
|
|
97
97
|
};
|
|
98
|
-
declare function PaymentMethodCard({ paymentMethod, onUpdate }: PaymentMethodCardProps):
|
|
98
|
+
declare function PaymentMethodCard({ paymentMethod, onUpdate }: PaymentMethodCardProps): React.JSX.Element;
|
|
99
99
|
|
|
100
100
|
type PaymentMethodEditorProps = {
|
|
101
101
|
open: boolean;
|
|
102
102
|
onOpenChange: (open: boolean) => void;
|
|
103
103
|
onSuccess: () => void;
|
|
104
104
|
};
|
|
105
|
-
declare function PaymentMethodEditor({ open, onOpenChange, onSuccess }: PaymentMethodEditorProps):
|
|
105
|
+
declare function PaymentMethodEditor({ open, onOpenChange, onSuccess }: PaymentMethodEditorProps): React.JSX.Element;
|
|
106
106
|
|
|
107
107
|
type PaymentMethodFormProps = {
|
|
108
108
|
onSuccess: () => void;
|
|
109
109
|
onCancel: () => void;
|
|
110
110
|
isLoading?: boolean;
|
|
111
111
|
};
|
|
112
|
-
declare function PaymentMethodForm({ onSuccess, onCancel, isLoading }: PaymentMethodFormProps):
|
|
112
|
+
declare function PaymentMethodForm({ onSuccess, onCancel, isLoading }: PaymentMethodFormProps): React.JSX.Element;
|
|
113
113
|
|
|
114
114
|
type PaymentMethodsListProps = {
|
|
115
115
|
paymentMethods: PaymentMethodInterface[];
|
|
116
116
|
onUpdate: () => void;
|
|
117
117
|
};
|
|
118
|
-
declare function PaymentMethodsList({ paymentMethods, onUpdate }: PaymentMethodsListProps):
|
|
118
|
+
declare function PaymentMethodsList({ paymentMethods, onUpdate }: PaymentMethodsListProps): React.JSX.Element;
|
|
119
119
|
|
|
120
|
-
declare function InvoicesContainer():
|
|
120
|
+
declare function InvoicesContainer(): React.JSX.Element;
|
|
121
121
|
|
|
122
122
|
type InvoiceDetailsProps = {
|
|
123
123
|
invoice: StripeInvoiceInterface;
|
|
@@ -125,18 +125,18 @@ type InvoiceDetailsProps = {
|
|
|
125
125
|
onOpenChange: (open: boolean) => void;
|
|
126
126
|
onInvoiceChange: () => void;
|
|
127
127
|
};
|
|
128
|
-
declare function InvoiceDetails({ invoice, open, onOpenChange, onInvoiceChange: _onInvoiceChange, }: InvoiceDetailsProps):
|
|
128
|
+
declare function InvoiceDetails({ invoice, open, onOpenChange, onInvoiceChange: _onInvoiceChange, }: InvoiceDetailsProps): React.JSX.Element;
|
|
129
129
|
|
|
130
130
|
type InvoicesListProps = {
|
|
131
131
|
invoices: StripeInvoiceInterface[];
|
|
132
132
|
onInvoicesChange: () => void;
|
|
133
133
|
};
|
|
134
|
-
declare function InvoicesList({ invoices, onInvoicesChange }: InvoicesListProps):
|
|
134
|
+
declare function InvoicesList({ invoices, onInvoicesChange }: InvoicesListProps): React.JSX.Element;
|
|
135
135
|
|
|
136
136
|
type InvoiceStatusBadgeProps = {
|
|
137
137
|
status: InvoiceStatus;
|
|
138
138
|
};
|
|
139
|
-
declare function InvoiceStatusBadge({ status }: InvoiceStatusBadgeProps):
|
|
139
|
+
declare function InvoiceStatusBadge({ status }: InvoiceStatusBadgeProps): React.JSX.Element;
|
|
140
140
|
|
|
141
141
|
type PriceEditorProps = {
|
|
142
142
|
productId: string;
|
|
@@ -145,15 +145,15 @@ type PriceEditorProps = {
|
|
|
145
145
|
onOpenChange: (open: boolean) => void;
|
|
146
146
|
onSuccess: () => void;
|
|
147
147
|
};
|
|
148
|
-
declare function PriceEditor({ productId, price, open, onOpenChange, onSuccess }: PriceEditorProps):
|
|
148
|
+
declare function PriceEditor({ productId, price, open, onOpenChange, onSuccess }: PriceEditorProps): React.JSX.Element;
|
|
149
149
|
|
|
150
150
|
type PricesListProps = {
|
|
151
151
|
productId: string;
|
|
152
152
|
onPricesChange: () => void;
|
|
153
153
|
};
|
|
154
|
-
declare function PricesList({ productId, onPricesChange }: PricesListProps):
|
|
154
|
+
declare function PricesList({ productId, onPricesChange }: PricesListProps): React.JSX.Element;
|
|
155
155
|
|
|
156
|
-
declare function ProductsAdminContainer():
|
|
156
|
+
declare function ProductsAdminContainer(): React.JSX.Element;
|
|
157
157
|
|
|
158
158
|
type ProductEditorProps = {
|
|
159
159
|
product?: StripeProductInterface;
|
|
@@ -161,19 +161,19 @@ type ProductEditorProps = {
|
|
|
161
161
|
onOpenChange: (open: boolean) => void;
|
|
162
162
|
onSuccess: () => void;
|
|
163
163
|
};
|
|
164
|
-
declare function ProductEditor({ product, open, onOpenChange, onSuccess }: ProductEditorProps):
|
|
164
|
+
declare function ProductEditor({ product, open, onOpenChange, onSuccess }: ProductEditorProps): React.JSX.Element;
|
|
165
165
|
|
|
166
166
|
type ProductsListProps = {
|
|
167
167
|
products: StripeProductInterface[];
|
|
168
168
|
onProductsChange: () => void;
|
|
169
169
|
};
|
|
170
|
-
declare function ProductsList({ products, onProductsChange }: ProductsListProps):
|
|
170
|
+
declare function ProductsList({ products, onProductsChange }: ProductsListProps): React.JSX.Element;
|
|
171
171
|
|
|
172
172
|
type SubscriptionsContainerProps = {
|
|
173
173
|
onOpenWizard?: (subscription?: StripeSubscriptionInterface) => void;
|
|
174
174
|
hasActiveRecurringSubscription?: boolean;
|
|
175
175
|
};
|
|
176
|
-
declare function SubscriptionsContainer({ onOpenWizard, hasActiveRecurringSubscription }: SubscriptionsContainerProps):
|
|
176
|
+
declare function SubscriptionsContainer({ onOpenWizard, hasActiveRecurringSubscription }: SubscriptionsContainerProps): React.JSX.Element;
|
|
177
177
|
|
|
178
178
|
type SubscriptionDetailsProps = {
|
|
179
179
|
subscription: StripeSubscriptionInterface;
|
|
@@ -182,7 +182,7 @@ type SubscriptionDetailsProps = {
|
|
|
182
182
|
onSubscriptionChange: () => void;
|
|
183
183
|
onChangePlan?: (subscription: StripeSubscriptionInterface) => void;
|
|
184
184
|
};
|
|
185
|
-
declare function SubscriptionDetails({ subscription, open, onOpenChange, onSubscriptionChange, onChangePlan, }: SubscriptionDetailsProps):
|
|
185
|
+
declare function SubscriptionDetails({ subscription, open, onOpenChange, onSubscriptionChange, onChangePlan, }: SubscriptionDetailsProps): React.JSX.Element;
|
|
186
186
|
|
|
187
187
|
type CancelSubscriptionDialogProps = {
|
|
188
188
|
subscription: StripeSubscriptionInterface;
|
|
@@ -190,14 +190,14 @@ type CancelSubscriptionDialogProps = {
|
|
|
190
190
|
onOpenChange: (open: boolean) => void;
|
|
191
191
|
onSuccess: () => void;
|
|
192
192
|
};
|
|
193
|
-
declare function CancelSubscriptionDialog({ subscription, open, onOpenChange, onSuccess, }: CancelSubscriptionDialogProps):
|
|
193
|
+
declare function CancelSubscriptionDialog({ subscription, open, onOpenChange, onSuccess, }: CancelSubscriptionDialogProps): React.JSX.Element;
|
|
194
194
|
|
|
195
195
|
type SubscriptionsListProps = {
|
|
196
196
|
subscriptions: StripeSubscriptionInterface[];
|
|
197
197
|
onSubscriptionsChange: () => void;
|
|
198
198
|
onChangePlan?: (subscription: StripeSubscriptionInterface) => void;
|
|
199
199
|
};
|
|
200
|
-
declare function SubscriptionsList({ subscriptions, onSubscriptionsChange, onChangePlan }: SubscriptionsListProps):
|
|
200
|
+
declare function SubscriptionsList({ subscriptions, onSubscriptionsChange, onChangePlan }: SubscriptionsListProps): React.JSX.Element;
|
|
201
201
|
|
|
202
202
|
type BillingInterval = "month" | "year";
|
|
203
203
|
type IntervalToggleProps = {
|
|
@@ -206,7 +206,7 @@ type IntervalToggleProps = {
|
|
|
206
206
|
hasMonthly: boolean;
|
|
207
207
|
hasYearly: boolean;
|
|
208
208
|
};
|
|
209
|
-
declare function IntervalToggle({ value, onChange, hasMonthly, hasYearly }: IntervalToggleProps):
|
|
209
|
+
declare function IntervalToggle({ value, onChange, hasMonthly, hasYearly }: IntervalToggleProps): React.JSX.Element | null;
|
|
210
210
|
|
|
211
211
|
type PricingCardProps = {
|
|
212
212
|
price: StripePriceInterface;
|
|
@@ -216,7 +216,7 @@ type PricingCardProps = {
|
|
|
216
216
|
isLoading?: boolean;
|
|
217
217
|
onSelect: (price: StripePriceInterface) => void;
|
|
218
218
|
};
|
|
219
|
-
declare function PricingCard({ price, isCurrentPlan, isSelected, isDisabled, isLoading, onSelect, }: PricingCardProps):
|
|
219
|
+
declare function PricingCard({ price, isCurrentPlan, isSelected, isDisabled, isLoading, onSelect, }: PricingCardProps): React.JSX.Element;
|
|
220
220
|
|
|
221
221
|
type ProductPricingListProps = {
|
|
222
222
|
products: StripeProductInterface[];
|
|
@@ -229,7 +229,7 @@ type ProductPricingListProps = {
|
|
|
229
229
|
hideRecurringPrices?: boolean;
|
|
230
230
|
hideOneTimePrices?: boolean;
|
|
231
231
|
};
|
|
232
|
-
declare function ProductPricingList({ products, selectedInterval, currentPriceId, selectedPriceId, loadingPriceId, loading, onSelectPrice, hideRecurringPrices, hideOneTimePrices, }: ProductPricingListProps):
|
|
232
|
+
declare function ProductPricingList({ products, selectedInterval, currentPriceId, selectedPriceId, loadingPriceId, loading, onSelectPrice, hideRecurringPrices, hideOneTimePrices, }: ProductPricingListProps): React.JSX.Element;
|
|
233
233
|
|
|
234
234
|
type ProductPricingRowProps = {
|
|
235
235
|
product: StripeProductInterface;
|
|
@@ -239,18 +239,18 @@ type ProductPricingRowProps = {
|
|
|
239
239
|
loadingPriceId?: string;
|
|
240
240
|
onSelectPrice: (price: StripePriceInterface) => void;
|
|
241
241
|
};
|
|
242
|
-
declare function ProductPricingRow({ product, prices, currentPriceId, selectedPriceId, loadingPriceId, onSelectPrice, }: ProductPricingRowProps):
|
|
242
|
+
declare function ProductPricingRow({ product, prices, currentPriceId, selectedPriceId, loadingPriceId, onSelectPrice, }: ProductPricingRowProps): React.JSX.Element | null;
|
|
243
243
|
|
|
244
244
|
type ProrationPreviewProps = {
|
|
245
245
|
preview: ProrationPreviewInterface;
|
|
246
246
|
};
|
|
247
|
-
declare function ProrationPreview({ preview }: ProrationPreviewProps):
|
|
247
|
+
declare function ProrationPreview({ preview }: ProrationPreviewProps): React.JSX.Element;
|
|
248
248
|
|
|
249
249
|
type SubscriptionStatusBadgeProps = {
|
|
250
250
|
status: SubscriptionStatus;
|
|
251
251
|
cancelAtPeriodEnd?: boolean;
|
|
252
252
|
};
|
|
253
|
-
declare function SubscriptionStatusBadge({ status, cancelAtPeriodEnd }: SubscriptionStatusBadgeProps):
|
|
253
|
+
declare function SubscriptionStatusBadge({ status, cancelAtPeriodEnd }: SubscriptionStatusBadgeProps): React.JSX.Element;
|
|
254
254
|
|
|
255
255
|
type SubscriptionConfirmationProps = {
|
|
256
256
|
price: StripePriceInterface;
|
|
@@ -258,26 +258,26 @@ type SubscriptionConfirmationProps = {
|
|
|
258
258
|
onConfirm: () => void;
|
|
259
259
|
onCancel: () => void;
|
|
260
260
|
};
|
|
261
|
-
declare function SubscriptionConfirmation({ price, isLoading, onConfirm, onCancel }: SubscriptionConfirmationProps):
|
|
261
|
+
declare function SubscriptionConfirmation({ price, isLoading, onConfirm, onCancel }: SubscriptionConfirmationProps): React.JSX.Element;
|
|
262
262
|
|
|
263
|
-
declare function UsageContainer():
|
|
263
|
+
declare function UsageContainer(): React.JSX.Element | null;
|
|
264
264
|
|
|
265
265
|
type UsageSummaryCardProps = {
|
|
266
266
|
meter: MeterInterface;
|
|
267
267
|
summary: MeterSummaryInterface | null;
|
|
268
268
|
};
|
|
269
|
-
declare function UsageSummaryCard({ meter, summary }: UsageSummaryCardProps):
|
|
269
|
+
declare function UsageSummaryCard({ meter, summary }: UsageSummaryCardProps): React.JSX.Element;
|
|
270
270
|
|
|
271
271
|
type UsageHistoryTableProps = {
|
|
272
272
|
usageRecords: StripeUsageInterface[];
|
|
273
273
|
};
|
|
274
|
-
declare function UsageHistoryTable({ usageRecords }: UsageHistoryTableProps):
|
|
274
|
+
declare function UsageHistoryTable({ usageRecords }: UsageHistoryTableProps): React.JSX.Element;
|
|
275
275
|
|
|
276
276
|
type UsageSummaryCardsProps = {
|
|
277
277
|
meters: MeterInterface[];
|
|
278
278
|
summaries: Record<string, MeterSummaryInterface | null>;
|
|
279
279
|
};
|
|
280
|
-
declare function UsageSummaryCards({ meters, summaries }: UsageSummaryCardsProps):
|
|
280
|
+
declare function UsageSummaryCards({ meters, summaries }: UsageSummaryCardsProps): React.JSX.Element;
|
|
281
281
|
|
|
282
282
|
type PromoCodeInputProps = {
|
|
283
283
|
appliedCode: PromotionCodeValidationResult | null;
|
|
@@ -287,6 +287,6 @@ type PromoCodeInputProps = {
|
|
|
287
287
|
onRemove: () => void;
|
|
288
288
|
disabled?: boolean;
|
|
289
289
|
};
|
|
290
|
-
declare function PromoCodeInput({ appliedCode, isValidating, error, onApply, onRemove, disabled, }: PromoCodeInputProps):
|
|
290
|
+
declare function PromoCodeInput({ appliedCode, isValidating, error, onApply, onRemove, disabled, }: PromoCodeInputProps): React.JSX.Element;
|
|
291
291
|
|
|
292
292
|
export { BillingAlertBanner, BillingDashboardContainer, BillingDetailModal, type BillingInterval, BillingUsageSummaryCard, CancelSubscriptionDialog, CustomerInfoCard, IntervalToggle, type IntervalToggleProps, InvoiceDetails, InvoiceStatusBadge, InvoicesContainer, InvoicesList, InvoicesSummaryCard, PaymentMethodCard, PaymentMethodEditor, PaymentMethodForm, PaymentMethodSummaryCard, PaymentMethodsContainer, PaymentMethodsList, PriceEditor, PricesList, PricingCard, type PricingCardProps, ProductEditor, ProductPricingList, type ProductPricingListProps, ProductPricingRow, type ProductPricingRowProps, ProductsAdminContainer, ProductsList, PromoCodeInput, ProrationPreview, StripeProvider, SubscriptionConfirmation, SubscriptionDetails, SubscriptionStatusBadge, SubscriptionSummaryCard, SubscriptionsContainer, SubscriptionsList, UsageContainer, UsageHistoryTable, UsageSummaryCard, UsageSummaryCards, formatCurrency, formatDate, formatInterval, isStripeConfigured };
|