@carlonicora/nextjs-jsonapi 6.7.0 → 6.9.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/{AssistantMessageInterface-0ZQ1EJKO.d.mts → AssistantMessageInterface-BE3QxI54.d.mts} +1 -1
- package/dist/{AssistantMessageInterface-CA-hZ5Wj.d.ts → AssistantMessageInterface-nXpD_d-m.d.ts} +1 -1
- package/dist/{BlockNoteEditor-HWJBQAKG.mjs → BlockNoteEditor-WN73IHXR.mjs} +4 -4
- package/dist/{BlockNoteEditor-BSFR2GPI.js → BlockNoteEditor-XXH3VBZ7.js} +19 -19
- package/dist/{BlockNoteEditor-BSFR2GPI.js.map → BlockNoteEditor-XXH3VBZ7.js.map} +1 -1
- package/dist/{BlockNoteViewer-NHS6CCMS.js → BlockNoteViewer-EKAWVLIR.js} +3 -3
- package/dist/{BlockNoteViewer-NHS6CCMS.js.map → BlockNoteViewer-EKAWVLIR.js.map} +1 -1
- package/dist/{BlockNoteViewer-IIBUU7J7.mjs → BlockNoteViewer-RWRI3QO2.mjs} +2 -2
- package/dist/{BlogPostInterface-CTGfsR1I.d.ts → BlogPostInterface-2sVqvXFd.d.ts} +1 -1
- package/dist/{BlogPostInterface-BN2mXc46.d.mts → BlogPostInterface-BgJLFpaa.d.mts} +1 -1
- package/dist/{HandbookSectionInterface-BYsmnPEz.d.mts → HandbookSectionInterface-BPgqqwgw.d.mts} +20 -1
- package/dist/{HandbookSectionInterface-OePKPbqN.d.ts → HandbookSectionInterface-_51oA3om.d.ts} +20 -1
- package/dist/{auth.interface-DuX87BZ3.d.mts → auth.interface-BAYLbYjs.d.mts} +1 -1
- package/dist/{auth.interface-B4tRE0k0.d.ts → auth.interface-BjYwwfy9.d.ts} +1 -1
- package/dist/billing/index.js +492 -492
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-EC4PQ44E.mjs → chunk-3TNGKMJU.mjs} +2 -2
- package/dist/{chunk-QNIWATQD.mjs → chunk-6HFRXEF5.mjs} +331 -3
- package/dist/chunk-6HFRXEF5.mjs.map +1 -0
- package/dist/{chunk-OYRJ32KR.mjs → chunk-AWLTSKMM.mjs} +2 -2
- package/dist/{chunk-XYKDBOCE.mjs → chunk-DPAM7BCE.mjs} +2 -2
- package/dist/{chunk-PYDDFFQM.js → chunk-G3YKDIAL.js} +3 -3
- package/dist/{chunk-PYDDFFQM.js.map → chunk-G3YKDIAL.js.map} +1 -1
- package/dist/{chunk-3HOJNAZB.js → chunk-KRQRJA4J.js} +8 -8
- package/dist/{chunk-3HOJNAZB.js.map → chunk-KRQRJA4J.js.map} +1 -1
- package/dist/{chunk-S4NKWMX5.mjs → chunk-Q4XLE3QO.mjs} +1738 -1308
- package/dist/chunk-Q4XLE3QO.mjs.map +1 -0
- package/dist/{chunk-73XWQA6U.js → chunk-RNZ3IK5J.js} +4 -4
- package/dist/{chunk-73XWQA6U.js.map → chunk-RNZ3IK5J.js.map} +1 -1
- package/dist/{chunk-6KE7UBYY.js → chunk-SQTXJPRE.js} +505 -177
- package/dist/chunk-SQTXJPRE.js.map +1 -0
- package/dist/{chunk-PCCUPEBU.js → chunk-ZCM4JLM7.js} +1381 -951
- package/dist/chunk-ZCM4JLM7.js.map +1 -0
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +62 -8
- package/dist/components/index.d.ts +62 -8
- package/dist/components/index.js +14 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +13 -3
- package/dist/contexts/index.d.mts +4 -4
- package/dist/contexts/index.d.ts +4 -4
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +146 -13
- package/dist/core/index.d.ts +146 -13
- package/dist/core/index.js +24 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +23 -1
- package/dist/email-automations/index.d.mts +6 -1
- package/dist/email-automations/index.d.ts +6 -1
- package/dist/email-automations/index.js +101 -94
- package/dist/email-automations/index.js.map +1 -1
- package/dist/email-automations/index.mjs +12 -5
- package/dist/email-automations/index.mjs.map +1 -1
- package/dist/features/analytics/index.d.mts +1 -1
- package/dist/features/analytics/index.d.ts +1 -1
- 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.d.mts +3 -3
- package/dist/features/blog/index.d.ts +3 -3
- package/dist/features/blog/index.js +150 -150
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.d.mts +3 -3
- package/dist/features/blog/server.d.ts +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 +127 -127
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -2
- package/dist/{notification.interface-DQReXAD7.d.ts → notification.interface-DQItyY_Q.d.ts} +1 -1
- package/dist/{notification.interface-CF5h90U2.d.mts → notification.interface-DoVS5RZB.d.mts} +1 -1
- package/dist/{s3.service-CRGJbO-6.d.mts → s3.service-BG136Btz.d.mts} +3 -3
- package/dist/{s3.service-DZG-VyLY.d.ts → s3.service-CsrsRPRn.d.ts} +3 -3
- package/dist/server/index.d.mts +4 -4
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/dist/{useSocket-CwSoq6VS.d.mts → useSocket-C8fqU4od.d.mts} +1 -1
- package/dist/{useSocket-BM3q9A0C.d.ts → useSocket-IRHtk2xc.d.ts} +1 -1
- package/dist/{user.interface-BYnGJ7ss.d.mts → user.interface-Bm-0TbsB.d.mts} +6 -0
- package/dist/{user.interface-BqPjVyJI.d.ts → user.interface-CKBIEvNu.d.ts} +6 -0
- package/messages/en.json +62 -0
- package/messages/it.json +62 -0
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/core/index.ts +3 -0
- package/src/core/registry/ModuleRegistry.ts +4 -0
- package/src/features/company/data/company.interface.ts +7 -0
- package/src/features/company/data/company.spec.ts +23 -0
- package/src/features/company/data/company.ts +6 -0
- package/src/features/company/hooks/useSubscriptionStatus.spec.ts +59 -0
- package/src/features/company/hooks/useSubscriptionStatus.ts +5 -3
- package/src/features/email-automation/components/unsubscribe/EmailUnsubscribe.tsx +14 -2
- package/src/features/email-blast/EmailBlastAudienceModule.ts +12 -0
- package/src/features/email-blast/EmailBlastDeliveryModule.ts +12 -0
- package/src/features/email-blast/EmailBlastModule.ts +28 -0
- package/src/features/email-blast/components/containers/EmailBlastContainer.tsx +145 -0
- package/src/features/email-blast/components/containers/EmailBlastsListContainer.tsx +36 -0
- package/src/features/email-blast/components/forms/EmailBlastEditor.tsx +132 -0
- package/src/features/email-blast/components/forms/EmailBlastSendDialog.tsx +104 -0
- package/src/features/email-blast/components/index.ts +5 -0
- package/src/features/email-blast/components/lists/EmailBlastsList.tsx +57 -0
- package/src/features/email-blast/data/EmailBlast.ts +89 -0
- package/src/features/email-blast/data/EmailBlastAudience.ts +22 -0
- package/src/features/email-blast/data/EmailBlastAudienceInterface.ts +5 -0
- package/src/features/email-blast/data/EmailBlastDelivery.ts +36 -0
- package/src/features/email-blast/data/EmailBlastDeliveryInterface.ts +7 -0
- package/src/features/email-blast/data/EmailBlastDeliveryService.ts +25 -0
- package/src/features/email-blast/data/EmailBlastInterface.ts +22 -0
- package/src/features/email-blast/data/EmailBlastService.ts +101 -0
- package/src/features/email-blast/data/__tests__/EmailBlast.spec.ts +73 -0
- package/src/features/email-blast/data/email-blast.fields.ts +8 -0
- package/src/features/email-blast/data/email-blast.segments.ts +10 -0
- package/src/features/email-blast/data/index.ts +10 -0
- package/src/features/email-blast/hooks/useEmailBlastTableStructure.tsx +104 -0
- package/src/features/email-blast/index.ts +4 -0
- package/src/features/index.ts +1 -0
- package/dist/chunk-6KE7UBYY.js.map +0 -1
- package/dist/chunk-PCCUPEBU.js.map +0 -1
- package/dist/chunk-QNIWATQD.mjs.map +0 -1
- package/dist/chunk-S4NKWMX5.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-HWJBQAKG.mjs.map → BlockNoteEditor-WN73IHXR.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-IIBUU7J7.mjs.map → BlockNoteViewer-RWRI3QO2.mjs.map} +0 -0
- /package/dist/{chunk-EC4PQ44E.mjs.map → chunk-3TNGKMJU.mjs.map} +0 -0
- /package/dist/{chunk-OYRJ32KR.mjs.map → chunk-AWLTSKMM.mjs.map} +0 -0
- /package/dist/{chunk-XYKDBOCE.mjs.map → chunk-DPAM7BCE.mjs.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
percentageDelta,
|
|
4
4
|
seriesColor,
|
|
5
5
|
useUsageFormatters
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-3TNGKMJU.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-Q4XLE3QO.mjs";
|
|
37
|
+
import "../../chunk-AWLTSKMM.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-6HFRXEF5.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 _chunkRNZ3IK5Jjs = require('../../chunk-RNZ3IK5J.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-SQTXJPRE.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 _chunkRNZ3IK5Jjs.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 _chunkRNZ3IK5Jjs.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-DPAM7BCE.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-6HFRXEF5.mjs";
|
|
10
10
|
import "../../chunk-V5MI7RNB.mjs";
|
|
11
11
|
import "../../chunk-AUXK7QSA.mjs";
|
|
12
12
|
import "../../chunk-PI56A4DG.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { b as BlogPostInterface, a as BlogCategoryInterface, f as BlogPostTranslationInterface, j as BlogAiStatus, B as BlogListLayout } from '../../BlogPostInterface-
|
|
4
|
-
export { u as BLOG_ACTION, s as BLOG_CATEGORY_UPLOAD_PREFIX, c as BLOG_LIST_LAYOUTS, p as BLOG_MODULE_ID, k as BLOG_POST_STATUSES, r as BLOG_POST_UPLOAD_PREFIX, t as BLOG_PUBLIC_PREFIX, o as BLOG_SETTINGS_ID, m as BLOG_TRANSLATION_SOURCES, q as BLOG_UPLOAD_ROOT, l as BlogPostStatus, n as BlogTranslationSource } from '../../BlogPostInterface-
|
|
3
|
+
import { b as BlogPostInterface, a as BlogCategoryInterface, f as BlogPostTranslationInterface, j as BlogAiStatus, B as BlogListLayout } from '../../BlogPostInterface-BgJLFpaa.mjs';
|
|
4
|
+
export { u as BLOG_ACTION, s as BLOG_CATEGORY_UPLOAD_PREFIX, c as BLOG_LIST_LAYOUTS, p as BLOG_MODULE_ID, k as BLOG_POST_STATUSES, r as BLOG_POST_UPLOAD_PREFIX, t as BLOG_PUBLIC_PREFIX, o as BLOG_SETTINGS_ID, m as BLOG_TRANSLATION_SOURCES, q as BLOG_UPLOAD_ROOT, l as BlogPostStatus, n as BlogTranslationSource } from '../../BlogPostInterface-BgJLFpaa.mjs';
|
|
5
5
|
import { b as PublicBlogList, P as PublicBlogCategory, a as PublicBlogPost } from '../../blog-public.types-BbrzsC1c.mjs';
|
|
6
6
|
import { U as UseTableStructureHook } from '../../types-70acd-8C.mjs';
|
|
7
7
|
import { B as BlogPostFields, a as BlogCategoryFields } from '../../BlogCategoryFields-DO48vOTE.mjs';
|
|
8
8
|
import '../../ApiDataInterface-BcZeXy5X.mjs';
|
|
9
|
-
import '../../user.interface-
|
|
9
|
+
import '../../user.interface-Bm-0TbsB.mjs';
|
|
10
10
|
import '../../stripe-price.interface-D6mKjAdr.mjs';
|
|
11
11
|
import '@blocknote/core';
|
|
12
12
|
import '@tanstack/react-table';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { b as BlogPostInterface, a as BlogCategoryInterface, f as BlogPostTranslationInterface, j as BlogAiStatus, B as BlogListLayout } from '../../BlogPostInterface-
|
|
4
|
-
export { u as BLOG_ACTION, s as BLOG_CATEGORY_UPLOAD_PREFIX, c as BLOG_LIST_LAYOUTS, p as BLOG_MODULE_ID, k as BLOG_POST_STATUSES, r as BLOG_POST_UPLOAD_PREFIX, t as BLOG_PUBLIC_PREFIX, o as BLOG_SETTINGS_ID, m as BLOG_TRANSLATION_SOURCES, q as BLOG_UPLOAD_ROOT, l as BlogPostStatus, n as BlogTranslationSource } from '../../BlogPostInterface-
|
|
3
|
+
import { b as BlogPostInterface, a as BlogCategoryInterface, f as BlogPostTranslationInterface, j as BlogAiStatus, B as BlogListLayout } from '../../BlogPostInterface-2sVqvXFd.js';
|
|
4
|
+
export { u as BLOG_ACTION, s as BLOG_CATEGORY_UPLOAD_PREFIX, c as BLOG_LIST_LAYOUTS, p as BLOG_MODULE_ID, k as BLOG_POST_STATUSES, r as BLOG_POST_UPLOAD_PREFIX, t as BLOG_PUBLIC_PREFIX, o as BLOG_SETTINGS_ID, m as BLOG_TRANSLATION_SOURCES, q as BLOG_UPLOAD_ROOT, l as BlogPostStatus, n as BlogTranslationSource } from '../../BlogPostInterface-2sVqvXFd.js';
|
|
5
5
|
import { b as PublicBlogList, P as PublicBlogCategory, a as PublicBlogPost } from '../../blog-public.types-BbrzsC1c.js';
|
|
6
6
|
import { U as UseTableStructureHook } from '../../types-l8SFleXi.js';
|
|
7
7
|
import { B as BlogPostFields, a as BlogCategoryFields } from '../../BlogCategoryFields-DO48vOTE.js';
|
|
8
8
|
import '../../ApiDataInterface-BcZeXy5X.js';
|
|
9
|
-
import '../../user.interface-
|
|
9
|
+
import '../../user.interface-CKBIEvNu.js';
|
|
10
10
|
import '../../stripe-price.interface-DGqcklFJ.js';
|
|
11
11
|
import '@blocknote/core';
|
|
12
12
|
import '@tanstack/react-table';
|