@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
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getClientToken
|
|
3
|
-
} from "./chunk-AUXK7QSA.mjs";
|
|
4
|
-
import {
|
|
5
|
-
directFetch
|
|
6
|
-
} from "./chunk-PI56A4DG.mjs";
|
|
7
1
|
import {
|
|
8
2
|
DataClassRegistry,
|
|
9
3
|
ENV,
|
|
@@ -16,6 +10,12 @@ import {
|
|
|
16
10
|
translateResponse,
|
|
17
11
|
tryBootstrap
|
|
18
12
|
} from "./chunk-V5MI7RNB.mjs";
|
|
13
|
+
import {
|
|
14
|
+
getClientToken
|
|
15
|
+
} from "./chunk-AUXK7QSA.mjs";
|
|
16
|
+
import {
|
|
17
|
+
directFetch
|
|
18
|
+
} from "./chunk-PI56A4DG.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-PAWJFY3S.mjs";
|
|
@@ -4366,6 +4366,7 @@ var StripePriceService = class extends AbstractService {
|
|
|
4366
4366
|
};
|
|
4367
4367
|
|
|
4368
4368
|
// src/features/billing/stripe-price/stripe-price.module.ts
|
|
4369
|
+
import { CreditCardIcon } from "lucide-react";
|
|
4369
4370
|
var StripePriceModule = /* @__PURE__ */ __name((factory) => factory({
|
|
4370
4371
|
name: "stripe-prices",
|
|
4371
4372
|
// The administration route this entity is served at. `name` above stays the
|
|
@@ -4374,7 +4375,8 @@ var StripePriceModule = /* @__PURE__ */ __name((factory) => factory({
|
|
|
4374
4375
|
// rewrites the URL to a 404 on the first tab change.
|
|
4375
4376
|
pageUrl: "/administration/prices",
|
|
4376
4377
|
model: StripePrice,
|
|
4377
|
-
moduleId: "a7d3e5f1-8c9b-4a2e-b6d7-3f1c8e9a4b5d"
|
|
4378
|
+
moduleId: "a7d3e5f1-8c9b-4a2e-b6d7-3f1c8e9a4b5d",
|
|
4379
|
+
icon: CreditCardIcon
|
|
4378
4380
|
}), "StripePriceModule");
|
|
4379
4381
|
|
|
4380
4382
|
// src/features/billing/stripe-product/data/stripe-product.ts
|
|
@@ -4542,6 +4544,7 @@ var StripeProductService = class extends AbstractService {
|
|
|
4542
4544
|
};
|
|
4543
4545
|
|
|
4544
4546
|
// src/features/billing/stripe-product/stripe-product.module.ts
|
|
4547
|
+
import { CreditCardIcon as CreditCardIcon2 } from "lucide-react";
|
|
4545
4548
|
var StripeProductModule = /* @__PURE__ */ __name((factory) => factory({
|
|
4546
4549
|
name: "stripe-products",
|
|
4547
4550
|
// The administration route this entity is served at. `name` above stays the
|
|
@@ -4550,7 +4553,8 @@ var StripeProductModule = /* @__PURE__ */ __name((factory) => factory({
|
|
|
4550
4553
|
// rewrites the URL to a 404 on the first tab change.
|
|
4551
4554
|
pageUrl: "/administration/products",
|
|
4552
4555
|
model: StripeProduct,
|
|
4553
|
-
moduleId: "f8c4a1e9-3b2d-4f7a-9e5c-1d8a6b3c9f2e"
|
|
4556
|
+
moduleId: "f8c4a1e9-3b2d-4f7a-9e5c-1d8a6b3c9f2e",
|
|
4557
|
+
icon: CreditCardIcon2
|
|
4554
4558
|
}), "StripeProductModule");
|
|
4555
4559
|
|
|
4556
4560
|
// src/features/billing/stripe-subscription/data/stripe-subscription.ts
|
|
@@ -5460,6 +5464,7 @@ var AiConnectionService = class extends AbstractService {
|
|
|
5460
5464
|
};
|
|
5461
5465
|
|
|
5462
5466
|
// src/features/ai-connection/ai-connection.module.ts
|
|
5467
|
+
import { PlugZapIcon } from "lucide-react";
|
|
5463
5468
|
var AiConnectionModule = /* @__PURE__ */ __name((factory) => factory({
|
|
5464
5469
|
name: "ai-connections",
|
|
5465
5470
|
// The administration route this entity is served at. `name` above stays the
|
|
@@ -5468,7 +5473,8 @@ var AiConnectionModule = /* @__PURE__ */ __name((factory) => factory({
|
|
|
5468
5473
|
// rewrites the URL to a 404 on the first tab change.
|
|
5469
5474
|
pageUrl: "/administration/ai-connections",
|
|
5470
5475
|
model: AiConnection,
|
|
5471
|
-
moduleId: "7d3f2b8a-91c4-4e6d-a5f0-2c9b8e4d1a37"
|
|
5476
|
+
moduleId: "7d3f2b8a-91c4-4e6d-a5f0-2c9b8e4d1a37",
|
|
5477
|
+
icon: PlugZapIcon
|
|
5472
5478
|
}), "AiConnectionModule");
|
|
5473
5479
|
|
|
5474
5480
|
// src/features/company/company.module.ts
|
|
@@ -10375,6 +10381,9 @@ var ReferralStatsModule = /* @__PURE__ */ __name((factory) => factory({
|
|
|
10375
10381
|
model: ReferralStats
|
|
10376
10382
|
}), "ReferralStatsModule");
|
|
10377
10383
|
|
|
10384
|
+
// src/features/tokenusage/tokenusage-admin.module.ts
|
|
10385
|
+
import { CoinsIcon } from "lucide-react";
|
|
10386
|
+
|
|
10378
10387
|
// src/features/tokenusage/data/tokenusage-admin-breakdown.ts
|
|
10379
10388
|
var TokenUsageAdminBreakdown = class extends AbstractApiData {
|
|
10380
10389
|
static {
|
|
@@ -10611,9 +10620,12 @@ var TokenUsageAdminTimeline = class extends AbstractApiData {
|
|
|
10611
10620
|
};
|
|
10612
10621
|
|
|
10613
10622
|
// src/features/tokenusage/tokenusage-admin.module.ts
|
|
10614
|
-
var TokenUsageAdminSummaryModule = /* @__PURE__ */ __name((factory) => factory({ name: "tokenusages/administration/summary", model: TokenUsageAdminSummary }), "TokenUsageAdminSummaryModule");
|
|
10615
|
-
var TokenUsageAdminTimelineModule = /* @__PURE__ */ __name((factory) => factory({ name: "tokenusages/administration/timeline", model: TokenUsageAdminTimeline }), "TokenUsageAdminTimelineModule");
|
|
10616
|
-
var TokenUsageAdminBreakdownModule = /* @__PURE__ */ __name((factory) => factory({ name: "tokenusages/administration/breakdown", model: TokenUsageAdminBreakdown }), "TokenUsageAdminBreakdownModule");
|
|
10623
|
+
var TokenUsageAdminSummaryModule = /* @__PURE__ */ __name((factory) => factory({ name: "tokenusages/administration/summary", model: TokenUsageAdminSummary, icon: CoinsIcon }), "TokenUsageAdminSummaryModule");
|
|
10624
|
+
var TokenUsageAdminTimelineModule = /* @__PURE__ */ __name((factory) => factory({ name: "tokenusages/administration/timeline", model: TokenUsageAdminTimeline, icon: CoinsIcon }), "TokenUsageAdminTimelineModule");
|
|
10625
|
+
var TokenUsageAdminBreakdownModule = /* @__PURE__ */ __name((factory) => factory({ name: "tokenusages/administration/breakdown", model: TokenUsageAdminBreakdown, icon: CoinsIcon }), "TokenUsageAdminBreakdownModule");
|
|
10626
|
+
|
|
10627
|
+
// src/features/tokenusage/tokenusage.modules.ts
|
|
10628
|
+
import { CoinsIcon as CoinsIcon2 } from "lucide-react";
|
|
10617
10629
|
|
|
10618
10630
|
// src/features/tokenusage/data/tokenusage-report-breakdown.ts
|
|
10619
10631
|
var TokenUsageReportBreakdown = class extends AbstractApiData {
|
|
@@ -10827,17 +10839,29 @@ var TokenUsageReportTimeline = class extends AbstractApiData {
|
|
|
10827
10839
|
|
|
10828
10840
|
// src/features/tokenusage/tokenusage.modules.ts
|
|
10829
10841
|
var tokenUsageModules = /* @__PURE__ */ __name((factory) => ({
|
|
10830
|
-
TokenUsageAdminSummary: factory({
|
|
10831
|
-
|
|
10842
|
+
TokenUsageAdminSummary: factory({
|
|
10843
|
+
name: "tokenusages/administration/summary",
|
|
10844
|
+
model: TokenUsageAdminSummary,
|
|
10845
|
+
icon: CoinsIcon2
|
|
10846
|
+
}),
|
|
10847
|
+
TokenUsageAdminTimeline: factory({
|
|
10848
|
+
name: "tokenusages/administration/timeline",
|
|
10849
|
+
model: TokenUsageAdminTimeline,
|
|
10850
|
+
icon: CoinsIcon2
|
|
10851
|
+
}),
|
|
10832
10852
|
TokenUsageAdminBreakdown: factory({
|
|
10833
10853
|
name: "tokenusages/administration/breakdown",
|
|
10834
|
-
model: TokenUsageAdminBreakdown
|
|
10854
|
+
model: TokenUsageAdminBreakdown,
|
|
10855
|
+
icon: CoinsIcon2
|
|
10835
10856
|
}),
|
|
10836
10857
|
TokenUsageReportSummary: factory({ name: "tokenusages/reports/summary", model: TokenUsageReportSummary }),
|
|
10837
10858
|
TokenUsageReportTimeline: factory({ name: "tokenusages/reports/timeline", model: TokenUsageReportTimeline }),
|
|
10838
10859
|
TokenUsageReportBreakdown: factory({ name: "tokenusages/reports/breakdown", model: TokenUsageReportBreakdown })
|
|
10839
10860
|
}), "tokenUsageModules");
|
|
10840
10861
|
|
|
10862
|
+
// src/features/analytics/analytics.modules.ts
|
|
10863
|
+
import { ChartNoAxesCombinedIcon } from "lucide-react";
|
|
10864
|
+
|
|
10841
10865
|
// src/features/analytics/data/analytics-breakdown.ts
|
|
10842
10866
|
var AnalyticsBreakdown = class extends AbstractApiData {
|
|
10843
10867
|
static {
|
|
@@ -11222,11 +11246,27 @@ var AnalyticsTimeline = class extends AbstractApiData {
|
|
|
11222
11246
|
// src/features/analytics/analytics.modules.ts
|
|
11223
11247
|
var analyticsModules = /* @__PURE__ */ __name((factory) => ({
|
|
11224
11248
|
AnalyticsEvent: factory({ name: "analytics/events", model: AnalyticsEvent }),
|
|
11225
|
-
AnalyticsSummary: factory({
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11249
|
+
AnalyticsSummary: factory({
|
|
11250
|
+
name: "analytics/administration/summary",
|
|
11251
|
+
model: AnalyticsSummary,
|
|
11252
|
+
icon: ChartNoAxesCombinedIcon
|
|
11253
|
+
}),
|
|
11254
|
+
AnalyticsTimeline: factory({
|
|
11255
|
+
name: "analytics/administration/timeline",
|
|
11256
|
+
model: AnalyticsTimeline,
|
|
11257
|
+
icon: ChartNoAxesCombinedIcon
|
|
11258
|
+
}),
|
|
11259
|
+
AnalyticsBreakdown: factory({
|
|
11260
|
+
name: "analytics/administration/breakdown",
|
|
11261
|
+
model: AnalyticsBreakdown,
|
|
11262
|
+
icon: ChartNoAxesCombinedIcon
|
|
11263
|
+
}),
|
|
11264
|
+
AnalyticsSession: factory({
|
|
11265
|
+
name: "analytics/administration/sessions",
|
|
11266
|
+
model: AnalyticsSession,
|
|
11267
|
+
icon: ChartNoAxesCombinedIcon
|
|
11268
|
+
}),
|
|
11269
|
+
AnalyticsPageView: factory({ name: "pageviews", model: AnalyticsPageView, icon: ChartNoAxesCombinedIcon })
|
|
11230
11270
|
}), "analyticsModules");
|
|
11231
11271
|
|
|
11232
11272
|
// src/features/tokenusage/lib/config.ts
|
|
@@ -11627,4 +11667,4 @@ export {
|
|
|
11627
11667
|
AuditLogService,
|
|
11628
11668
|
AuditLogModule
|
|
11629
11669
|
};
|
|
11630
|
-
//# sourceMappingURL=chunk-
|
|
11670
|
+
//# sourceMappingURL=chunk-VC5A3AUZ.mjs.map
|