@carlonicora/nextjs-jsonapi 6.6.0 → 6.8.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.
Files changed (127) hide show
  1. package/dist/{AssistantMessageInterface-0ZQ1EJKO.d.mts → AssistantMessageInterface-BE3QxI54.d.mts} +1 -1
  2. package/dist/{AssistantMessageInterface-CA-hZ5Wj.d.ts → AssistantMessageInterface-nXpD_d-m.d.ts} +1 -1
  3. package/dist/{BlockNoteEditor-MWGVWNSE.mjs → BlockNoteEditor-D3LDTJCP.mjs} +4 -4
  4. package/dist/{BlockNoteEditor-E4V7AEG2.js → BlockNoteEditor-FB6FQFRF.js} +19 -19
  5. package/dist/{BlockNoteEditor-E4V7AEG2.js.map → BlockNoteEditor-FB6FQFRF.js.map} +1 -1
  6. package/dist/{BlockNoteViewer-LGRKM7OA.js → BlockNoteViewer-LGFMGTYX.js} +3 -3
  7. package/dist/{BlockNoteViewer-LGRKM7OA.js.map → BlockNoteViewer-LGFMGTYX.js.map} +1 -1
  8. package/dist/{BlockNoteViewer-VNU7WVN5.mjs → BlockNoteViewer-YSPYUDZE.mjs} +2 -2
  9. package/dist/{BlogPostInterface-CTGfsR1I.d.ts → BlogPostInterface-2sVqvXFd.d.ts} +1 -1
  10. package/dist/{BlogPostInterface-BN2mXc46.d.mts → BlogPostInterface-BgJLFpaa.d.mts} +1 -1
  11. package/dist/{auth.interface-tsOuc0Fi.d.mts → auth.interface-BAYLbYjs.d.mts} +3 -1
  12. package/dist/{auth.interface-D5606g19.d.ts → auth.interface-BjYwwfy9.d.ts} +3 -1
  13. package/dist/billing/index.js +492 -492
  14. package/dist/billing/index.mjs +3 -3
  15. package/dist/{chunk-RSMBRI3E.mjs → chunk-5HBFQEYU.mjs} +2 -2
  16. package/dist/{chunk-IDV534SJ.mjs → chunk-5HTX4RDA.mjs} +3730 -3537
  17. package/dist/chunk-5HTX4RDA.mjs.map +1 -0
  18. package/dist/{chunk-IQ2XYAB5.mjs → chunk-D44UDP4G.mjs} +2 -2
  19. package/dist/{chunk-F2MZ7GY6.js → chunk-JHT32ODN.js} +4 -4
  20. package/dist/{chunk-F2MZ7GY6.js.map → chunk-JHT32ODN.js.map} +1 -1
  21. package/dist/{chunk-AEVLFZRK.js → chunk-PSLT5JLE.js} +3 -3
  22. package/dist/{chunk-AEVLFZRK.js.map → chunk-PSLT5JLE.js.map} +1 -1
  23. package/dist/{chunk-PDS57QPD.mjs → chunk-TL5O7EGW.mjs} +2 -2
  24. package/dist/{chunk-R2XBVIO5.js → chunk-UT4GVYJE.js} +1067 -874
  25. package/dist/chunk-UT4GVYJE.js.map +1 -0
  26. package/dist/{chunk-OJAIKQR2.js → chunk-UZP7KRAV.js} +432 -233
  27. package/dist/chunk-UZP7KRAV.js.map +1 -0
  28. package/dist/{chunk-7GB5MR77.mjs → chunk-VT5HRZH7.mjs} +200 -1
  29. package/dist/chunk-VT5HRZH7.mjs.map +1 -0
  30. package/dist/{chunk-AMN2XDN5.js → chunk-ZXK2OMCC.js} +8 -8
  31. package/dist/{chunk-AMN2XDN5.js.map → chunk-ZXK2OMCC.js.map} +1 -1
  32. package/dist/client/index.d.mts +3 -3
  33. package/dist/client/index.d.ts +3 -3
  34. package/dist/client/index.js +4 -4
  35. package/dist/client/index.mjs +3 -3
  36. package/dist/components/index.d.mts +41 -6
  37. package/dist/components/index.d.ts +41 -6
  38. package/dist/components/index.js +12 -4
  39. package/dist/components/index.js.map +1 -1
  40. package/dist/components/index.mjs +11 -3
  41. package/dist/contexts/index.d.mts +4 -4
  42. package/dist/contexts/index.d.ts +4 -4
  43. package/dist/contexts/index.js +4 -4
  44. package/dist/contexts/index.mjs +3 -3
  45. package/dist/core/index.d.mts +123 -11
  46. package/dist/core/index.d.ts +123 -11
  47. package/dist/core/index.js +14 -2
  48. package/dist/core/index.js.map +1 -1
  49. package/dist/core/index.mjs +13 -1
  50. package/dist/email-automations/index.js +92 -92
  51. package/dist/email-automations/index.mjs +3 -3
  52. package/dist/features/analytics/index.d.mts +1 -1
  53. package/dist/features/analytics/index.d.ts +1 -1
  54. package/dist/features/analytics/index.js +121 -121
  55. package/dist/features/analytics/index.mjs +4 -4
  56. package/dist/features/analytics/server.js +4 -4
  57. package/dist/features/analytics/server.mjs +2 -2
  58. package/dist/features/blog/index.d.mts +3 -3
  59. package/dist/features/blog/index.d.ts +3 -3
  60. package/dist/features/blog/index.js +150 -150
  61. package/dist/features/blog/index.mjs +3 -3
  62. package/dist/features/blog/server.d.mts +3 -3
  63. package/dist/features/blog/server.d.ts +3 -3
  64. package/dist/features/blog/server.js +16 -16
  65. package/dist/features/blog/server.mjs +1 -1
  66. package/dist/features/help/index.js +37 -37
  67. package/dist/features/help/index.mjs +3 -3
  68. package/dist/features/tokenusage/index.js +127 -127
  69. package/dist/features/tokenusage/index.mjs +4 -4
  70. package/dist/index.d.mts +7 -7
  71. package/dist/index.d.ts +7 -7
  72. package/dist/index.js +15 -3
  73. package/dist/index.js.map +1 -1
  74. package/dist/index.mjs +14 -2
  75. package/dist/{notification.interface-DQReXAD7.d.ts → notification.interface-DQItyY_Q.d.ts} +1 -1
  76. package/dist/{notification.interface-CF5h90U2.d.mts → notification.interface-DoVS5RZB.d.mts} +1 -1
  77. package/dist/{s3.service-BNBD9YTg.d.mts → s3.service-BG136Btz.d.mts} +3 -3
  78. package/dist/{s3.service-Da7C2gtt.d.ts → s3.service-CsrsRPRn.d.ts} +3 -3
  79. package/dist/server/index.d.mts +4 -4
  80. package/dist/server/index.d.ts +4 -4
  81. package/dist/server/index.js +3 -3
  82. package/dist/server/index.mjs +2 -2
  83. package/dist/{useSocket-CwSoq6VS.d.mts → useSocket-C8fqU4od.d.mts} +1 -1
  84. package/dist/{useSocket-BM3q9A0C.d.ts → useSocket-IRHtk2xc.d.ts} +1 -1
  85. package/dist/{user.interface-BYnGJ7ss.d.mts → user.interface-Bm-0TbsB.d.mts} +6 -0
  86. package/dist/{user.interface-BqPjVyJI.d.ts → user.interface-CKBIEvNu.d.ts} +6 -0
  87. package/messages/en.json +24 -0
  88. package/messages/it.json +24 -0
  89. package/package.json +1 -1
  90. package/src/components/index.ts +1 -0
  91. package/src/core/index.ts +5 -0
  92. package/src/core/registry/ModuleRegistry.ts +13 -0
  93. package/src/features/account-deletion/account-deletion.module.ts +13 -0
  94. package/src/features/account-deletion/components/AccountDeletionAdminTrigger.tsx +183 -0
  95. package/src/features/account-deletion/components/AccountDeletionCancelledNotice.tsx +51 -0
  96. package/src/features/account-deletion/components/AccountDeletionKeepContainer.tsx +74 -0
  97. package/src/features/account-deletion/components/index.ts +3 -0
  98. package/src/features/account-deletion/data/__tests__/AccountDeletion.spec.ts +89 -0
  99. package/src/features/account-deletion/data/account-deletion.interface.ts +22 -0
  100. package/src/features/account-deletion/data/account-deletion.service.ts +69 -0
  101. package/src/features/account-deletion/data/account-deletion.ts +90 -0
  102. package/src/features/account-deletion/data/index.ts +3 -0
  103. package/src/features/account-deletion/index.ts +4 -0
  104. package/src/features/account-deletion/utils/__tests__/account-deletion-notice.spec.ts +40 -0
  105. package/src/features/account-deletion/utils/account-deletion-notice.ts +27 -0
  106. package/src/features/account-deletion/utils/index.ts +1 -0
  107. package/src/features/auth/components/forms/Cookies.tsx +3 -0
  108. package/src/features/auth/components/forms/TwoFactorChallenge.tsx +2 -0
  109. package/src/features/auth/data/__tests__/auth.spec.ts +36 -0
  110. package/src/features/auth/data/auth.interface.ts +2 -0
  111. package/src/features/auth/data/auth.service.ts +4 -0
  112. package/src/features/auth/data/auth.ts +7 -0
  113. package/src/features/company/data/company.interface.ts +7 -0
  114. package/src/features/company/data/company.spec.ts +23 -0
  115. package/src/features/company/data/company.ts +6 -0
  116. package/src/features/company/hooks/useSubscriptionStatus.spec.ts +59 -0
  117. package/src/features/company/hooks/useSubscriptionStatus.ts +5 -3
  118. package/src/features/user/contexts/UserContext.tsx +8 -0
  119. package/dist/chunk-7GB5MR77.mjs.map +0 -1
  120. package/dist/chunk-IDV534SJ.mjs.map +0 -1
  121. package/dist/chunk-OJAIKQR2.js.map +0 -1
  122. package/dist/chunk-R2XBVIO5.js.map +0 -1
  123. /package/dist/{BlockNoteEditor-MWGVWNSE.mjs.map → BlockNoteEditor-D3LDTJCP.mjs.map} +0 -0
  124. /package/dist/{BlockNoteViewer-VNU7WVN5.mjs.map → BlockNoteViewer-YSPYUDZE.mjs.map} +0 -0
  125. /package/dist/{chunk-RSMBRI3E.mjs.map → chunk-5HBFQEYU.mjs.map} +0 -0
  126. /package/dist/{chunk-IQ2XYAB5.mjs.map → chunk-D44UDP4G.mjs.map} +0 -0
  127. /package/dist/{chunk-PDS57QPD.mjs.map → chunk-TL5O7EGW.mjs.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  percentageDelta,
4
4
  seriesColor,
5
5
  useUsageFormatters
6
- } from "../../chunk-IQ2XYAB5.mjs";
6
+ } from "../../chunk-D44UDP4G.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-IDV534SJ.mjs";
37
- import "../../chunk-RSMBRI3E.mjs";
36
+ } from "../../chunk-5HTX4RDA.mjs";
37
+ import "../../chunk-5HBFQEYU.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-7GB5MR77.mjs";
51
+ } from "../../chunk-VT5HRZH7.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 _chunkF2MZ7GY6js = require('../../chunk-F2MZ7GY6.js');
3
+ var _chunkJHT32ODNjs = require('../../chunk-JHT32ODN.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-OJAIKQR2.js');
9
+ require('../../chunk-UZP7KRAV.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 _chunkF2MZ7GY6js.ServerSession.hasRole(adminRoleId)) {
22
+ if (!await _chunkJHT32ODNjs.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 _chunkF2MZ7GY6js.ServerSession.hasRole(adminRoleId)) {
34
+ if (!await _chunkJHT32ODNjs.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-PDS57QPD.mjs";
3
+ } from "../../chunk-TL5O7EGW.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-7GB5MR77.mjs";
9
+ import "../../chunk-VT5HRZH7.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-BN2mXc46.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-BN2mXc46.mjs';
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-BYnGJ7ss.mjs';
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-CTGfsR1I.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-CTGfsR1I.js';
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-BqPjVyJI.js';
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';