@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
package/dist/billing/index.mjs
CHANGED
|
@@ -65,6 +65,7 @@ import {
|
|
|
65
65
|
couponCodeDefaults,
|
|
66
66
|
couponCodeSchema,
|
|
67
67
|
couponCurrencyOptions,
|
|
68
|
+
couponPageModule,
|
|
68
69
|
errorToast,
|
|
69
70
|
formatDate,
|
|
70
71
|
optionalDate,
|
|
@@ -80,10 +81,10 @@ import {
|
|
|
80
81
|
useCurrentUserContext,
|
|
81
82
|
useDataListRetriever,
|
|
82
83
|
usePageUrlGenerator
|
|
83
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-JCNB5KTQ.mjs";
|
|
84
85
|
import {
|
|
85
86
|
getStripePublishableKey
|
|
86
|
-
} from "../chunk-
|
|
87
|
+
} from "../chunk-RJMLAW5O.mjs";
|
|
87
88
|
import {
|
|
88
89
|
getRoleId
|
|
89
90
|
} from "../chunk-PW42LRSL.mjs";
|
|
@@ -102,6 +103,7 @@ import {
|
|
|
102
103
|
StripeUsageService,
|
|
103
104
|
SubscriptionStatus,
|
|
104
105
|
cn,
|
|
106
|
+
dateFormatLocale,
|
|
105
107
|
formatCouponDiscount,
|
|
106
108
|
formatCurrency,
|
|
107
109
|
formatFixed,
|
|
@@ -111,7 +113,7 @@ import {
|
|
|
111
113
|
toPromotionCodeResult,
|
|
112
114
|
useI18nLocale,
|
|
113
115
|
useI18nRouter
|
|
114
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-CJS5WA4E.mjs";
|
|
115
117
|
import "../chunk-V5MI7RNB.mjs";
|
|
116
118
|
import "../chunk-AUXK7QSA.mjs";
|
|
117
119
|
import "../chunk-PI56A4DG.mjs";
|
|
@@ -2790,7 +2792,7 @@ __name(getProgressColor, "getProgressColor");
|
|
|
2790
2792
|
function formatDate2(date, { locale, t }) {
|
|
2791
2793
|
if (!date) return t("billing.ui.not_available");
|
|
2792
2794
|
try {
|
|
2793
|
-
return new Intl.DateTimeFormat(locale, {
|
|
2795
|
+
return new Intl.DateTimeFormat(dateFormatLocale(locale), {
|
|
2794
2796
|
month: "short",
|
|
2795
2797
|
day: "numeric"
|
|
2796
2798
|
}).format(new Date(date));
|
|
@@ -2922,7 +2924,7 @@ function formatDateTime(date, { locale, t }) {
|
|
|
2922
2924
|
if (!date) return t("billing.ui.not_available");
|
|
2923
2925
|
const dateObj = typeof date === "string" ? new Date(date) : date;
|
|
2924
2926
|
try {
|
|
2925
|
-
return new Intl.DateTimeFormat(locale, {
|
|
2927
|
+
return new Intl.DateTimeFormat(dateFormatLocale(locale), {
|
|
2926
2928
|
month: "short",
|
|
2927
2929
|
day: "numeric",
|
|
2928
2930
|
year: "numeric",
|
|
@@ -4971,7 +4973,7 @@ function CouponContainer() {
|
|
|
4971
4973
|
return /* @__PURE__ */ jsx57(
|
|
4972
4974
|
RoundPageContainer,
|
|
4973
4975
|
{
|
|
4974
|
-
module:
|
|
4976
|
+
module: couponPageModule(),
|
|
4975
4977
|
id: coupon.id,
|
|
4976
4978
|
tabs: [
|
|
4977
4979
|
{
|