@carlonicora/nextjs-jsonapi 6.20.0 → 6.20.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-7JRJ3XWV.mjs → BlockNoteEditor-S7EVHYWT.mjs} +5 -5
- package/dist/{BlockNoteEditor-MH2D5L4A.js → BlockNoteEditor-V76V5XFY.js} +20 -20
- package/dist/{BlockNoteEditor-MH2D5L4A.js.map → BlockNoteEditor-V76V5XFY.js.map} +1 -1
- package/dist/{BlockNoteViewer-UKYEU3E3.mjs → BlockNoteViewer-G3L46SGQ.mjs} +3 -3
- package/dist/{BlockNoteViewer-72J3CBAH.js → BlockNoteViewer-ZFJ3DZXN.js} +4 -4
- package/dist/{BlockNoteViewer-72J3CBAH.js.map → BlockNoteViewer-ZFJ3DZXN.js.map} +1 -1
- package/dist/billing/index.js +492 -492
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-MVAIYPIN.js → chunk-2CR7HWVS.js} +9 -9
- package/dist/{chunk-MVAIYPIN.js.map → chunk-2CR7HWVS.js.map} +1 -1
- package/dist/{chunk-IN2F6HI2.js → chunk-2CXF5XBU.js} +906 -906
- package/dist/{chunk-IN2F6HI2.js.map → chunk-2CXF5XBU.js.map} +1 -1
- package/dist/{chunk-ASORDSWQ.mjs → chunk-4GB35M62.mjs} +2 -2
- package/dist/{chunk-SGLFQ55U.js → chunk-CMNJENSJ.js} +862 -862
- package/dist/{chunk-SGLFQ55U.js.map → chunk-CMNJENSJ.js.map} +1 -1
- package/dist/{chunk-2U57XVNF.mjs → chunk-JSHLBRFV.mjs} +35 -6
- package/dist/chunk-JSHLBRFV.mjs.map +1 -0
- package/dist/{chunk-SJ3K3ATF.mjs → chunk-QSNZ6HPY.mjs} +3 -3
- package/dist/{chunk-NKXNOGMH.mjs → chunk-QWQZUFFA.mjs} +6 -6
- package/dist/{chunk-JAOBCIE7.js → chunk-SFDOUTEV.js} +4 -4
- package/dist/{chunk-JAOBCIE7.js.map → chunk-SFDOUTEV.js.map} +1 -1
- package/dist/{chunk-LSZZIQJ5.mjs → chunk-WU3UXTDS.mjs} +2 -2
- package/dist/{chunk-LSZZIQJ5.mjs.map → chunk-WU3UXTDS.mjs.map} +1 -1
- package/dist/{chunk-V7CHD7QT.js → chunk-YWLSIIE6.js} +47 -18
- package/dist/chunk-YWLSIIE6.js.map +1 -0
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/email-automations/index.js +118 -118
- package/dist/email-automations/index.mjs +4 -4
- package/dist/features/analytics/index.js +136 -136
- package/dist/features/analytics/index.mjs +4 -4
- package/dist/features/analytics/server.js +5 -5
- package/dist/features/analytics/server.mjs +3 -3
- package/dist/features/blog/index.js +151 -151
- package/dist/features/blog/index.mjs +4 -4
- package/dist/features/blog/server.js +17 -17
- package/dist/features/blog/server.mjs +2 -2
- package/dist/features/help/index.js +38 -38
- package/dist/features/help/index.mjs +4 -4
- package/dist/features/tokenusage/index.js +127 -127
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/offline/index.d.mts +7 -3
- package/dist/offline/index.d.ts +7 -3
- package/dist/offline/index.js +77 -32
- package/dist/offline/index.js.map +1 -1
- package/dist/offline/index.mjs +65 -20
- package/dist/offline/index.mjs.map +1 -1
- package/dist/server/index.d.mts +4 -3
- package/dist/server/index.d.ts +4 -3
- package/dist/server/index.js +4 -4
- package/dist/server/index.mjs +3 -3
- package/package.json +1 -1
- package/pwa/sw.js +17 -1
- package/src/core/factories/RehydrationFactory.ts +47 -5
- package/src/core/factories/__tests__/RehydrationFactory.spec.ts +86 -0
- package/src/offline/server/build-offline-manifest.ts +4 -3
- package/src/offline/sync/__tests__/sync-root.spec.ts +92 -10
- package/src/offline/sync/sync-root.ts +79 -23
- package/src/pwa/__tests__/sw.spec.ts +33 -3
- package/dist/chunk-2U57XVNF.mjs.map +0 -1
- package/dist/chunk-V7CHD7QT.js.map +0 -1
- /package/dist/{BlockNoteEditor-7JRJ3XWV.mjs.map → BlockNoteEditor-S7EVHYWT.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-UKYEU3E3.mjs.map → BlockNoteViewer-G3L46SGQ.mjs.map} +0 -0
- /package/dist/{chunk-ASORDSWQ.mjs.map → chunk-4GB35M62.mjs.map} +0 -0
- /package/dist/{chunk-SJ3K3ATF.mjs.map → chunk-QSNZ6HPY.mjs.map} +0 -0
- /package/dist/{chunk-NKXNOGMH.mjs.map → chunk-QWQZUFFA.mjs.map} +0 -0
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
seriesColor,
|
|
32
32
|
usePageUrlGenerator,
|
|
33
33
|
useUsageFormatters
|
|
34
|
-
} from "../../chunk-
|
|
34
|
+
} from "../../chunk-QWQZUFFA.mjs";
|
|
35
35
|
import "../../chunk-VOXD3ZLY.mjs";
|
|
36
|
-
import "../../chunk-
|
|
36
|
+
import "../../chunk-QSNZ6HPY.mjs";
|
|
37
37
|
import "../../chunk-PW42LRSL.mjs";
|
|
38
38
|
import {
|
|
39
39
|
AbstractService,
|
|
@@ -47,12 +47,12 @@ import {
|
|
|
47
47
|
analyticsModules,
|
|
48
48
|
cn,
|
|
49
49
|
formatLocalDate
|
|
50
|
-
} from "../../chunk-
|
|
50
|
+
} from "../../chunk-4GB35M62.mjs";
|
|
51
51
|
import "../../chunk-OY65RYD3.mjs";
|
|
52
52
|
import {
|
|
53
53
|
EndpointCreator,
|
|
54
54
|
Modules
|
|
55
|
-
} from "../../chunk-
|
|
55
|
+
} from "../../chunk-JSHLBRFV.mjs";
|
|
56
56
|
import "../../chunk-AUD6ZLBB.mjs";
|
|
57
57
|
import "../../chunk-M3N7LPHX.mjs";
|
|
58
58
|
import "../../chunk-4ZJIUTIV.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSFDOUTEVjs = require('../../chunk-SFDOUTEV.js');
|
|
4
4
|
require('../../chunk-IK65TDQH.js');
|
|
5
5
|
require('../../chunk-OQQ7CZWT.js');
|
|
6
6
|
require('../../chunk-6TUB7Y6T.js');
|
|
7
7
|
require('../../chunk-YUO55Q5A.js');
|
|
8
8
|
require('../../chunk-G4JR3SFV.js');
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-CMNJENSJ.js');
|
|
10
|
+
require('../../chunk-YWLSIIE6.js');
|
|
11
11
|
require('../../chunk-KV4N7DEG.js');
|
|
12
12
|
require('../../chunk-WCEYT3GG.js');
|
|
13
13
|
require('../../chunk-WUNSG3IN.js');
|
|
@@ -22,7 +22,7 @@ var _navigation = require('next/navigation');
|
|
|
22
22
|
var _analytics = require('@carlonicora/nextjs-jsonapi/analytics');
|
|
23
23
|
var _jsxruntime = require('react/jsx-runtime');
|
|
24
24
|
async function AnalyticsAdminPage({ adminRoleId, sessionPageUrl, deniedRedirect = "/" }) {
|
|
25
|
-
if (!await
|
|
25
|
+
if (!await _chunkSFDOUTEVjs.ServerSession.hasRole(adminRoleId)) {
|
|
26
26
|
_navigation.redirect.call(void 0, deniedRedirect);
|
|
27
27
|
}
|
|
28
28
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _analytics.AnalyticsAdminPageContainer, { sessionPageUrl });
|
|
@@ -34,7 +34,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AnalyticsAdminPage, "AnalyticsAdminPage");
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
async function AnalyticsJourneyPage({ adminRoleId, sessionId, pageUrl, deniedRedirect = "/" }) {
|
|
37
|
-
if (!await
|
|
37
|
+
if (!await _chunkSFDOUTEVjs.ServerSession.hasRole(adminRoleId)) {
|
|
38
38
|
_navigation.redirect.call(void 0, deniedRedirect);
|
|
39
39
|
}
|
|
40
40
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _analytics.AnalyticsJourneyPageContainer, { sessionId, pageUrl });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ServerSession
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-WU3UXTDS.mjs";
|
|
4
4
|
import "../../chunk-T7SAW3UW.mjs";
|
|
5
5
|
import "../../chunk-QIEF7HIL.mjs";
|
|
6
6
|
import "../../chunk-E2LENTUH.mjs";
|
|
7
7
|
import "../../chunk-F5UNXZ3J.mjs";
|
|
8
8
|
import "../../chunk-PW42LRSL.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-4GB35M62.mjs";
|
|
10
|
+
import "../../chunk-JSHLBRFV.mjs";
|
|
11
11
|
import "../../chunk-AUD6ZLBB.mjs";
|
|
12
12
|
import "../../chunk-M3N7LPHX.mjs";
|
|
13
13
|
import "../../chunk-4ZJIUTIV.mjs";
|