@carlonicora/nextjs-jsonapi 1.9.1 → 1.11.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-TF7MR7IP.mjs → BlockNoteEditor-2GCDAIKS.mjs} +5 -5
- package/dist/{BlockNoteEditor-PX5RPSZR.js → BlockNoteEditor-PQTIP7BM.js} +15 -15
- package/dist/{BlockNoteEditor-PX5RPSZR.js.map → BlockNoteEditor-PQTIP7BM.js.map} +1 -1
- package/dist/JsonApiRequest-FXZCYIER.js +24 -0
- package/dist/{JsonApiRequest-FZAFAES3.js.map → JsonApiRequest-FXZCYIER.js.map} +1 -1
- package/dist/{JsonApiRequest-ARXYJ2AG.mjs → JsonApiRequest-HFWXMKMA.mjs} +2 -2
- package/dist/{chunk-I7OQ5WKX.js → chunk-6YD42BP6.js} +3 -3
- package/dist/{chunk-I7OQ5WKX.js.map → chunk-6YD42BP6.js.map} +1 -1
- package/dist/{chunk-LPBABDEP.js → chunk-AE3J2MAT.js} +45 -38
- package/dist/chunk-AE3J2MAT.js.map +1 -0
- package/dist/{chunk-PFBYNJ2R.js → chunk-AHEG4IYG.js} +422 -406
- package/dist/chunk-AHEG4IYG.js.map +1 -0
- package/dist/{chunk-UVXEP2ED.js → chunk-FPZPD4JI.js} +37 -12
- package/dist/chunk-FPZPD4JI.js.map +1 -0
- package/dist/{chunk-33UYFFIK.mjs → chunk-SJIVGCNM.mjs} +2 -2
- package/dist/{chunk-CHNXYTKO.mjs → chunk-TGBXBUWM.mjs} +37 -12
- package/dist/chunk-TGBXBUWM.mjs.map +1 -0
- package/dist/{chunk-MOVONDSX.mjs → chunk-UJY3EIUK.mjs} +12 -5
- package/dist/chunk-UJY3EIUK.mjs.map +1 -0
- package/dist/{chunk-AEZWDB5X.mjs → chunk-VSB546UN.mjs} +33 -17
- package/dist/{chunk-AEZWDB5X.mjs.map → chunk-VSB546UN.mjs.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.d.mts +6 -1
- package/dist/core/index.d.ts +6 -1
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/components/pages/PageContentContainer.tsx +22 -9
- package/src/core/registry/ModuleRegistry.ts +16 -1
- package/src/core/registry/bootstrapStore.ts +51 -11
- package/dist/JsonApiRequest-FZAFAES3.js +0 -24
- package/dist/chunk-CHNXYTKO.mjs.map +0 -1
- package/dist/chunk-LPBABDEP.js.map +0 -1
- package/dist/chunk-MOVONDSX.mjs.map +0 -1
- package/dist/chunk-PFBYNJ2R.js.map +0 -1
- package/dist/chunk-UVXEP2ED.js.map +0 -1
- /package/dist/{BlockNoteEditor-TF7MR7IP.mjs.map → BlockNoteEditor-2GCDAIKS.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-ARXYJ2AG.mjs.map → JsonApiRequest-HFWXMKMA.mjs.map} +0 -0
- /package/dist/{chunk-33UYFFIK.mjs.map → chunk-SJIVGCNM.mjs.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useI18nLocale,
|
|
10
10
|
useI18nRouter,
|
|
11
11
|
useI18nTranslations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SJIVGCNM.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AuthService,
|
|
15
15
|
ClientAbstractService,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
rehydrate,
|
|
31
31
|
useComposedRefs,
|
|
32
32
|
useIsMobile
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UJY3EIUK.mjs";
|
|
34
34
|
import {
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-PAWJFY3S.mjs";
|
|
@@ -7594,7 +7594,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
|
|
|
7594
7594
|
import dynamic from "next/dynamic";
|
|
7595
7595
|
import React37 from "react";
|
|
7596
7596
|
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
7597
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
7597
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-2GCDAIKS.mjs"), {
|
|
7598
7598
|
ssr: false
|
|
7599
7599
|
});
|
|
7600
7600
|
var BlockNoteEditorContainer = React37.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -9462,23 +9462,39 @@ import { useEffect as useEffect29, useState as useState37 } from "react";
|
|
|
9462
9462
|
import { jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
9463
9463
|
function PageContentContainer({ details, footer, content }) {
|
|
9464
9464
|
const [mounted, setMounted] = useState37(false);
|
|
9465
|
+
const isMobile = useIsMobile();
|
|
9465
9466
|
useEffect29(() => {
|
|
9466
9467
|
setMounted(true);
|
|
9467
9468
|
}, []);
|
|
9468
|
-
|
|
9469
|
-
|
|
9469
|
+
const isReady = mounted && isMobile !== void 0;
|
|
9470
|
+
if (!isReady) {
|
|
9471
|
+
return /* @__PURE__ */ jsx121("div", { className: "flex h-[calc(100vh-(--spacing(16)))] w-full" });
|
|
9472
|
+
}
|
|
9473
|
+
return /* @__PURE__ */ jsx121("div", { className: "flex h-[calc(100vh-(--spacing(16)))] w-full transition-opacity duration-150 animate-in fade-in", children: /* @__PURE__ */ jsxs73(
|
|
9474
|
+
ResizablePanelGroup,
|
|
9470
9475
|
{
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9476
|
+
direction: isMobile ? "vertical" : "horizontal",
|
|
9477
|
+
className: "items-stretch",
|
|
9478
|
+
autoSaveId: isMobile ? void 0 : "page-content-layout",
|
|
9479
|
+
children: [
|
|
9480
|
+
/* @__PURE__ */ jsx121(
|
|
9481
|
+
ResizablePanel,
|
|
9482
|
+
{
|
|
9483
|
+
id: "left-panel",
|
|
9484
|
+
defaultSize: isMobile ? 10 : 32,
|
|
9485
|
+
minSize: isMobile ? 10 : 20,
|
|
9486
|
+
maxSize: isMobile ? 90 : 40,
|
|
9487
|
+
children: /* @__PURE__ */ jsxs73("div", { className: `@container flex h-full flex-col ${isMobile ? "pb-4" : "pr-4"}`, children: [
|
|
9488
|
+
/* @__PURE__ */ jsx121("div", { className: "flex-1 overflow-y-auto", children: details }),
|
|
9489
|
+
footer && /* @__PURE__ */ jsx121("div", { className: "flex flex-col gap-y-2 pt-2 pb-2", children: footer })
|
|
9490
|
+
] })
|
|
9491
|
+
}
|
|
9492
|
+
),
|
|
9477
9493
|
/* @__PURE__ */ jsx121(ResizableHandle, { withHandle: true }),
|
|
9478
|
-
/* @__PURE__ */ jsx121(ResizablePanel, { id: "right-panel", className: "pl-4", children: /* @__PURE__ */ jsx121("div", { className: "h-full overflow-y-auto", children: content }) })
|
|
9479
|
-
]
|
|
9494
|
+
/* @__PURE__ */ jsx121(ResizablePanel, { id: "right-panel", className: isMobile ? "pt-4" : "pl-4", children: /* @__PURE__ */ jsx121("div", { className: "h-full overflow-y-auto", children: content }) })
|
|
9495
|
+
]
|
|
9480
9496
|
}
|
|
9481
|
-
);
|
|
9497
|
+
) });
|
|
9482
9498
|
}
|
|
9483
9499
|
__name(PageContentContainer, "PageContentContainer");
|
|
9484
9500
|
|
|
@@ -9599,7 +9615,7 @@ function useJsonApiGet(params) {
|
|
|
9599
9615
|
setLoading(true);
|
|
9600
9616
|
setError(null);
|
|
9601
9617
|
try {
|
|
9602
|
-
const { JsonApiGet } = await import("./JsonApiRequest-
|
|
9618
|
+
const { JsonApiGet } = await import("./JsonApiRequest-HFWXMKMA.mjs");
|
|
9603
9619
|
const language = navigator.language.split("-")[0] || "en";
|
|
9604
9620
|
const apiResponse = await JsonApiGet({
|
|
9605
9621
|
classKey: params.classKey,
|
|
@@ -9704,7 +9720,7 @@ function useJsonApiMutation(config) {
|
|
|
9704
9720
|
setLoading(true);
|
|
9705
9721
|
setError(null);
|
|
9706
9722
|
try {
|
|
9707
|
-
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-
|
|
9723
|
+
const { JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } = await import("./JsonApiRequest-HFWXMKMA.mjs");
|
|
9708
9724
|
const language = navigator.language.split("-")[0] || "en";
|
|
9709
9725
|
let apiResponse;
|
|
9710
9726
|
switch (config.method) {
|
|
@@ -12099,4 +12115,4 @@ export {
|
|
|
12099
12115
|
useUserTableStructure,
|
|
12100
12116
|
useContentTableStructure
|
|
12101
12117
|
};
|
|
12102
|
-
//# sourceMappingURL=chunk-
|
|
12118
|
+
//# sourceMappingURL=chunk-VSB546UN.mjs.map
|