@carlonicora/nextjs-jsonapi 6.12.0 → 6.12.1
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/{AbstractService-Ckm2X5fW.d.mts → AbstractService-N0wFgaHD.d.mts} +1 -1
- package/dist/{AbstractService-V3VGQMhL.d.ts → AbstractService-kNAykPDk.d.ts} +1 -1
- package/dist/{BlockNoteEditor-R2SLOYS6.js → BlockNoteEditor-CBYKEXAQ.js} +19 -19
- package/dist/{BlockNoteEditor-R2SLOYS6.js.map → BlockNoteEditor-CBYKEXAQ.js.map} +1 -1
- package/dist/{BlockNoteEditor-ZJPGGUQQ.mjs → BlockNoteEditor-N2NBYCPC.mjs} +4 -4
- package/dist/{BlockNoteViewer-UCA3LV3N.mjs → BlockNoteViewer-MTGS6YJV.mjs} +2 -2
- package/dist/{BlockNoteViewer-FLUHEXE6.js → BlockNoteViewer-WGCDB7IJ.js} +3 -3
- package/dist/{BlockNoteViewer-FLUHEXE6.js.map → BlockNoteViewer-WGCDB7IJ.js.map} +1 -1
- package/dist/billing/index.js +491 -491
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-6RLATJ2L.mjs → chunk-4FNGWALA.mjs} +2 -2
- package/dist/{chunk-BXR36J25.js → chunk-6NZKWIOR.js} +908 -908
- package/dist/{chunk-BXR36J25.js.map → chunk-6NZKWIOR.js.map} +1 -1
- package/dist/{chunk-SQUMPLNN.mjs → chunk-6XJOQFCP.mjs} +5 -5
- package/dist/{chunk-BGLOFZ3K.mjs → chunk-AA52ORW2.mjs} +11 -15
- package/dist/chunk-AA52ORW2.mjs.map +1 -0
- package/dist/{chunk-YP6W4AB5.mjs → chunk-EWCY6QJA.mjs} +2 -2
- package/dist/{chunk-YGEOX2XX.js → chunk-FF4EIQ6H.js} +11 -15
- package/dist/chunk-FF4EIQ6H.js.map +1 -0
- package/dist/{chunk-FNPXCYHO.js → chunk-L6PYFQTO.js} +8 -8
- package/dist/{chunk-FNPXCYHO.js.map → chunk-L6PYFQTO.js.map} +1 -1
- package/dist/{chunk-OHJSI6L2.js → chunk-O3PDL2CV.js} +4 -4
- package/dist/{chunk-OHJSI6L2.js.map → chunk-O3PDL2CV.js.map} +1 -1
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +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 +7 -7
- package/dist/core/index.d.ts +7 -7
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/email-automations/index.js +93 -93
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.d.mts +1 -1
- package/dist/features/analytics/index.d.ts +1 -1
- package/dist/features/analytics/index.js +120 -120
- package/dist/features/analytics/index.mjs +3 -3
- 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.d.mts +1 -1
- package/dist/features/tokenusage/index.d.ts +1 -1
- package/dist/features/tokenusage/index.js +126 -126
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{referral-admin.interface-CMwl5NiV.d.ts → referral-admin.interface-CnytdDaQ.d.ts} +1 -1
- package/dist/{referral-admin.interface-C87ApGMR.d.mts → referral-admin.interface-RVO-ZTJz.d.mts} +1 -1
- package/dist/{s3.service-BG136Btz.d.mts → s3.service-CeUsKm-d.d.mts} +1 -1
- package/dist/{s3.service-CsrsRPRn.d.ts → s3.service-SkZnngeR.d.ts} +1 -1
- package/dist/server/index.d.mts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/core/abstracts/AbstractService.ts +5 -11
- package/src/core/abstracts/ClientAbstractService.ts +5 -11
- package/src/core/abstracts/__tests__/AbstractService.locale.spec.ts +43 -0
- package/src/core/abstracts/__tests__/ClientAbstractService.locale.spec.ts +69 -0
- package/src/i18n/__tests__/config.spec.ts +22 -1
- package/src/i18n/config.ts +5 -0
- package/src/i18n/index.ts +1 -0
- package/dist/chunk-BGLOFZ3K.mjs.map +0 -1
- package/dist/chunk-YGEOX2XX.js.map +0 -1
- /package/dist/{BlockNoteEditor-ZJPGGUQQ.mjs.map → BlockNoteEditor-N2NBYCPC.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-UCA3LV3N.mjs.map → BlockNoteViewer-MTGS6YJV.mjs.map} +0 -0
- /package/dist/{chunk-6RLATJ2L.mjs.map → chunk-4FNGWALA.mjs.map} +0 -0
- /package/dist/{chunk-SQUMPLNN.mjs.map → chunk-6XJOQFCP.mjs.map} +0 -0
- /package/dist/{chunk-YP6W4AB5.mjs.map → chunk-EWCY6QJA.mjs.map} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isReferralEnabled,
|
|
17
17
|
isRegistrationAllowed,
|
|
18
18
|
useWaitlistText
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4FNGWALA.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getRoleId,
|
|
22
22
|
isRolesConfigured
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
useIsMobile,
|
|
104
104
|
validateItalianTaxCode,
|
|
105
105
|
validatePartitaIva
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-AA52ORW2.mjs";
|
|
107
107
|
import {
|
|
108
108
|
ENV
|
|
109
109
|
} from "./chunk-V5MI7RNB.mjs";
|
|
@@ -10840,7 +10840,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10840
10840
|
import dynamic from "next/dynamic";
|
|
10841
10841
|
import React18 from "react";
|
|
10842
10842
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10843
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10843
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-N2NBYCPC.mjs"), {
|
|
10844
10844
|
ssr: false
|
|
10845
10845
|
});
|
|
10846
10846
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -17049,7 +17049,7 @@ __name(BlockNoteEditorMentionSuggestionMenu, "BlockNoteEditorMentionSuggestionMe
|
|
|
17049
17049
|
import dynamic2 from "next/dynamic";
|
|
17050
17050
|
import React29 from "react";
|
|
17051
17051
|
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
17052
|
-
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-
|
|
17052
|
+
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-MTGS6YJV.mjs").then((m) => m.BlockNoteViewer), { ssr: false });
|
|
17053
17053
|
var BlockNoteViewerContainer = React29.memo(/* @__PURE__ */ __name(function ViewerContainer(props) {
|
|
17054
17054
|
return /* @__PURE__ */ jsx178(BlockNoteViewer, { ...props });
|
|
17055
17055
|
}, "ViewerContainer"));
|
|
@@ -30751,4 +30751,4 @@ export {
|
|
|
30751
30751
|
useOAuthClients,
|
|
30752
30752
|
useOAuthClient
|
|
30753
30753
|
};
|
|
30754
|
-
//# sourceMappingURL=chunk-
|
|
30754
|
+
//# sourceMappingURL=chunk-6XJOQFCP.mjs.map
|
|
@@ -336,6 +336,10 @@ function getI18nSupportedLocales() {
|
|
|
336
336
|
return ["en"];
|
|
337
337
|
}
|
|
338
338
|
__name(getI18nSupportedLocales, "getI18nSupportedLocales");
|
|
339
|
+
function getI18nDefaultLocale() {
|
|
340
|
+
return getI18nSupportedLocales()[0];
|
|
341
|
+
}
|
|
342
|
+
__name(getI18nDefaultLocale, "getI18nDefaultLocale");
|
|
339
343
|
|
|
340
344
|
// src/core/abstracts/AbstractService.ts
|
|
341
345
|
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
@@ -362,11 +366,11 @@ var AbstractService = class {
|
|
|
362
366
|
/**
|
|
363
367
|
* Extract locale from client-side URL pathname
|
|
364
368
|
* URL structure: /{locale}/route-path (e.g., /it/accounts)
|
|
365
|
-
* Fallback chain: URL locale →
|
|
369
|
+
* Fallback chain: URL locale → the app's default locale (first supported locale)
|
|
366
370
|
*/
|
|
367
371
|
static getClientLocale() {
|
|
368
372
|
if (typeof window === "undefined") {
|
|
369
|
-
return
|
|
373
|
+
return getI18nDefaultLocale();
|
|
370
374
|
}
|
|
371
375
|
const pathSegments = window.location.pathname.split("/").filter(Boolean);
|
|
372
376
|
const urlLocale = pathSegments[0];
|
|
@@ -374,11 +378,7 @@ var AbstractService = class {
|
|
|
374
378
|
if (urlLocale && supportedLocales.includes(urlLocale)) {
|
|
375
379
|
return urlLocale;
|
|
376
380
|
}
|
|
377
|
-
|
|
378
|
-
if (navigatorLocale && supportedLocales.includes(navigatorLocale)) {
|
|
379
|
-
return navigatorLocale;
|
|
380
|
-
}
|
|
381
|
-
return "en";
|
|
381
|
+
return getI18nDefaultLocale();
|
|
382
382
|
}
|
|
383
383
|
static async next(params) {
|
|
384
384
|
return await this.callApi({
|
|
@@ -825,11 +825,11 @@ var ClientAbstractService = class {
|
|
|
825
825
|
/**
|
|
826
826
|
* Extract locale from client-side URL pathname
|
|
827
827
|
* URL structure: /{locale}/route-path (e.g., /it/accounts)
|
|
828
|
-
* Fallback chain: URL locale →
|
|
828
|
+
* Fallback chain: URL locale → the app's default locale (first supported locale)
|
|
829
829
|
*/
|
|
830
830
|
static getClientLocale() {
|
|
831
831
|
if (typeof window === "undefined") {
|
|
832
|
-
return
|
|
832
|
+
return getI18nDefaultLocale();
|
|
833
833
|
}
|
|
834
834
|
const pathSegments = window.location.pathname.split("/").filter(Boolean);
|
|
835
835
|
const urlLocale = pathSegments[0];
|
|
@@ -837,11 +837,7 @@ var ClientAbstractService = class {
|
|
|
837
837
|
if (urlLocale && supportedLocales.includes(urlLocale)) {
|
|
838
838
|
return urlLocale;
|
|
839
839
|
}
|
|
840
|
-
|
|
841
|
-
if (navigatorLocale && supportedLocales.includes(navigatorLocale)) {
|
|
842
|
-
return navigatorLocale;
|
|
843
|
-
}
|
|
844
|
-
return "en";
|
|
840
|
+
return getI18nDefaultLocale();
|
|
845
841
|
}
|
|
846
842
|
/**
|
|
847
843
|
* Fetch the next page of results.
|
|
@@ -13281,4 +13277,4 @@ export {
|
|
|
13281
13277
|
AuditLogService,
|
|
13282
13278
|
AuditLogModule
|
|
13283
13279
|
};
|
|
13284
|
-
//# sourceMappingURL=chunk-
|
|
13280
|
+
//# sourceMappingURL=chunk-AA52ORW2.mjs.map
|