@carlonicora/nextjs-jsonapi 6.4.0 → 6.6.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/{BlockNoteEditor-CT4XUXPC.js → BlockNoteEditor-E4V7AEG2.js} +19 -19
- package/dist/{BlockNoteEditor-CT4XUXPC.js.map → BlockNoteEditor-E4V7AEG2.js.map} +1 -1
- package/dist/{BlockNoteEditor-M6UQRVRK.mjs → BlockNoteEditor-MWGVWNSE.mjs} +4 -4
- package/dist/{BlockNoteViewer-MFLWF3Y2.js → BlockNoteViewer-LGRKM7OA.js} +3 -3
- package/dist/{BlockNoteViewer-MFLWF3Y2.js.map → BlockNoteViewer-LGRKM7OA.js.map} +1 -1
- package/dist/{BlockNoteViewer-XZJ5Y7WN.mjs → BlockNoteViewer-VNU7WVN5.mjs} +2 -2
- package/dist/billing/index.d.mts +174 -157
- package/dist/billing/index.d.ts +174 -157
- package/dist/billing/index.js +523 -501
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +34 -12
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-3FD6Y734.mjs → chunk-7GB5MR77.mjs} +78 -1
- package/dist/chunk-7GB5MR77.mjs.map +1 -0
- package/dist/{chunk-ELQHE2DK.js → chunk-AEVLFZRK.js} +3 -3
- package/dist/{chunk-ELQHE2DK.js.map → chunk-AEVLFZRK.js.map} +1 -1
- package/dist/{chunk-DSGP6GC3.js → chunk-AMN2XDN5.js} +8 -8
- package/dist/{chunk-DSGP6GC3.js.map → chunk-AMN2XDN5.js.map} +1 -1
- package/dist/{chunk-QJIDORHM.js → chunk-F2MZ7GY6.js} +4 -4
- package/dist/{chunk-QJIDORHM.js.map → chunk-F2MZ7GY6.js.map} +1 -1
- package/dist/{chunk-TIT4CJYQ.mjs → chunk-IDV534SJ.mjs} +5 -5
- package/dist/{chunk-DYOSXIEL.mjs → chunk-IQ2XYAB5.mjs} +2 -2
- package/dist/{chunk-XZCCIKX3.js → chunk-OJAIKQR2.js} +79 -2
- package/dist/chunk-OJAIKQR2.js.map +1 -0
- package/dist/{chunk-O2TEUH5S.mjs → chunk-PDS57QPD.mjs} +2 -2
- package/dist/{chunk-Y7JIQNM6.js → chunk-R2XBVIO5.js} +870 -870
- package/dist/{chunk-Y7JIQNM6.js.map → chunk-R2XBVIO5.js.map} +1 -1
- package/dist/{chunk-RUJCWOJE.mjs → chunk-RSMBRI3E.mjs} +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +32 -3
- package/dist/core/index.d.ts +32 -3
- package/dist/core/index.js +6 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +5 -1
- package/dist/email-automations/index.js +92 -92
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.js +121 -121
- package/dist/features/analytics/index.mjs +4 -4
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/blog/index.js +150 -150
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.js +16 -16
- package/dist/features/blog/server.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +127 -127
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/{s3.service-CzFBDEuQ.d.mts → s3.service-BNBD9YTg.d.mts} +17 -1
- package/dist/{s3.service-BTCpmp5g.d.ts → s3.service-Da7C2gtt.d.ts} +17 -1
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/core/index.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +2 -0
- package/src/features/auth/data/__tests__/pending-registration.spec.ts +37 -0
- package/src/features/auth/data/auth.service.ts +19 -0
- package/src/features/auth/data/index.ts +2 -0
- package/src/features/auth/data/pending-registration.interface.ts +10 -0
- package/src/features/auth/data/pending-registration.ts +57 -0
- package/src/features/auth/pending-registration.module.ts +9 -0
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +3 -2
- package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +5 -0
- package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +44 -12
- package/src/features/billing/stripe-subscription/components/details/__tests__/SubscriptionDetails.spec.tsx +79 -0
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +9 -2
- package/dist/chunk-3FD6Y734.mjs.map +0 -1
- package/dist/chunk-XZCCIKX3.js.map +0 -1
- /package/dist/{BlockNoteEditor-M6UQRVRK.mjs.map → BlockNoteEditor-MWGVWNSE.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-XZJ5Y7WN.mjs.map → BlockNoteViewer-VNU7WVN5.mjs.map} +0 -0
- /package/dist/{chunk-TIT4CJYQ.mjs.map → chunk-IDV534SJ.mjs.map} +0 -0
- /package/dist/{chunk-DYOSXIEL.mjs.map → chunk-IQ2XYAB5.mjs.map} +0 -0
- /package/dist/{chunk-O2TEUH5S.mjs.map → chunk-PDS57QPD.mjs.map} +0 -0
- /package/dist/{chunk-RUJCWOJE.mjs.map → chunk-RSMBRI3E.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
useCurrentUserContext,
|
|
82
82
|
useDataListRetriever,
|
|
83
83
|
usePageUrlGenerator
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-IDV534SJ.mjs";
|
|
85
85
|
import {
|
|
86
86
|
getStripePublishableKey
|
|
87
|
-
} from "../chunk-
|
|
87
|
+
} from "../chunk-RSMBRI3E.mjs";
|
|
88
88
|
import {
|
|
89
89
|
getRoleId
|
|
90
90
|
} from "../chunk-PW42LRSL.mjs";
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
toPromotionCodeResult,
|
|
115
115
|
useI18nLocale,
|
|
116
116
|
useI18nRouter
|
|
117
|
-
} from "../chunk-
|
|
117
|
+
} from "../chunk-7GB5MR77.mjs";
|
|
118
118
|
import "../chunk-V5MI7RNB.mjs";
|
|
119
119
|
import "../chunk-AUXK7QSA.mjs";
|
|
120
120
|
import "../chunk-PI56A4DG.mjs";
|
|
@@ -1317,7 +1317,8 @@ function SubscriptionDetails({
|
|
|
1317
1317
|
open,
|
|
1318
1318
|
onOpenChange,
|
|
1319
1319
|
onSubscriptionChange,
|
|
1320
|
-
onChangePlan
|
|
1320
|
+
onChangePlan,
|
|
1321
|
+
renderCancelDialog
|
|
1321
1322
|
}) {
|
|
1322
1323
|
const t = useTranslations16();
|
|
1323
1324
|
const fmt = useBillingFormatOptions();
|
|
@@ -1380,7 +1381,19 @@ function SubscriptionDetails({
|
|
|
1380
1381
|
] })
|
|
1381
1382
|
] })
|
|
1382
1383
|
] }) }),
|
|
1383
|
-
showCancel &&
|
|
1384
|
+
showCancel && (renderCancelDialog ? renderCancelDialog({
|
|
1385
|
+
subscription,
|
|
1386
|
+
open: showCancel,
|
|
1387
|
+
onOpenChange: setShowCancel,
|
|
1388
|
+
onSuccess: /* @__PURE__ */ __name(() => {
|
|
1389
|
+
onSubscriptionChange();
|
|
1390
|
+
setShowCancel(false);
|
|
1391
|
+
}, "onSuccess"),
|
|
1392
|
+
openChangePlan: onChangePlan ? () => {
|
|
1393
|
+
onChangePlan(subscription);
|
|
1394
|
+
onOpenChange(false);
|
|
1395
|
+
} : void 0
|
|
1396
|
+
}) : /* @__PURE__ */ jsx17(
|
|
1384
1397
|
CancelSubscriptionDialog,
|
|
1385
1398
|
{
|
|
1386
1399
|
subscription,
|
|
@@ -1391,7 +1404,7 @@ function SubscriptionDetails({
|
|
|
1391
1404
|
setShowCancel(false);
|
|
1392
1405
|
}
|
|
1393
1406
|
}
|
|
1394
|
-
)
|
|
1407
|
+
))
|
|
1395
1408
|
] });
|
|
1396
1409
|
}
|
|
1397
1410
|
__name(SubscriptionDetails, "SubscriptionDetails");
|
|
@@ -1417,7 +1430,12 @@ function formatPlanName3(price, t) {
|
|
|
1417
1430
|
return interval ? `${planLabel} (${interval})` : planLabel || t("billing.ui.not_available");
|
|
1418
1431
|
}
|
|
1419
1432
|
__name(formatPlanName3, "formatPlanName");
|
|
1420
|
-
function SubscriptionsList({
|
|
1433
|
+
function SubscriptionsList({
|
|
1434
|
+
subscriptions,
|
|
1435
|
+
onSubscriptionsChange,
|
|
1436
|
+
onChangePlan,
|
|
1437
|
+
renderCancelDialog
|
|
1438
|
+
}) {
|
|
1421
1439
|
const t = useTranslations17();
|
|
1422
1440
|
const fmt = useBillingFormatOptions();
|
|
1423
1441
|
const [selectedSub, setSelectedSub] = useState9(null);
|
|
@@ -1488,7 +1506,8 @@ function SubscriptionsList({ subscriptions, onSubscriptionsChange, onChangePlan
|
|
|
1488
1506
|
onChangePlan: onChangePlan ? (sub) => {
|
|
1489
1507
|
setSelectedSub(null);
|
|
1490
1508
|
onChangePlan(sub);
|
|
1491
|
-
} : void 0
|
|
1509
|
+
} : void 0,
|
|
1510
|
+
renderCancelDialog
|
|
1492
1511
|
}
|
|
1493
1512
|
)
|
|
1494
1513
|
] });
|
|
@@ -1501,7 +1520,8 @@ function SubscriptionsContainer({
|
|
|
1501
1520
|
onOpenWizard,
|
|
1502
1521
|
hasActiveRecurringSubscription,
|
|
1503
1522
|
subscriptions: parentSubscriptions,
|
|
1504
|
-
onSubscriptionsChange
|
|
1523
|
+
onSubscriptionsChange,
|
|
1524
|
+
renderCancelDialog
|
|
1505
1525
|
}) {
|
|
1506
1526
|
const t = useTranslations18();
|
|
1507
1527
|
const isControlled = parentSubscriptions !== void 0;
|
|
@@ -1555,7 +1575,8 @@ function SubscriptionsContainer({
|
|
|
1555
1575
|
{
|
|
1556
1576
|
subscriptions,
|
|
1557
1577
|
onSubscriptionsChange: loadSubscriptions,
|
|
1558
|
-
onChangePlan: (sub) => onOpenWizard?.(sub)
|
|
1578
|
+
onChangePlan: (sub) => onOpenWizard?.(sub),
|
|
1579
|
+
renderCancelDialog
|
|
1559
1580
|
}
|
|
1560
1581
|
)
|
|
1561
1582
|
] });
|
|
@@ -2996,7 +3017,7 @@ __name(BillingAlertBanner, "BillingAlertBanner");
|
|
|
2996
3017
|
|
|
2997
3018
|
// src/features/billing/components/containers/BillingDashboardContainer.tsx
|
|
2998
3019
|
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2999
|
-
function BillingDashboardContainer() {
|
|
3020
|
+
function BillingDashboardContainer({ renderCancelDialog } = {}) {
|
|
3000
3021
|
const t = useTranslations37();
|
|
3001
3022
|
const [data, setData] = useState16({
|
|
3002
3023
|
customer: null,
|
|
@@ -3316,7 +3337,8 @@ function BillingDashboardContainer() {
|
|
|
3316
3337
|
onOpenWizard: handleOpenWizard,
|
|
3317
3338
|
hasActiveRecurringSubscription,
|
|
3318
3339
|
subscriptions: data.subscriptions,
|
|
3319
|
-
onSubscriptionsChange: refreshData
|
|
3340
|
+
onSubscriptionsChange: refreshData,
|
|
3341
|
+
renderCancelDialog
|
|
3320
3342
|
}
|
|
3321
3343
|
)
|
|
3322
3344
|
}
|