@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.
Files changed (81) hide show
  1. package/dist/{BlockNoteEditor-ZHXXFWUJ.js → BlockNoteEditor-G45WMJ5V.js} +19 -19
  2. package/dist/{BlockNoteEditor-ZHXXFWUJ.js.map → BlockNoteEditor-G45WMJ5V.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-R3WXUFHX.mjs → BlockNoteEditor-R3745ALQ.mjs} +4 -4
  4. package/dist/{BlockNoteViewer-SD3ZFIXD.js → BlockNoteViewer-5PGOVURC.js} +3 -3
  5. package/dist/{BlockNoteViewer-SD3ZFIXD.js.map → BlockNoteViewer-5PGOVURC.js.map} +1 -1
  6. package/dist/{BlockNoteViewer-BVVN6D3T.mjs → BlockNoteViewer-TNK3OMH5.mjs} +2 -2
  7. package/dist/billing/index.d.mts +6 -5
  8. package/dist/billing/index.d.ts +6 -5
  9. package/dist/billing/index.js +496 -494
  10. package/dist/billing/index.js.map +1 -1
  11. package/dist/billing/index.mjs +8 -6
  12. package/dist/billing/index.mjs.map +1 -1
  13. package/dist/{chunk-5TH2DSAH.js → chunk-3CSPHMVK.js} +2 -3
  14. package/dist/chunk-3CSPHMVK.js.map +1 -0
  15. package/dist/{chunk-OKCV4GPJ.mjs → chunk-6KAYEYFU.mjs} +2 -2
  16. package/dist/{chunk-FK26NX3S.mjs → chunk-CJS5WA4E.mjs} +1 -2
  17. package/dist/chunk-CJS5WA4E.mjs.map +1 -0
  18. package/dist/{chunk-XOSC3FFP.js → chunk-CP7BXAFH.js} +8 -8
  19. package/dist/{chunk-XOSC3FFP.js.map → chunk-CP7BXAFH.js.map} +1 -1
  20. package/dist/{chunk-ZCOPOO7T.js → chunk-EXG4ANC7.js} +875 -873
  21. package/dist/chunk-EXG4ANC7.js.map +1 -0
  22. package/dist/{chunk-CFB6FHIY.mjs → chunk-JCNB5KTQ.mjs} +14 -12
  23. package/dist/chunk-JCNB5KTQ.mjs.map +1 -0
  24. package/dist/{chunk-RGQYFSJF.mjs → chunk-KOA5PZZA.mjs} +2 -2
  25. package/dist/{chunk-WCHLCOZG.mjs → chunk-RJMLAW5O.mjs} +2 -2
  26. package/dist/{chunk-IJME5SAM.js → chunk-WU47MIZZ.js} +4 -4
  27. package/dist/{chunk-IJME5SAM.js.map → chunk-WU47MIZZ.js.map} +1 -1
  28. package/dist/{chunk-2TXE57LE.js → chunk-YG4YFAYY.js} +3 -3
  29. package/dist/{chunk-2TXE57LE.js.map → chunk-YG4YFAYY.js.map} +1 -1
  30. package/dist/client/index.js +4 -4
  31. package/dist/client/index.mjs +3 -3
  32. package/dist/components/index.js +4 -4
  33. package/dist/components/index.mjs +3 -3
  34. package/dist/contexts/index.js +4 -4
  35. package/dist/contexts/index.mjs +3 -3
  36. package/dist/core/index.d.mts +2 -2
  37. package/dist/core/index.d.ts +2 -2
  38. package/dist/core/index.js +2 -2
  39. package/dist/core/index.mjs +1 -1
  40. package/dist/{currency-pK9eRYRC.d.ts → currency-8ErEC39n.d.ts} +3 -2
  41. package/dist/{currency-DT_dveBx.d.mts → currency-DrEVd_Xs.d.mts} +3 -2
  42. package/dist/email-automations/index.js +92 -92
  43. package/dist/email-automations/index.mjs +3 -3
  44. package/dist/features/analytics/index.js +121 -121
  45. package/dist/features/analytics/index.mjs +4 -4
  46. package/dist/features/analytics/server.js +4 -4
  47. package/dist/features/analytics/server.mjs +2 -2
  48. package/dist/features/blog/index.js +150 -150
  49. package/dist/features/blog/index.mjs +3 -3
  50. package/dist/features/blog/server.js +16 -16
  51. package/dist/features/blog/server.mjs +1 -1
  52. package/dist/features/help/index.js +37 -37
  53. package/dist/features/help/index.mjs +3 -3
  54. package/dist/features/tokenusage/index.js +124 -124
  55. package/dist/features/tokenusage/index.mjs +4 -4
  56. package/dist/index.d.mts +1 -1
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +3 -3
  59. package/dist/index.mjs +2 -2
  60. package/dist/server/index.js +3 -3
  61. package/dist/server/index.mjs +2 -2
  62. package/package.json +1 -1
  63. package/src/features/billing/components/utils/__tests__/billing-formatters.spec.ts +13 -2
  64. package/src/features/billing/components/utils/date.ts +7 -5
  65. package/src/features/billing/components/utils/format-options.ts +4 -2
  66. package/src/features/billing/stripe-coupon/components/containers/CouponContainer.tsx +2 -2
  67. package/src/features/billing/stripe-coupon/components/forms/CouponEditor.tsx +1 -11
  68. package/src/features/billing/stripe-coupon/utils/__tests__/coupon-page-module.spec.ts +32 -0
  69. package/src/features/billing/stripe-coupon/utils/coupon-page-module.ts +13 -0
  70. package/src/features/billing/stripe-usage/components/details/UsageSummaryCard.tsx +2 -1
  71. package/src/features/billing/stripe-usage/components/lists/UsageHistoryTable.tsx +2 -1
  72. package/src/features/oauth/components/OAuthClientDetail.tsx +2 -1
  73. package/dist/chunk-5TH2DSAH.js.map +0 -1
  74. package/dist/chunk-CFB6FHIY.mjs.map +0 -1
  75. package/dist/chunk-FK26NX3S.mjs.map +0 -1
  76. package/dist/chunk-ZCOPOO7T.js.map +0 -1
  77. /package/dist/{BlockNoteEditor-R3WXUFHX.mjs.map → BlockNoteEditor-R3745ALQ.mjs.map} +0 -0
  78. /package/dist/{BlockNoteViewer-BVVN6D3T.mjs.map → BlockNoteViewer-TNK3OMH5.mjs.map} +0 -0
  79. /package/dist/{chunk-OKCV4GPJ.mjs.map → chunk-6KAYEYFU.mjs.map} +0 -0
  80. /package/dist/{chunk-RGQYFSJF.mjs.map → chunk-KOA5PZZA.mjs.map} +0 -0
  81. /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-WCHLCOZG.mjs";
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-FK26NX3S.mjs";
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-R3WXUFHX.mjs"), {
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-BVVN6D3T.mjs").then((m) => m.BlockNoteViewer), { ssr: false });
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 ?? DEFAULT_BILLING_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-CFB6FHIY.mjs.map
29399
+ //# sourceMappingURL=chunk-JCNB5KTQ.mjs.map