@carlonicora/nextjs-jsonapi 6.21.0 → 6.23.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-NXCRWS2O.js → BlockNoteEditor-PPRML5CO.js} +23 -23
- package/dist/{BlockNoteEditor-NXCRWS2O.js.map → BlockNoteEditor-PPRML5CO.js.map} +1 -1
- package/dist/{BlockNoteEditor-66ZACETR.mjs → BlockNoteEditor-UO4ZRCUM.mjs} +8 -8
- package/dist/{BlockNoteViewer-2UDFTXRS.mjs → BlockNoteViewer-2TJZ6JET.mjs} +6 -6
- package/dist/{BlockNoteViewer-4OHBRE4Q.js → BlockNoteViewer-K2HBF3IP.js} +7 -7
- package/dist/{BlockNoteViewer-4OHBRE4Q.js.map → BlockNoteViewer-K2HBF3IP.js.map} +1 -1
- package/dist/{JsonApiRequest-IKKHWCPB.mjs → JsonApiRequest-ADLBJ5RX.mjs} +2 -2
- package/dist/JsonApiRequest-KC6DOHKT.js +26 -0
- package/dist/{JsonApiRequest-G4J2WTSU.js.map → JsonApiRequest-KC6DOHKT.js.map} +1 -1
- package/dist/billing/index.js +495 -495
- package/dist/billing/index.mjs +7 -7
- package/dist/{chunk-N5ZE2Z6I.js → chunk-53SD4YRF.js} +5 -5
- package/dist/{chunk-N5ZE2Z6I.js.map → chunk-53SD4YRF.js.map} +1 -1
- package/dist/{chunk-4RA5PRXX.mjs → chunk-7OIWOPM5.mjs} +2 -2
- package/dist/{chunk-WCEYT3GG.js → chunk-A5M3MORY.js} +6 -3
- package/dist/chunk-A5M3MORY.js.map +1 -0
- package/dist/{chunk-AUD6ZLBB.mjs → chunk-BE6UMM5X.mjs} +13 -8
- package/dist/chunk-BE6UMM5X.mjs.map +1 -0
- package/dist/{chunk-KV4N7DEG.js → chunk-BQ2WAG4K.js} +29 -24
- package/dist/chunk-BQ2WAG4K.js.map +1 -0
- package/dist/{chunk-OQQ7CZWT.js → chunk-GMMDXINC.js} +12 -12
- package/dist/{chunk-OQQ7CZWT.js.map → chunk-GMMDXINC.js.map} +1 -1
- package/dist/{chunk-ZB6OYIMB.js → chunk-HN7L6RRW.js} +1296 -1093
- package/dist/{chunk-DPXOPLQP.mjs.map → chunk-HN7L6RRW.js.map} +1 -1
- package/dist/{chunk-OHHA5BBX.mjs → chunk-HP6DT6K3.mjs} +17 -15
- package/dist/chunk-HP6DT6K3.mjs.map +1 -0
- package/dist/{chunk-JSHLBRFV.mjs → chunk-N2BFT7KI.mjs} +2 -2
- package/dist/chunk-N2BFT7KI.mjs.map +1 -0
- package/dist/{chunk-YWLSIIE6.js → chunk-P7L6OFX5.js} +11 -11
- package/dist/{chunk-YWLSIIE6.js.map → chunk-P7L6OFX5.js.map} +1 -1
- package/dist/{chunk-3CGU6WXY.js → chunk-R5722NLL.js} +926 -924
- package/dist/chunk-R5722NLL.js.map +1 -0
- package/dist/{chunk-GM4VZTWL.js → chunk-RCOKQ3R4.js} +14 -8
- package/dist/chunk-RCOKQ3R4.js.map +1 -0
- package/dist/{chunk-M3N7LPHX.mjs → chunk-S7SPAC6X.mjs} +6 -3
- package/dist/chunk-S7SPAC6X.mjs.map +1 -0
- package/dist/{chunk-54K2CZ2F.js → chunk-SO3YUCL6.js} +4 -4
- package/dist/{chunk-54K2CZ2F.js.map → chunk-SO3YUCL6.js.map} +1 -1
- package/dist/{chunk-DPXOPLQP.mjs → chunk-T6G2F2BK.mjs} +220 -17
- package/dist/chunk-T6G2F2BK.mjs.map +1 -0
- package/dist/{chunk-G2UIQSNJ.mjs → chunk-TMV7TL7O.mjs} +4 -4
- package/dist/{chunk-BD6ARGGI.js → chunk-TNTCLVUR.js} +15 -15
- package/dist/{chunk-BD6ARGGI.js.map → chunk-TNTCLVUR.js.map} +1 -1
- package/dist/{chunk-QIEF7HIL.mjs → chunk-VNUT2D27.mjs} +2 -2
- package/dist/{chunk-KTGKW72G.mjs → chunk-W4ML6D2X.mjs} +2 -2
- package/dist/{chunk-MQ7TXALH.mjs → chunk-YMCL3JXZ.mjs} +14 -8
- package/dist/chunk-YMCL3JXZ.mjs.map +1 -0
- package/dist/{chunk-QGVVF77L.js → chunk-YSE2Z4RB.js} +11 -11
- package/dist/{chunk-QGVVF77L.js.map → chunk-YSE2Z4RB.js.map} +1 -1
- package/dist/{chunk-A3RB47X4.mjs → chunk-YTDGYI62.mjs} +3 -3
- package/dist/client/JsonApiClient.d.ts +5 -0
- package/dist/client/JsonApiClient.d.ts.map +1 -1
- package/dist/client/index.js +8 -8
- package/dist/client/index.mjs +7 -7
- package/dist/client/request.d.ts +5 -0
- package/dist/client/request.d.ts.map +1 -1
- package/dist/components/index.js +8 -8
- package/dist/components/index.mjs +7 -7
- package/dist/contexts/index.js +8 -8
- package/dist/contexts/index.mjs +7 -7
- package/dist/core/abstracts/AbstractService.d.ts +5 -0
- package/dist/core/abstracts/AbstractService.d.ts.map +1 -1
- package/dist/core/abstracts/ClientAbstractService.d.ts +5 -0
- package/dist/core/abstracts/ClientAbstractService.d.ts.map +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +24 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +23 -5
- package/dist/core/registry/ModuleRegistry.d.ts +3 -0
- package/dist/core/registry/ModuleRegistry.d.ts.map +1 -1
- package/dist/email-automations/index.js +121 -121
- package/dist/email-automations/index.mjs +7 -7
- package/dist/features/analytics/index.js +139 -139
- package/dist/features/analytics/index.mjs +7 -7
- package/dist/features/analytics/server.js +9 -9
- package/dist/features/analytics/server.mjs +7 -7
- package/dist/features/blog/index.js +154 -154
- package/dist/features/blog/index.mjs +7 -7
- package/dist/features/blog/server.js +27 -27
- package/dist/features/blog/server.mjs +6 -6
- package/dist/features/discord-connection/data/discord-connect-confirmation.d.ts +11 -0
- package/dist/features/discord-connection/data/discord-connect-confirmation.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connect-confirmation.interface.d.ts +14 -0
- package/dist/features/discord-connection/data/discord-connect-confirmation.interface.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connect-confirmation.service.d.ts +10 -0
- package/dist/features/discord-connection/data/discord-connect-confirmation.service.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connect-intent.d.ts +11 -0
- package/dist/features/discord-connection/data/discord-connect-intent.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connect-intent.interface.d.ts +15 -0
- package/dist/features/discord-connection/data/discord-connect-intent.interface.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connect-intent.service.d.ts +11 -0
- package/dist/features/discord-connection/data/discord-connect-intent.service.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connection.d.ts +14 -0
- package/dist/features/discord-connection/data/discord-connection.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connection.interface.d.ts +10 -0
- package/dist/features/discord-connection/data/discord-connection.interface.d.ts.map +1 -0
- package/dist/features/discord-connection/data/discord-connection.service.d.ts +12 -0
- package/dist/features/discord-connection/data/discord-connection.service.d.ts.map +1 -0
- package/dist/features/discord-connection/data/index.d.ts +10 -0
- package/dist/features/discord-connection/data/index.d.ts.map +1 -0
- package/dist/features/discord-connection/discord-connection.module.d.ts +5 -0
- package/dist/features/discord-connection/discord-connection.module.d.ts.map +1 -0
- package/dist/features/discord-connection/index.d.ts +3 -0
- package/dist/features/discord-connection/index.d.ts.map +1 -0
- package/dist/features/help/index.js +41 -41
- package/dist/features/help/index.mjs +7 -7
- package/dist/features/tokenusage/index.js +130 -130
- package/dist/features/tokenusage/index.mjs +7 -7
- package/dist/features/user/contexts/UserContext.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -6
- package/dist/local-transport-MJPOKPTU.js +15 -0
- package/dist/{local-transport-4YDJ6FQG.js.map → local-transport-MJPOKPTU.js.map} +1 -1
- package/dist/{local-transport-C7YTA4I7.mjs → local-transport-RVD4FZGA.mjs} +5 -5
- package/dist/offline/index.js +51 -51
- package/dist/offline/index.mjs +6 -6
- package/dist/{request-66FGJIHB.mjs → request-4AWGPIGH.mjs} +2 -2
- package/dist/{request-6W6UGKJV.js → request-H5FZBZA2.js} +3 -3
- package/dist/{request-6W6UGKJV.js.map → request-H5FZBZA2.js.map} +1 -1
- package/dist/server/index.js +8 -8
- package/dist/server/index.mjs +7 -7
- package/dist/unified/JsonApiRequest.d.ts +5 -0
- package/dist/unified/JsonApiRequest.d.ts.map +1 -1
- package/dist/write-through-7I3LA2WN.mjs +15 -0
- package/dist/write-through-HE2QSOVI.js +15 -0
- package/dist/{write-through-BAPS24GL.js.map → write-through-HE2QSOVI.js.map} +1 -1
- package/package.json +1 -1
- package/src/client/JsonApiClient.ts +10 -0
- package/src/client/__tests__/request.credentials.spec.ts +103 -0
- package/src/client/request.ts +9 -0
- package/src/components/forms/EditorSheet.tsx +2 -2
- package/src/components/forms/__tests__/EditorSheet.spec.tsx +16 -0
- package/src/core/abstracts/AbstractService.ts +10 -0
- package/src/core/abstracts/ClientAbstractService.ts +10 -0
- package/src/core/index.ts +3 -0
- package/src/core/registry/ModuleRegistry.ts +4 -0
- package/src/features/discord-connection/data/__tests__/DiscordConnection.spec.ts +114 -0
- package/src/features/discord-connection/data/discord-connect-confirmation.interface.ts +16 -0
- package/src/features/discord-connection/data/discord-connect-confirmation.service.ts +21 -0
- package/src/features/discord-connection/data/discord-connect-confirmation.ts +46 -0
- package/src/features/discord-connection/data/discord-connect-intent.interface.ts +16 -0
- package/src/features/discord-connection/data/discord-connect-intent.service.ts +20 -0
- package/src/features/discord-connection/data/discord-connect-intent.ts +42 -0
- package/src/features/discord-connection/data/discord-connection.interface.ts +10 -0
- package/src/features/discord-connection/data/discord-connection.service.ts +17 -0
- package/src/features/discord-connection/data/discord-connection.ts +41 -0
- package/src/features/discord-connection/data/index.ts +9 -0
- package/src/features/discord-connection/discord-connection.module.ts +28 -0
- package/src/features/discord-connection/index.ts +2 -0
- package/src/features/oauth/components/OAuthClientDetail.tsx +1 -1
- package/src/features/user/contexts/UserContext.tsx +6 -2
- package/src/index.ts +1 -1
- package/src/unified/JsonApiRequest.ts +14 -0
- package/dist/JsonApiRequest-G4J2WTSU.js +0 -26
- package/dist/chunk-3CGU6WXY.js.map +0 -1
- package/dist/chunk-AUD6ZLBB.mjs.map +0 -1
- package/dist/chunk-GM4VZTWL.js.map +0 -1
- package/dist/chunk-JSHLBRFV.mjs.map +0 -1
- package/dist/chunk-KV4N7DEG.js.map +0 -1
- package/dist/chunk-M3N7LPHX.mjs.map +0 -1
- package/dist/chunk-MQ7TXALH.mjs.map +0 -1
- package/dist/chunk-OHHA5BBX.mjs.map +0 -1
- package/dist/chunk-WCEYT3GG.js.map +0 -1
- package/dist/chunk-ZB6OYIMB.js.map +0 -1
- package/dist/local-transport-4YDJ6FQG.js +0 -15
- package/dist/write-through-BAPS24GL.js +0 -15
- package/dist/write-through-IWQKXYHE.mjs +0 -15
- /package/dist/{BlockNoteEditor-66ZACETR.mjs.map → BlockNoteEditor-UO4ZRCUM.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-2UDFTXRS.mjs.map → BlockNoteViewer-2TJZ6JET.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-IKKHWCPB.mjs.map → JsonApiRequest-ADLBJ5RX.mjs.map} +0 -0
- /package/dist/{chunk-4RA5PRXX.mjs.map → chunk-7OIWOPM5.mjs.map} +0 -0
- /package/dist/{chunk-G2UIQSNJ.mjs.map → chunk-TMV7TL7O.mjs.map} +0 -0
- /package/dist/{chunk-QIEF7HIL.mjs.map → chunk-VNUT2D27.mjs.map} +0 -0
- /package/dist/{chunk-KTGKW72G.mjs.map → chunk-W4ML6D2X.mjs.map} +0 -0
- /package/dist/{chunk-A3RB47X4.mjs.map → chunk-YTDGYI62.mjs.map} +0 -0
- /package/dist/{local-transport-C7YTA4I7.mjs.map → local-transport-RVD4FZGA.mjs.map} +0 -0
- /package/dist/{request-66FGJIHB.mjs.map → request-4AWGPIGH.mjs.map} +0 -0
- /package/dist/{write-through-IWQKXYHE.mjs.map → write-through-7I3LA2WN.mjs.map} +0 -0
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isReferralEnabled,
|
|
20
20
|
isRegistrationAllowed,
|
|
21
21
|
useWaitlistText
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TMV7TL7O.mjs";
|
|
23
23
|
import {
|
|
24
24
|
getRoleId,
|
|
25
25
|
isRolesConfigured
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
useIsMobile,
|
|
97
97
|
validateItalianTaxCode,
|
|
98
98
|
validatePartitaIva
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-T6G2F2BK.mjs";
|
|
100
100
|
import {
|
|
101
101
|
useOfflineState
|
|
102
102
|
} from "./chunk-OY65RYD3.mjs";
|
|
@@ -110,16 +110,16 @@ import {
|
|
|
110
110
|
useI18nLocale,
|
|
111
111
|
useI18nRouter,
|
|
112
112
|
useI18nTranslations
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-N2BFT7KI.mjs";
|
|
114
114
|
import {
|
|
115
115
|
CURRENT_USER_STORAGE_KEY
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-BE6UMM5X.mjs";
|
|
117
117
|
import {
|
|
118
118
|
isOfflineConfigured
|
|
119
119
|
} from "./chunk-4ZJIUTIV.mjs";
|
|
120
120
|
import {
|
|
121
121
|
ENV
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-YMCL3JXZ.mjs";
|
|
123
123
|
import {
|
|
124
124
|
__name
|
|
125
125
|
} from "./chunk-PAWJFY3S.mjs";
|
|
@@ -10283,8 +10283,8 @@ function EditorSheet({
|
|
|
10283
10283
|
render: /* @__PURE__ */ jsx88("div", {}),
|
|
10284
10284
|
nativeButton: false,
|
|
10285
10285
|
size: "sm",
|
|
10286
|
-
variant: isLabelled ? "
|
|
10287
|
-
className: "text-muted-foreground",
|
|
10286
|
+
variant: isLabelled ? "default" : "ghost",
|
|
10287
|
+
className: isLabelled ? void 0 : "text-muted-foreground",
|
|
10288
10288
|
children: [
|
|
10289
10289
|
/* @__PURE__ */ jsx88(PencilIcon3, {}),
|
|
10290
10290
|
isLabelled && t("ui.buttons.edit")
|
|
@@ -10868,7 +10868,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10868
10868
|
import dynamic from "next/dynamic";
|
|
10869
10869
|
import React18 from "react";
|
|
10870
10870
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10871
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10871
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-UO4ZRCUM.mjs"), {
|
|
10872
10872
|
ssr: false
|
|
10873
10873
|
});
|
|
10874
10874
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -12495,6 +12495,7 @@ var UserProvider = /* @__PURE__ */ __name(({ children, dehydratedUser }) => {
|
|
|
12495
12495
|
type: t(`entities.users`, { count: user ? 1 : 2 })
|
|
12496
12496
|
};
|
|
12497
12497
|
const functions = [];
|
|
12498
|
+
const actionBar = [];
|
|
12498
12499
|
if (user) {
|
|
12499
12500
|
response.element = `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`;
|
|
12500
12501
|
if (user.isDeleted) {
|
|
@@ -12502,13 +12503,14 @@ var UserProvider = /* @__PURE__ */ __name(({ children, dehydratedUser }) => {
|
|
|
12502
12503
|
} else {
|
|
12503
12504
|
if (!user.isActivated)
|
|
12504
12505
|
functions.push(/* @__PURE__ */ jsx112(UserResentInvitationEmail, { user }, `UserResentInvitationEmail`));
|
|
12505
|
-
|
|
12506
|
+
actionBar.push(/* @__PURE__ */ jsx112(UserDeleter, { user }, `UserDeleter`));
|
|
12506
12507
|
if (hasRole(getRoleId().Administrator) && isAccountDeletionEnabled())
|
|
12507
12508
|
functions.push(/* @__PURE__ */ jsx112(AccountDeletionAdminTrigger, { user }, `AccountDeletionAdminTrigger`));
|
|
12508
12509
|
}
|
|
12509
|
-
|
|
12510
|
+
actionBar.push(/* @__PURE__ */ jsx112(UserEditor, { user, propagateChanges: setUser }, `UserEditor`));
|
|
12510
12511
|
}
|
|
12511
12512
|
if (functions.length > 0) response.functions = functions;
|
|
12513
|
+
if (actionBar.length > 0) response.actionBar = actionBar;
|
|
12512
12514
|
return response;
|
|
12513
12515
|
}, "title");
|
|
12514
12516
|
return /* @__PURE__ */ jsx112(SharedProvider, { value: { breadcrumbs: breadcrumb(), title: title() }, children: /* @__PURE__ */ jsx112(
|
|
@@ -17140,7 +17142,7 @@ __name(BlockNoteEditorMentionSuggestionMenu, "BlockNoteEditorMentionSuggestionMe
|
|
|
17140
17142
|
import dynamic2 from "next/dynamic";
|
|
17141
17143
|
import React29 from "react";
|
|
17142
17144
|
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
17143
|
-
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-
|
|
17145
|
+
var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-2TJZ6JET.mjs").then((m) => m.BlockNoteViewer), { ssr: false });
|
|
17144
17146
|
var BlockNoteViewerContainer = React29.memo(/* @__PURE__ */ __name(function ViewerContainer(props) {
|
|
17145
17147
|
return /* @__PURE__ */ jsx178(BlockNoteViewer, { ...props });
|
|
17146
17148
|
}, "ViewerContainer"));
|
|
@@ -17422,7 +17424,7 @@ function useJsonApiGet(params) {
|
|
|
17422
17424
|
setLoading(true);
|
|
17423
17425
|
setError(null);
|
|
17424
17426
|
try {
|
|
17425
|
-
const { JsonApiGet } = await import("./JsonApiRequest-
|
|
17427
|
+
const { JsonApiGet } = await import("./JsonApiRequest-ADLBJ5RX.mjs");
|
|
17426
17428
|
const language = navigator.language.split("-")[0] || "en";
|
|
17427
17429
|
const apiResponse = await JsonApiGet({
|
|
17428
17430
|
classKey: params.classKey,
|
|
@@ -17527,7 +17529,7 @@ function useJsonApiMutation(config) {
|
|
|
17527
17529
|
setLoading(true);
|
|
17528
17530
|
setError(null);
|
|
17529
17531
|
try {
|
|
17530
|
-
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-
|
|
17532
|
+
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-ADLBJ5RX.mjs");
|
|
17531
17533
|
const language = navigator.language.split("-")[0] || "en";
|
|
17532
17534
|
let apiResponse;
|
|
17533
17535
|
switch (config.method) {
|
|
@@ -28965,7 +28967,7 @@ function OAuthClientDetail({
|
|
|
28965
28967
|
/* @__PURE__ */ jsx323(Separator, {}),
|
|
28966
28968
|
/* @__PURE__ */ jsx323("div", { className: "flex flex-wrap gap-x-6 gap-y-2 text-sm text-muted-foreground", children: /* @__PURE__ */ jsx323("span", { children: t("oauth.ui.detail.created", { date: createdDate }) }) }),
|
|
28967
28969
|
/* @__PURE__ */ jsxs197("div", { className: "flex gap-3 pt-4", children: [
|
|
28968
|
-
onEdit && /* @__PURE__ */ jsxs197(Button, {
|
|
28970
|
+
onEdit && /* @__PURE__ */ jsxs197(Button, { onClick: onEdit, disabled: isLoading, children: [
|
|
28969
28971
|
/* @__PURE__ */ jsx323(Pencil2, { className: "h-4 w-4 me-2" }),
|
|
28970
28972
|
t("ui.buttons.edit")
|
|
28971
28973
|
] }),
|
|
@@ -30885,4 +30887,4 @@ export {
|
|
|
30885
30887
|
useOAuthClients,
|
|
30886
30888
|
useOAuthClient
|
|
30887
30889
|
};
|
|
30888
|
-
//# sourceMappingURL=chunk-
|
|
30890
|
+
//# sourceMappingURL=chunk-HP6DT6K3.mjs.map
|