@carlonicora/nextjs-jsonapi 5.4.0 → 5.5.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-YQL2SGFR.mjs → BlockNoteEditor-GVQCKRMU.mjs} +5 -5
- package/dist/{BlockNoteEditor-4YCAIEPT.js → BlockNoteEditor-THBJH2UR.js} +20 -20
- package/dist/{BlockNoteEditor-4YCAIEPT.js.map → BlockNoteEditor-THBJH2UR.js.map} +1 -1
- package/dist/{BlockNoteViewer-AEJKJ27Q.mjs → BlockNoteViewer-U6E3DS4F.mjs} +3 -3
- package/dist/{BlockNoteViewer-YL3J7J2Y.js → BlockNoteViewer-VZOVKTFO.js} +4 -4
- package/dist/{BlockNoteViewer-YL3J7J2Y.js.map → BlockNoteViewer-VZOVKTFO.js.map} +1 -1
- package/dist/billing/index.js +442 -442
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-XCHSX3VC.mjs → chunk-3CGROPF3.mjs} +2 -2
- package/dist/{chunk-QMYQRPQC.mjs → chunk-6SQYXUVP.mjs} +2 -2
- package/dist/{chunk-NFBOSPNJ.js → chunk-G6UE6MEP.js} +59 -19
- package/dist/chunk-G6UE6MEP.js.map +1 -0
- package/dist/{chunk-YNCQSWQW.js → chunk-S4YJ5WCW.js} +8 -8
- package/dist/{chunk-YNCQSWQW.js.map → chunk-S4YJ5WCW.js.map} +1 -1
- package/dist/{chunk-3NLAXVIN.js → chunk-TY5FYP3G.js} +917 -881
- package/dist/chunk-TY5FYP3G.js.map +1 -0
- package/dist/{chunk-WC63PJSC.mjs → chunk-VC5A3AUZ.mjs} +61 -21
- package/dist/chunk-VC5A3AUZ.mjs.map +1 -0
- package/dist/{chunk-6DC2WVVB.mjs → chunk-W7F5BDSV.mjs} +2 -2
- package/dist/{chunk-5PPG6PL7.js → chunk-WPYT4UKJ.js} +3 -3
- package/dist/{chunk-5PPG6PL7.js.map → chunk-WPYT4UKJ.js.map} +1 -1
- package/dist/{chunk-EUKTBOI2.mjs → chunk-X5WIUUNG.mjs} +1471 -1435
- package/dist/chunk-X5WIUUNG.mjs.map +1 -0
- package/dist/{chunk-YW4ZCEWB.js → chunk-YDYVJM4I.js} +4 -4
- package/dist/{chunk-YW4ZCEWB.js.map → chunk-YDYVJM4I.js.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4 -4
- package/dist/components/editors/server.d.mts +15 -0
- package/dist/components/editors/server.d.ts +15 -0
- package/dist/components/editors/server.js +38 -0
- package/dist/components/editors/server.js.map +1 -0
- package/dist/components/editors/server.mjs +38 -0
- package/dist/components/editors/server.mjs.map +1 -0
- package/dist/components/index.d.mts +33 -10
- package/dist/components/index.d.ts +33 -10
- package/dist/components/index.js +7 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +8 -6
- package/dist/contexts/index.d.mts +9 -1
- package/dist/contexts/index.d.ts +9 -1
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.js +4 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +3 -3
- package/dist/email-automations/index.d.mts +3 -0
- package/dist/email-automations/index.d.ts +3 -0
- package/dist/email-automations/index.js +99 -95
- package/dist/email-automations/index.js.map +1 -1
- package/dist/email-automations/index.mjs +30 -26
- package/dist/email-automations/index.mjs.map +1 -1
- package/dist/features/analytics/index.d.mts +11 -4
- package/dist/features/analytics/index.d.ts +11 -4
- package/dist/features/analytics/index.js +127 -135
- package/dist/features/analytics/index.js.map +1 -1
- package/dist/features/analytics/index.mjs +16 -24
- package/dist/features/analytics/index.mjs.map +1 -1
- package/dist/features/analytics/server.d.mts +5 -2
- package/dist/features/analytics/server.d.ts +5 -2
- package/dist/features/analytics/server.js +7 -7
- package/dist/features/analytics/server.js.map +1 -1
- package/dist/features/analytics/server.mjs +5 -5
- package/dist/features/analytics/server.mjs.map +1 -1
- package/dist/features/blog/index.d.mts +12 -2
- package/dist/features/blog/index.d.ts +12 -2
- package/dist/features/blog/index.js +206 -195
- package/dist/features/blog/index.js.map +1 -1
- package/dist/features/blog/index.mjs +71 -60
- package/dist/features/blog/index.mjs.map +1 -1
- package/dist/features/blog/server.d.mts +4 -1
- package/dist/features/blog/server.d.ts +4 -1
- package/dist/features/blog/server.js +49 -21
- package/dist/features/blog/server.js.map +1 -1
- package/dist/features/blog/server.mjs +36 -8
- package/dist/features/blog/server.mjs.map +1 -1
- package/dist/features/help/index.js +38 -38
- package/dist/features/help/index.mjs +4 -4
- package/dist/features/tokenusage/index.d.mts +1 -3
- package/dist/features/tokenusage/index.d.ts +1 -3
- package/dist/features/tokenusage/index.js +127 -135
- package/dist/features/tokenusage/index.js.map +1 -1
- package/dist/features/tokenusage/index.mjs +10 -18
- package/dist/features/tokenusage/index.mjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/server/index.js +4 -4
- package/dist/server/index.mjs +3 -3
- package/package.json +9 -1
- package/src/components/editors/server/BlockNoteServerContent.tsx +28 -0
- package/src/components/editors/server/__tests__/renderBlockNoteHTML.spec.ts +44 -0
- package/src/components/editors/server/renderBlockNoteHTML.ts +26 -0
- package/src/components/editors/server-entry.ts +7 -0
- package/src/components/index.ts +1 -0
- package/src/components/viewers/BlockNoteStaticViewer.tsx +44 -0
- package/src/features/administration/components/AdminIndexContainer.tsx +61 -33
- package/src/features/administration/components/__tests__/AdminIndexContainer.spec.tsx +61 -1
- package/src/features/administration/components/index.ts +2 -1
- package/src/features/administration/contexts/AdministrationContext.tsx +11 -3
- package/src/features/administration/contexts/__tests__/AdministrationContext.spec.tsx +40 -0
- package/src/features/ai-connection/ai-connection.module.ts +2 -0
- package/src/features/ai-connection/contexts/AiConnectionsContext.tsx +3 -16
- package/src/features/ai-connection/contexts/__tests__/AiConnectionsContext.spec.tsx +33 -0
- package/src/features/analytics/__tests__/server-entry.spec.tsx +2 -1
- package/src/features/analytics/analytics.modules.ts +22 -5
- package/src/features/analytics/components/AnalyticsAdminContainer.tsx +4 -3
- package/src/features/analytics/components/AnalyticsAdminPageContainer.tsx +6 -3
- package/src/features/analytics/components/AnalyticsJourneyContainer.tsx +4 -3
- package/src/features/analytics/components/__tests__/AnalyticsJourneyContainer.spec.tsx +11 -0
- package/src/features/analytics/components/__tests__/AnalyticsPageContainers.spec.tsx +12 -1
- package/src/features/analytics/components/server/AnalyticsAdminPage.tsx +6 -3
- package/src/features/analytics/contexts/AnalyticsAdminContext.tsx +8 -17
- package/src/features/analytics/contexts/__tests__/AnalyticsAdminContext.spec.tsx +17 -0
- package/src/features/billing/stripe-price/stripe-price.module.ts +2 -0
- package/src/features/billing/stripe-product/stripe-product.module.ts +2 -0
- package/src/features/blog/components/admin/BlogAdminContainer.tsx +13 -6
- package/src/features/blog/components/admin/BlogCategoriesList.tsx +1 -1
- package/src/features/blog/components/admin/BlogCoverImageField.tsx +1 -1
- package/src/features/blog/components/admin/BlogPostContainer.tsx +0 -1
- package/src/features/blog/components/admin/BlogPostEditor.tsx +42 -33
- package/src/features/blog/components/admin/BlogPostTranslationEditor.tsx +12 -4
- package/src/features/blog/components/admin/BlogPostsList.tsx +1 -1
- package/src/features/blog/components/public/BlogPostCard.tsx +2 -9
- package/src/features/blog/components/public/BlogPostMeta.tsx +2 -2
- package/src/features/blog/components/public/BlogPostView.tsx +9 -3
- package/src/features/blog/components/public/__tests__/BlogList.spec.tsx +2 -0
- package/src/features/blog/components/public/__tests__/BlogPostView.spec.tsx +17 -11
- package/src/features/blog/server/fetchers.ts +57 -8
- package/src/features/email-automation/components/containers/EmailAutomationsListContainer.tsx +12 -3
- package/src/features/rbac/contexts/RbacContext.tsx +4 -7
- package/src/features/rbac/contexts/__tests__/RbacContext.spec.tsx +42 -0
- package/src/features/tokenusage/components/TokenUsageAdminContainer.tsx +4 -3
- package/src/features/tokenusage/contexts/TokenUsageAdminContext.tsx +3 -18
- package/src/features/tokenusage/contexts/__tests__/TokenUsageAdminContext.spec.tsx +17 -0
- package/src/features/tokenusage/tokenusage-admin.module.ts +4 -3
- package/src/features/tokenusage/tokenusage.modules.ts +12 -2
- package/src/features/user/contexts/UserContext.tsx +18 -3
- package/src/features/user/contexts/__tests__/UserContext.spec.tsx +95 -0
- package/dist/chunk-3NLAXVIN.js.map +0 -1
- package/dist/chunk-EUKTBOI2.mjs.map +0 -1
- package/dist/chunk-NFBOSPNJ.js.map +0 -1
- package/dist/chunk-WC63PJSC.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-YQL2SGFR.mjs.map → BlockNoteEditor-GVQCKRMU.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-AEJKJ27Q.mjs.map → BlockNoteViewer-U6E3DS4F.mjs.map} +0 -0
- /package/dist/{chunk-XCHSX3VC.mjs.map → chunk-3CGROPF3.mjs.map} +0 -0
- /package/dist/{chunk-QMYQRPQC.mjs.map → chunk-6SQYXUVP.mjs.map} +0 -0
- /package/dist/{chunk-6DC2WVVB.mjs.map → chunk-W7F5BDSV.mjs.map} +0 -0
|
@@ -179,7 +179,11 @@ type AnalyticsAdminProviderProps = {
|
|
|
179
179
|
initialFrom?: string;
|
|
180
180
|
/** ISO 8601 instant. Defaults to now. */
|
|
181
181
|
initialTo?: string;
|
|
182
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated No longer read. This provider only serves the dashboard, which
|
|
184
|
+
* is the current page, so its breadcrumb is not linked. Kept so existing
|
|
185
|
+
* callers still compile.
|
|
186
|
+
*/
|
|
183
187
|
pageUrl?: string;
|
|
184
188
|
/** Base route of the journey page each session row links to. */
|
|
185
189
|
sessionPageUrl?: string;
|
|
@@ -193,7 +197,7 @@ type AnalyticsAdminProviderProps = {
|
|
|
193
197
|
* `SharedContext`, and a descendant cannot inject nodes into an ancestor's
|
|
194
198
|
* provider value. That is why the filter state lives at this level.
|
|
195
199
|
*/
|
|
196
|
-
declare const AnalyticsAdminProvider: ({ children, initialFrom, initialTo,
|
|
200
|
+
declare const AnalyticsAdminProvider: ({ children, initialFrom, initialTo, sessionPageUrl, }: AnalyticsAdminProviderProps) => React.JSX.Element;
|
|
197
201
|
declare const useAnalyticsAdmin: () => AnalyticsAdminContextType;
|
|
198
202
|
|
|
199
203
|
/**
|
|
@@ -311,7 +315,10 @@ type Props$2 = {
|
|
|
311
315
|
declare function AnalyticsJourneyContainer({ sessionId, pageUrl }: Props$2): React.JSX.Element;
|
|
312
316
|
|
|
313
317
|
type Props$1 = {
|
|
314
|
-
/**
|
|
318
|
+
/**
|
|
319
|
+
* @deprecated No longer read: the dashboard is the current page, so its
|
|
320
|
+
* breadcrumb is not linked. Kept so existing callers still compile.
|
|
321
|
+
*/
|
|
315
322
|
pageUrl?: string;
|
|
316
323
|
/** Base route of the journey page each session row links to. */
|
|
317
324
|
sessionPageUrl?: string;
|
|
@@ -322,7 +329,7 @@ type Props$1 = {
|
|
|
322
329
|
* the `RoundPageContainer`; the provider sits above it because it publishes the
|
|
323
330
|
* filter bar into the title bar.
|
|
324
331
|
*/
|
|
325
|
-
declare function AnalyticsAdminPageContainer({
|
|
332
|
+
declare function AnalyticsAdminPageContainer({ sessionPageUrl }: Props$1): React.JSX.Element;
|
|
326
333
|
|
|
327
334
|
type Props = {
|
|
328
335
|
sessionId: string;
|
|
@@ -179,7 +179,11 @@ type AnalyticsAdminProviderProps = {
|
|
|
179
179
|
initialFrom?: string;
|
|
180
180
|
/** ISO 8601 instant. Defaults to now. */
|
|
181
181
|
initialTo?: string;
|
|
182
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated No longer read. This provider only serves the dashboard, which
|
|
184
|
+
* is the current page, so its breadcrumb is not linked. Kept so existing
|
|
185
|
+
* callers still compile.
|
|
186
|
+
*/
|
|
183
187
|
pageUrl?: string;
|
|
184
188
|
/** Base route of the journey page each session row links to. */
|
|
185
189
|
sessionPageUrl?: string;
|
|
@@ -193,7 +197,7 @@ type AnalyticsAdminProviderProps = {
|
|
|
193
197
|
* `SharedContext`, and a descendant cannot inject nodes into an ancestor's
|
|
194
198
|
* provider value. That is why the filter state lives at this level.
|
|
195
199
|
*/
|
|
196
|
-
declare const AnalyticsAdminProvider: ({ children, initialFrom, initialTo,
|
|
200
|
+
declare const AnalyticsAdminProvider: ({ children, initialFrom, initialTo, sessionPageUrl, }: AnalyticsAdminProviderProps) => React.JSX.Element;
|
|
197
201
|
declare const useAnalyticsAdmin: () => AnalyticsAdminContextType;
|
|
198
202
|
|
|
199
203
|
/**
|
|
@@ -311,7 +315,10 @@ type Props$2 = {
|
|
|
311
315
|
declare function AnalyticsJourneyContainer({ sessionId, pageUrl }: Props$2): React.JSX.Element;
|
|
312
316
|
|
|
313
317
|
type Props$1 = {
|
|
314
|
-
/**
|
|
318
|
+
/**
|
|
319
|
+
* @deprecated No longer read: the dashboard is the current page, so its
|
|
320
|
+
* breadcrumb is not linked. Kept so existing callers still compile.
|
|
321
|
+
*/
|
|
315
322
|
pageUrl?: string;
|
|
316
323
|
/** Base route of the journey page each session row links to. */
|
|
317
324
|
sessionPageUrl?: string;
|
|
@@ -322,7 +329,7 @@ type Props$1 = {
|
|
|
322
329
|
* the `RoundPageContainer`; the provider sits above it because it publishes the
|
|
323
330
|
* filter bar into the title bar.
|
|
324
331
|
*/
|
|
325
|
-
declare function AnalyticsAdminPageContainer({
|
|
332
|
+
declare function AnalyticsAdminPageContainer({ sessionPageUrl }: Props$1): React.JSX.Element;
|
|
326
333
|
|
|
327
334
|
type Props = {
|
|
328
335
|
sessionId: string;
|