@carlonicora/nextjs-jsonapi 5.7.3 → 6.1.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-R3745ALQ.mjs → BlockNoteEditor-FZNU4YQT.mjs} +4 -4
- package/dist/{BlockNoteEditor-G45WMJ5V.js → BlockNoteEditor-SAU3G6H7.js} +19 -19
- package/dist/{BlockNoteEditor-G45WMJ5V.js.map → BlockNoteEditor-SAU3G6H7.js.map} +1 -1
- package/dist/{BlockNoteViewer-TNK3OMH5.mjs → BlockNoteViewer-6XDDVTN6.mjs} +2 -2
- package/dist/{BlockNoteViewer-5PGOVURC.js → BlockNoteViewer-7BTV7QQA.js} +3 -3
- package/dist/{BlockNoteViewer-5PGOVURC.js.map → BlockNoteViewer-7BTV7QQA.js.map} +1 -1
- package/dist/billing/index.js +492 -506
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +5 -19
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-CP7BXAFH.js → chunk-F4JB7YAP.js} +8 -8
- package/dist/{chunk-CP7BXAFH.js.map → chunk-F4JB7YAP.js.map} +1 -1
- package/dist/{chunk-KOA5PZZA.mjs → chunk-GFGKMUPZ.mjs} +2 -2
- package/dist/{chunk-EXG4ANC7.js → chunk-IPYXT7MH.js} +868 -868
- package/dist/{chunk-EXG4ANC7.js.map → chunk-IPYXT7MH.js.map} +1 -1
- package/dist/{chunk-RJMLAW5O.mjs → chunk-JVJS5RHB.mjs} +2 -2
- package/dist/{chunk-WU47MIZZ.js → chunk-MTI2UXDA.js} +4 -4
- package/dist/{chunk-WU47MIZZ.js.map → chunk-MTI2UXDA.js.map} +1 -1
- package/dist/{chunk-6KAYEYFU.mjs → chunk-RYZYKG6W.mjs} +2 -2
- package/dist/{chunk-3CSPHMVK.js → chunk-T3YQ47EF.js} +2 -32
- package/dist/chunk-T3YQ47EF.js.map +1 -0
- package/dist/{chunk-YG4YFAYY.js → chunk-TPZS46IM.js} +3 -3
- package/dist/{chunk-YG4YFAYY.js.map → chunk-TPZS46IM.js.map} +1 -1
- package/dist/{chunk-JCNB5KTQ.mjs → chunk-U7DR5VDT.mjs} +5 -5
- package/dist/{chunk-CJS5WA4E.mjs → chunk-USYZNWKS.mjs} +2 -32
- package/dist/chunk-USYZNWKS.mjs.map +1 -0
- 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 +0 -12
- package/dist/core/index.d.ts +0 -12
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -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 +158 -125
- package/dist/features/tokenusage/index.js.map +1 -1
- package/dist/features/tokenusage/index.mjs +38 -5
- package/dist/features/tokenusage/index.mjs.map +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/messages/en.json +25 -1
- package/messages/it.json +25 -1
- package/package.json +1 -1
- package/scripts/validate-messages.mjs +4 -1
- package/src/features/__tests__/i18n-keys.contract.spec.ts +4 -0
- package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +22 -14
- package/src/features/billing/i18n-keys.ts +1 -0
- package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +1 -21
- package/src/features/billing/stripe-subscription/data/__tests__/stripe-subscription.spec.ts +59 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.service.ts +0 -34
- package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +1 -1
- package/src/features/tokenusage/components/TokenUsageRankedBar.tsx +34 -2
- package/src/features/tokenusage/components/__tests__/TokenUsageRankedBar.spec.tsx +22 -0
- package/src/features/tokenusage/lib/operation-label.ts +20 -0
- package/dist/chunk-3CSPHMVK.js.map +0 -1
- package/dist/chunk-CJS5WA4E.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-R3745ALQ.mjs.map → BlockNoteEditor-FZNU4YQT.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-TNK3OMH5.mjs.map → BlockNoteViewer-6XDDVTN6.mjs.map} +0 -0
- /package/dist/{chunk-KOA5PZZA.mjs.map → chunk-GFGKMUPZ.mjs.map} +0 -0
- /package/dist/{chunk-RJMLAW5O.mjs.map → chunk-JVJS5RHB.mjs.map} +0 -0
- /package/dist/{chunk-6KAYEYFU.mjs.map → chunk-RYZYKG6W.mjs.map} +0 -0
- /package/dist/{chunk-JCNB5KTQ.mjs.map → chunk-U7DR5VDT.mjs.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
percentageDelta,
|
|
4
4
|
seriesColor,
|
|
5
5
|
useUsageFormatters
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-RYZYKG6W.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Badge,
|
|
9
9
|
Button,
|
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
TabsList,
|
|
34
34
|
TabsTrigger,
|
|
35
35
|
usePageUrlGenerator
|
|
36
|
-
} from "../../chunk-
|
|
37
|
-
import "../../chunk-
|
|
36
|
+
} from "../../chunk-U7DR5VDT.mjs";
|
|
37
|
+
import "../../chunk-JVJS5RHB.mjs";
|
|
38
38
|
import "../../chunk-PW42LRSL.mjs";
|
|
39
39
|
import {
|
|
40
40
|
AbstractService,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
Modules,
|
|
49
49
|
analyticsModules,
|
|
50
50
|
cn
|
|
51
|
-
} from "../../chunk-
|
|
51
|
+
} from "../../chunk-USYZNWKS.mjs";
|
|
52
52
|
import "../../chunk-V5MI7RNB.mjs";
|
|
53
53
|
import "../../chunk-AUXK7QSA.mjs";
|
|
54
54
|
import "../../chunk-PI56A4DG.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMTI2UXDAjs = require('../../chunk-MTI2UXDA.js');
|
|
4
4
|
require('../../chunk-IK65TDQH.js');
|
|
5
5
|
require('../../chunk-KSYQEKJX.js');
|
|
6
6
|
require('../../chunk-YUO55Q5A.js');
|
|
7
7
|
require('../../chunk-6TUB7Y6T.js');
|
|
8
8
|
require('../../chunk-G4JR3SFV.js');
|
|
9
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-T3YQ47EF.js');
|
|
10
10
|
require('../../chunk-GHE4VT2R.js');
|
|
11
11
|
require('../../chunk-LXKSUWAV.js');
|
|
12
12
|
require('../../chunk-JTPRJNT2.js');
|
|
@@ -19,7 +19,7 @@ var _navigation = require('next/navigation');
|
|
|
19
19
|
var _analytics = require('@carlonicora/nextjs-jsonapi/analytics');
|
|
20
20
|
var _jsxruntime = require('react/jsx-runtime');
|
|
21
21
|
async function AnalyticsAdminPage({ adminRoleId, sessionPageUrl, deniedRedirect = "/" }) {
|
|
22
|
-
if (!await
|
|
22
|
+
if (!await _chunkMTI2UXDAjs.ServerSession.hasRole(adminRoleId)) {
|
|
23
23
|
_navigation.redirect.call(void 0, deniedRedirect);
|
|
24
24
|
}
|
|
25
25
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _analytics.AnalyticsAdminPageContainer, { sessionPageUrl });
|
|
@@ -31,7 +31,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AnalyticsAdminPage, "AnalyticsAdminPage");
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
async function AnalyticsJourneyPage({ adminRoleId, sessionId, pageUrl, deniedRedirect = "/" }) {
|
|
34
|
-
if (!await
|
|
34
|
+
if (!await _chunkMTI2UXDAjs.ServerSession.hasRole(adminRoleId)) {
|
|
35
35
|
_navigation.redirect.call(void 0, deniedRedirect);
|
|
36
36
|
}
|
|
37
37
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _analytics.AnalyticsJourneyPageContainer, { sessionId, pageUrl });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ServerSession
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-GFGKMUPZ.mjs";
|
|
4
4
|
import "../../chunk-T7SAW3UW.mjs";
|
|
5
5
|
import "../../chunk-3YW35YHQ.mjs";
|
|
6
6
|
import "../../chunk-F5UNXZ3J.mjs";
|
|
7
7
|
import "../../chunk-E2LENTUH.mjs";
|
|
8
8
|
import "../../chunk-PW42LRSL.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-USYZNWKS.mjs";
|
|
10
10
|
import "../../chunk-V5MI7RNB.mjs";
|
|
11
11
|
import "../../chunk-AUXK7QSA.mjs";
|
|
12
12
|
import "../../chunk-PI56A4DG.mjs";
|