@carlonicora/nextjs-jsonapi 5.7.0 → 5.7.2
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-ZHXXFWUJ.js → BlockNoteEditor-G45WMJ5V.js} +19 -19
- package/dist/{BlockNoteEditor-ZHXXFWUJ.js.map → BlockNoteEditor-G45WMJ5V.js.map} +1 -1
- package/dist/{BlockNoteEditor-R3WXUFHX.mjs → BlockNoteEditor-R3745ALQ.mjs} +4 -4
- package/dist/{BlockNoteViewer-SD3ZFIXD.js → BlockNoteViewer-5PGOVURC.js} +3 -3
- package/dist/{BlockNoteViewer-SD3ZFIXD.js.map → BlockNoteViewer-5PGOVURC.js.map} +1 -1
- package/dist/{BlockNoteViewer-BVVN6D3T.mjs → BlockNoteViewer-TNK3OMH5.mjs} +2 -2
- package/dist/billing/index.d.mts +6 -5
- package/dist/billing/index.d.ts +6 -5
- package/dist/billing/index.js +496 -494
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +8 -6
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-5TH2DSAH.js → chunk-3CSPHMVK.js} +2 -3
- package/dist/chunk-3CSPHMVK.js.map +1 -0
- package/dist/{chunk-OKCV4GPJ.mjs → chunk-6KAYEYFU.mjs} +2 -2
- package/dist/{chunk-FK26NX3S.mjs → chunk-CJS5WA4E.mjs} +1 -2
- package/dist/chunk-CJS5WA4E.mjs.map +1 -0
- package/dist/{chunk-XOSC3FFP.js → chunk-CP7BXAFH.js} +8 -8
- package/dist/{chunk-XOSC3FFP.js.map → chunk-CP7BXAFH.js.map} +1 -1
- package/dist/{chunk-ZCOPOO7T.js → chunk-EXG4ANC7.js} +875 -873
- package/dist/chunk-EXG4ANC7.js.map +1 -0
- package/dist/{chunk-CFB6FHIY.mjs → chunk-JCNB5KTQ.mjs} +14 -12
- package/dist/chunk-JCNB5KTQ.mjs.map +1 -0
- package/dist/{chunk-RGQYFSJF.mjs → chunk-KOA5PZZA.mjs} +2 -2
- package/dist/{chunk-WCHLCOZG.mjs → chunk-RJMLAW5O.mjs} +2 -2
- package/dist/{chunk-IJME5SAM.js → chunk-WU47MIZZ.js} +4 -4
- package/dist/{chunk-IJME5SAM.js.map → chunk-WU47MIZZ.js.map} +1 -1
- package/dist/{chunk-2TXE57LE.js → chunk-YG4YFAYY.js} +3 -3
- package/dist/{chunk-2TXE57LE.js.map → chunk-YG4YFAYY.js.map} +1 -1
- 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 +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/{currency-pK9eRYRC.d.ts → currency-8ErEC39n.d.ts} +3 -2
- package/dist/{currency-DT_dveBx.d.mts → currency-DrEVd_Xs.d.mts} +3 -2
- 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 +124 -124
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/features/billing/components/utils/__tests__/billing-formatters.spec.ts +13 -2
- package/src/features/billing/components/utils/date.ts +7 -5
- package/src/features/billing/components/utils/format-options.ts +4 -2
- package/src/features/billing/stripe-coupon/components/containers/CouponContainer.tsx +2 -2
- package/src/features/billing/stripe-coupon/components/forms/CouponEditor.tsx +1 -11
- package/src/features/billing/stripe-coupon/utils/__tests__/coupon-page-module.spec.ts +32 -0
- package/src/features/billing/stripe-coupon/utils/coupon-page-module.ts +13 -0
- package/src/features/billing/stripe-usage/components/details/UsageSummaryCard.tsx +2 -1
- package/src/features/billing/stripe-usage/components/lists/UsageHistoryTable.tsx +2 -1
- package/src/features/oauth/components/OAuthClientDetail.tsx +2 -1
- package/dist/chunk-5TH2DSAH.js.map +0 -1
- package/dist/chunk-CFB6FHIY.mjs.map +0 -1
- package/dist/chunk-FK26NX3S.mjs.map +0 -1
- package/dist/chunk-ZCOPOO7T.js.map +0 -1
- /package/dist/{BlockNoteEditor-R3WXUFHX.mjs.map → BlockNoteEditor-R3745ALQ.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-BVVN6D3T.mjs.map → BlockNoteViewer-TNK3OMH5.mjs.map} +0 -0
- /package/dist/{chunk-OKCV4GPJ.mjs.map → chunk-6KAYEYFU.mjs.map} +0 -0
- /package/dist/{chunk-RGQYFSJF.mjs.map → chunk-KOA5PZZA.mjs.map} +0 -0
- /package/dist/{chunk-WCHLCOZG.mjs.map → chunk-RJMLAW5O.mjs.map} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isReferralEnabled,
|
|
17
17
|
isRegistrationAllowed,
|
|
18
18
|
useWaitlistText
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RJMLAW5O.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getRoleId,
|
|
22
22
|
isRolesConfigured
|
|
@@ -33,7 +33,6 @@ import {
|
|
|
33
33
|
ClientAbstractService,
|
|
34
34
|
CompanyService,
|
|
35
35
|
ContentService,
|
|
36
|
-
DEFAULT_BILLING_LOCALE,
|
|
37
36
|
DEFAULT_GRANT_TYPES,
|
|
38
37
|
EndpointCreator,
|
|
39
38
|
FeatureService,
|
|
@@ -97,7 +96,7 @@ import {
|
|
|
97
96
|
useIsMobile,
|
|
98
97
|
validateItalianTaxCode,
|
|
99
98
|
validatePartitaIva
|
|
100
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-CJS5WA4E.mjs";
|
|
101
100
|
import {
|
|
102
101
|
ENV
|
|
103
102
|
} from "./chunk-V5MI7RNB.mjs";
|
|
@@ -10711,7 +10710,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10711
10710
|
import dynamic from "next/dynamic";
|
|
10712
10711
|
import React18 from "react";
|
|
10713
10712
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
10714
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10713
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-R3745ALQ.mjs"), {
|
|
10715
10714
|
ssr: false
|
|
10716
10715
|
});
|
|
10717
10716
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -16918,7 +16917,7 @@ __name(BlockNoteEditorMentionSuggestionMenu, "BlockNoteEditorMentionSuggestionMe
|
|
|
16918
16917
|
import dynamic2 from "next/dynamic";
|
|
16919
16918
|
import React29 from "react";
|
|
16920
16919
|
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
16921
|
-
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-
|
|
16920
|
+
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-TNK3OMH5.mjs").then((m) => m.BlockNoteViewer), { ssr: false });
|
|
16922
16921
|
var BlockNoteViewerContainer = React29.memo(/* @__PURE__ */ __name(function ViewerContainer(props) {
|
|
16923
16922
|
return /* @__PURE__ */ jsx177(BlockNoteViewer, { ...props });
|
|
16924
16923
|
}, "ViewerContainer"));
|
|
@@ -17603,7 +17602,7 @@ function formatDate2(date, options = {}) {
|
|
|
17603
17602
|
if (!date) return t ? t("billing.ui.not_available") : "N/A";
|
|
17604
17603
|
const dateObj = typeof date === "string" ? new Date(date) : date;
|
|
17605
17604
|
try {
|
|
17606
|
-
return new Intl.DateTimeFormat(locale
|
|
17605
|
+
return new Intl.DateTimeFormat(dateFormatLocale(locale), {
|
|
17607
17606
|
month: "short",
|
|
17608
17607
|
day: "numeric",
|
|
17609
17608
|
year: "numeric"
|
|
@@ -17967,6 +17966,12 @@ import { useForm as useForm5 } from "react-hook-form";
|
|
|
17967
17966
|
import { v4 as v45 } from "uuid";
|
|
17968
17967
|
import { z as z5 } from "zod";
|
|
17969
17968
|
|
|
17969
|
+
// src/features/billing/stripe-coupon/utils/coupon-page-module.ts
|
|
17970
|
+
function couponPageModule() {
|
|
17971
|
+
return { ...Modules.StripeCoupon, pageUrl: STRIPE_COUPON_DETAIL_PAGE_URL };
|
|
17972
|
+
}
|
|
17973
|
+
__name(couponPageModule, "couponPageModule");
|
|
17974
|
+
|
|
17970
17975
|
// src/features/billing/stripe-coupon/components/forms/CouponCodeFields.tsx
|
|
17971
17976
|
import { useTranslations as useTranslations72 } from "next-intl";
|
|
17972
17977
|
import { useState as useState62 } from "react";
|
|
@@ -18217,10 +18222,6 @@ function toCouponInput(values) {
|
|
|
18217
18222
|
return payload;
|
|
18218
18223
|
}
|
|
18219
18224
|
__name(toCouponInput, "toCouponInput");
|
|
18220
|
-
function couponPageModule() {
|
|
18221
|
-
return { ...Modules.StripeCoupon, pageUrl: STRIPE_COUPON_DETAIL_PAGE_URL };
|
|
18222
|
-
}
|
|
18223
|
-
__name(couponPageModule, "couponPageModule");
|
|
18224
18225
|
function CouponRenameEditor({
|
|
18225
18226
|
coupon,
|
|
18226
18227
|
propagateChanges,
|
|
@@ -27431,7 +27432,7 @@ function OAuthClientDetail({
|
|
|
27431
27432
|
setShowRegenerateConfirm(false);
|
|
27432
27433
|
}
|
|
27433
27434
|
}, [onRegenerateSecret]);
|
|
27434
|
-
const createdDate = client.createdAt ? new Date(client.createdAt).toLocaleDateString(locale, { dateStyle: "long" }) : t("oauth.ui.card.unknown");
|
|
27435
|
+
const createdDate = client.createdAt ? new Date(client.createdAt).toLocaleDateString(dateFormatLocale(locale), { dateStyle: "long" }) : t("oauth.ui.card.unknown");
|
|
27435
27436
|
return /* @__PURE__ */ jsxs185(Fragment63, { children: [
|
|
27436
27437
|
/* @__PURE__ */ jsxs185(Card, { children: [
|
|
27437
27438
|
/* @__PURE__ */ jsx308(CardHeader, { children: /* @__PURE__ */ jsxs185("div", { className: "flex items-start justify-between", children: [
|
|
@@ -29376,6 +29377,7 @@ export {
|
|
|
29376
29377
|
subscriptionDiscount,
|
|
29377
29378
|
applyDiscount,
|
|
29378
29379
|
CouponRefresher,
|
|
29380
|
+
couponPageModule,
|
|
29379
29381
|
parseOptionalPositiveInt,
|
|
29380
29382
|
parseOptionalDecimal,
|
|
29381
29383
|
optionalPositiveInt,
|
|
@@ -29394,4 +29396,4 @@ export {
|
|
|
29394
29396
|
useOAuthClients,
|
|
29395
29397
|
useOAuthClient
|
|
29396
29398
|
};
|
|
29397
|
-
//# sourceMappingURL=chunk-
|
|
29399
|
+
//# sourceMappingURL=chunk-JCNB5KTQ.mjs.map
|