@carlonicora/nextjs-jsonapi 6.1.0 → 6.3.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-S7oyERTT.d.mts → AssistantMessageInterface-0ZQ1EJKO.d.mts} +1 -1
- package/dist/{AssistantMessageInterface-DHJJO_Z_.d.ts → AssistantMessageInterface-CA-hZ5Wj.d.ts} +1 -1
- package/dist/{BlockNoteEditor-SAU3G6H7.js → BlockNoteEditor-CT4XUXPC.js} +19 -19
- package/dist/{BlockNoteEditor-SAU3G6H7.js.map → BlockNoteEditor-CT4XUXPC.js.map} +1 -1
- package/dist/{BlockNoteEditor-FZNU4YQT.mjs → BlockNoteEditor-M6UQRVRK.mjs} +4 -4
- package/dist/{BlockNoteViewer-7BTV7QQA.js → BlockNoteViewer-MFLWF3Y2.js} +3 -3
- package/dist/{BlockNoteViewer-7BTV7QQA.js.map → BlockNoteViewer-MFLWF3Y2.js.map} +1 -1
- package/dist/{BlockNoteViewer-6XDDVTN6.mjs → BlockNoteViewer-XZJ5Y7WN.mjs} +2 -2
- package/dist/{BlogPostInterface-BB_4wcDR.d.mts → BlogPostInterface-BN2mXc46.d.mts} +1 -1
- package/dist/{BlogPostInterface-bWAT1rfR.d.ts → BlogPostInterface-CTGfsR1I.d.ts} +1 -1
- package/dist/{auth.interface-CSzJ1oP1.d.ts → auth.interface-D5606g19.d.ts} +1 -1
- package/dist/{auth.interface-DD4uQv2K.d.mts → auth.interface-tsOuc0Fi.d.mts} +1 -1
- package/dist/billing/index.d.mts +3 -3
- package/dist/billing/index.d.ts +3 -3
- package/dist/billing/index.js +501 -493
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +13 -5
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-USYZNWKS.mjs → chunk-3FD6Y734.mjs} +74 -15
- package/dist/chunk-3FD6Y734.mjs.map +1 -0
- package/dist/{chunk-F4JB7YAP.js → chunk-DSGP6GC3.js} +8 -8
- package/dist/{chunk-F4JB7YAP.js.map → chunk-DSGP6GC3.js.map} +1 -1
- package/dist/{chunk-GFGKMUPZ.mjs → chunk-O2TEUH5S.mjs} +2 -2
- package/dist/{chunk-MTI2UXDA.js → chunk-QJIDORHM.js} +4 -4
- package/dist/{chunk-MTI2UXDA.js.map → chunk-QJIDORHM.js.map} +1 -1
- package/dist/{chunk-JVJS5RHB.mjs → chunk-RUJCWOJE.mjs} +2 -2
- package/dist/{chunk-U7DR5VDT.mjs → chunk-TIT4CJYQ.mjs} +1233 -1181
- package/dist/chunk-TIT4CJYQ.mjs.map +1 -0
- package/dist/{chunk-TPZS46IM.js → chunk-V4I3XKOM.js} +3 -3
- package/dist/{chunk-TPZS46IM.js.map → chunk-V4I3XKOM.js.map} +1 -1
- package/dist/{chunk-T3YQ47EF.js → chunk-XZCCIKX3.js} +152 -93
- package/dist/chunk-XZCCIKX3.js.map +1 -0
- package/dist/{chunk-IPYXT7MH.js → chunk-Y7JIQNM6.js} +922 -870
- package/dist/chunk-Y7JIQNM6.js.map +1 -0
- package/dist/{chunk-RYZYKG6W.mjs → chunk-ZDUT5JPT.mjs} +2 -2
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +22 -6
- package/dist/components/index.d.ts +22 -6
- package/dist/components/index.js +10 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -4
- package/dist/contexts/index.d.mts +5 -5
- package/dist/contexts/index.d.ts +5 -5
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +23 -13
- package/dist/core/index.d.ts +23 -13
- package/dist/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +7 -1
- package/dist/{currency-DrEVd_Xs.d.mts → currency-BhuEoBOn.d.mts} +2 -115
- package/dist/{currency-8ErEC39n.d.ts → currency-CBgZkS0u.d.ts} +2 -115
- package/dist/email-automations/index.js +92 -92
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.d.mts +11 -3
- package/dist/features/analytics/index.d.ts +11 -3
- package/dist/features/analytics/index.js +129 -127
- package/dist/features/analytics/index.js.map +1 -1
- package/dist/features/analytics/index.mjs +12 -10
- package/dist/features/analytics/index.mjs.map +1 -1
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/blog/index.d.mts +4 -4
- package/dist/features/blog/index.d.ts +4 -4
- package/dist/features/blog/index.js +150 -150
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.d.mts +4 -4
- package/dist/features/blog/server.d.ts +4 -4
- 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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/{notification.interface-BB6GPpZY.d.mts → notification.interface-CF5h90U2.d.mts} +1 -1
- package/dist/{notification.interface-CmAGrijJ.d.ts → notification.interface-DQReXAD7.d.ts} +1 -1
- package/dist/{s3.service-Bz_K-tjz.d.ts → s3.service-BTCpmp5g.d.ts} +11 -4
- package/dist/{s3.service-D5zNCEW3.d.mts → s3.service-CzFBDEuQ.d.mts} +11 -4
- package/dist/server/index.d.mts +5 -5
- package/dist/server/index.d.ts +5 -5
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/dist/stripe-price.interface-D6mKjAdr.d.mts +132 -0
- package/dist/stripe-price.interface-DGqcklFJ.d.ts +132 -0
- package/dist/{useSocket-B0H9pmmH.d.ts → useSocket-BM3q9A0C.d.ts} +1 -1
- package/dist/{useSocket-B5RQb6v2.d.mts → useSocket-CwSoq6VS.d.mts} +1 -1
- package/dist/{user.interface-CIWGlbqM.d.mts → user.interface-BYnGJ7ss.d.mts} +37 -2
- package/dist/{user.interface-C0ZdsBZj.d.ts → user.interface-BqPjVyJI.d.ts} +37 -2
- package/messages/en.json +8 -0
- package/messages/it.json +8 -0
- package/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +7 -2
- package/src/components/index.ts +5 -0
- package/src/features/analytics/components/AnalyticsTracker.tsx +22 -9
- package/src/features/analytics/components/__tests__/AnalyticsTracker.spec.tsx +67 -0
- package/src/features/analytics/data/__tests__/models.spec.ts +13 -0
- package/src/features/analytics/data/analytics-event.ts +1 -0
- package/src/features/analytics/data/analytics.types.ts +2 -0
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +20 -3
- package/src/features/billing/components/widgets/CreditWarningBanner.tsx +93 -0
- package/src/features/billing/data/credit-warning.spec.ts +96 -0
- package/src/features/billing/data/credit-warning.ts +57 -0
- package/src/features/billing/data/index.ts +3 -0
- package/src/features/billing/i18n-keys.ts +6 -0
- package/src/features/company/data/company.interface.ts +11 -0
- package/src/features/company/data/company.service.ts +17 -0
- package/src/features/company/data/company.spec.ts +29 -0
- package/src/features/company/data/company.ts +31 -0
- package/dist/chunk-IPYXT7MH.js.map +0 -1
- package/dist/chunk-T3YQ47EF.js.map +0 -1
- package/dist/chunk-U7DR5VDT.mjs.map +0 -1
- package/dist/chunk-USYZNWKS.mjs.map +0 -1
- package/dist/feature.interface-BO25VLlx.d.ts +0 -19
- package/dist/feature.interface-CXb1-vNq.d.mts +0 -19
- /package/dist/{BlockNoteEditor-FZNU4YQT.mjs.map → BlockNoteEditor-M6UQRVRK.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-6XDDVTN6.mjs.map → BlockNoteViewer-XZJ5Y7WN.mjs.map} +0 -0
- /package/dist/{chunk-GFGKMUPZ.mjs.map → chunk-O2TEUH5S.mjs.map} +0 -0
- /package/dist/{chunk-JVJS5RHB.mjs.map → chunk-RUJCWOJE.mjs.map} +0 -0
- /package/dist/{chunk-RYZYKG6W.mjs.map → chunk-ZDUT5JPT.mjs.map} +0 -0
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../../ApiDataInterface-BcZeXy5X.mjs';
|
|
4
|
-
import { U as UserInterface } from '../../user.interface-
|
|
4
|
+
import { U as UserInterface } from '../../user.interface-BYnGJ7ss.mjs';
|
|
5
5
|
import { A as AbstractApiData } from '../../AbstractApiData-XLhBP5Tl.mjs';
|
|
6
6
|
import { A as AbstractService, N as NextRef } from '../../AbstractService-Ckm2X5fW.mjs';
|
|
7
7
|
export { a as analyticsModules } from '../../analytics.modules-txdCLNG-.mjs';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../stripe-price.interface-D6mKjAdr.mjs';
|
|
9
9
|
import '../../ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
10
10
|
import '../../types-Bq_UA8Lg.mjs';
|
|
11
11
|
import 'lucide-react';
|
|
12
12
|
|
|
13
13
|
type AnalyticsTrackerProps = {
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* `undefined` while the app has not read its consent store yet: the tracker sends
|
|
16
|
+
* nothing and leaves the visitor cookie alone. `false` when there is no consent
|
|
17
|
+
* (refused or not chosen yet): the cookie is cleared and page views go out without
|
|
18
|
+
* an id. Never pass `false` as a placeholder for "not read yet".
|
|
19
|
+
*/
|
|
20
|
+
hasConsent?: boolean;
|
|
15
21
|
resolveSection: (pathname: string) => "public" | "app";
|
|
16
22
|
sensitivePrefixes?: string[];
|
|
17
23
|
};
|
|
@@ -91,6 +97,8 @@ type AnalyticsEventInput = {
|
|
|
91
97
|
utmContent?: string;
|
|
92
98
|
visitorId?: string;
|
|
93
99
|
screenWidth?: number;
|
|
100
|
+
/** True only on the event sent by the Accept click: the API adopts the open cookieless session. */
|
|
101
|
+
consentGranted?: boolean;
|
|
94
102
|
};
|
|
95
103
|
type AnalyticsSummaryInput = {
|
|
96
104
|
id: string;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../../ApiDataInterface-BcZeXy5X.js';
|
|
4
|
-
import { U as UserInterface } from '../../user.interface-
|
|
4
|
+
import { U as UserInterface } from '../../user.interface-BqPjVyJI.js';
|
|
5
5
|
import { A as AbstractApiData } from '../../AbstractApiData-DtitRWPz.js';
|
|
6
6
|
import { A as AbstractService, N as NextRef } from '../../AbstractService-V3VGQMhL.js';
|
|
7
7
|
export { a as analyticsModules } from '../../analytics.modules-Bsacu6ik.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../stripe-price.interface-DGqcklFJ.js';
|
|
9
9
|
import '../../ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
10
10
|
import '../../types-bsm8Fp55.js';
|
|
11
11
|
import 'lucide-react';
|
|
12
12
|
|
|
13
13
|
type AnalyticsTrackerProps = {
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* `undefined` while the app has not read its consent store yet: the tracker sends
|
|
16
|
+
* nothing and leaves the visitor cookie alone. `false` when there is no consent
|
|
17
|
+
* (refused or not chosen yet): the cookie is cleared and page views go out without
|
|
18
|
+
* an id. Never pass `false` as a placeholder for "not read yet".
|
|
19
|
+
*/
|
|
20
|
+
hasConsent?: boolean;
|
|
15
21
|
resolveSection: (pathname: string) => "public" | "app";
|
|
16
22
|
sensitivePrefixes?: string[];
|
|
17
23
|
};
|
|
@@ -91,6 +97,8 @@ type AnalyticsEventInput = {
|
|
|
91
97
|
utmContent?: string;
|
|
92
98
|
visitorId?: string;
|
|
93
99
|
screenWidth?: number;
|
|
100
|
+
/** True only on the event sent by the Accept click: the API adopts the open cookieless session. */
|
|
101
|
+
consentGranted?: boolean;
|
|
94
102
|
};
|
|
95
103
|
type AnalyticsSummaryInput = {
|
|
96
104
|
id: string;
|