@carlonicora/nextjs-jsonapi 1.87.4 → 1.88.1
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-QYJNJ4ZU.js → BlockNoteEditor-WBQCVHRG.js} +8 -8
- package/dist/{BlockNoteEditor-QYJNJ4ZU.js.map → BlockNoteEditor-WBQCVHRG.js.map} +1 -1
- package/dist/{BlockNoteEditor-Y33UF3NL.mjs → BlockNoteEditor-ZK2FZKIT.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-QGHPKVW2.js → chunk-6PDFD446.js} +152 -109
- package/dist/chunk-6PDFD446.js.map +1 -0
- package/dist/{chunk-6L3PWVNO.mjs → chunk-JAVXCFGG.mjs} +64 -21
- package/dist/chunk-JAVXCFGG.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +10 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +38 -5
- package/src/components/containers/TabsContainer.tsx +10 -0
- package/dist/chunk-6L3PWVNO.mjs.map +0 -1
- package/dist/chunk-QGHPKVW2.js.map +0 -1
- /package/dist/{BlockNoteEditor-Y33UF3NL.mjs.map → BlockNoteEditor-ZK2FZKIT.mjs.map} +0 -0
|
@@ -9207,7 +9207,7 @@ __name(FormCheckbox, "FormCheckbox");
|
|
|
9207
9207
|
import dynamic from "next/dynamic";
|
|
9208
9208
|
import React14 from "react";
|
|
9209
9209
|
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
9210
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
9210
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-ZK2FZKIT.mjs"), {
|
|
9211
9211
|
ssr: false
|
|
9212
9212
|
});
|
|
9213
9213
|
var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -13386,6 +13386,15 @@ function RoundPageContainer({
|
|
|
13386
13386
|
const rewriteUrl = useUrlRewriter();
|
|
13387
13387
|
const initialValue = tabs ? (section && tabs.find((i) => (i.key?.name ?? i.label) === section) ? section : null) || (tabs[0].key?.name ?? tabs[0].label) : void 0;
|
|
13388
13388
|
const [activeTab, setActiveTab] = useState46(initialValue);
|
|
13389
|
+
useEffect38(() => {
|
|
13390
|
+
if (tabs && section) {
|
|
13391
|
+
const tab = tabs.find((i) => (i.key?.name ?? i.label) === section);
|
|
13392
|
+
if (tab) {
|
|
13393
|
+
setActiveTab(section);
|
|
13394
|
+
}
|
|
13395
|
+
}
|
|
13396
|
+
}, [section, tabs]);
|
|
13397
|
+
const activeFillHeight = tabs?.find((t) => (t.key?.name ?? t.label) === activeTab)?.fillHeight === true;
|
|
13389
13398
|
return /* @__PURE__ */ jsxs87(Fragment22, { children: [
|
|
13390
13399
|
/* @__PURE__ */ jsx147(Header, { leftContent: headerLeftContent, className: "bg-sidebar border-0", children: headerChildren }),
|
|
13391
13400
|
/* @__PURE__ */ jsx147("div", { className: "flex h-[calc(100vh-3rem)] w-full flex-col p-2 pt-0 pl-0", children: /* @__PURE__ */ jsx147("div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: /* @__PURE__ */ jsxs87("div", { className: "flex w-full flex-col", children: [
|
|
@@ -13400,25 +13409,59 @@ function RoundPageContainer({
|
|
|
13400
13409
|
}
|
|
13401
13410
|
),
|
|
13402
13411
|
/* @__PURE__ */ jsxs87("div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
13403
|
-
/* @__PURE__ */ jsx147(
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13412
|
+
/* @__PURE__ */ jsx147(
|
|
13413
|
+
"div",
|
|
13414
|
+
{
|
|
13415
|
+
className: cn(
|
|
13416
|
+
`grow p-4`,
|
|
13417
|
+
activeFillHeight ? `flex flex-col overflow-hidden` : `overflow-y-auto`,
|
|
13418
|
+
fullWidth && `p-0`
|
|
13419
|
+
),
|
|
13420
|
+
children: /* @__PURE__ */ jsx147(
|
|
13421
|
+
"div",
|
|
13422
|
+
{
|
|
13423
|
+
className: cn(
|
|
13424
|
+
`mx-auto max-w-6xl space-y-8`,
|
|
13425
|
+
activeFillHeight && `flex w-full flex-1 min-h-0 flex-col space-y-0`,
|
|
13426
|
+
fullWidth && `max-w-full w-full p-0 h-full`
|
|
13427
|
+
),
|
|
13428
|
+
children: tabs ? /* @__PURE__ */ jsxs87(Fragment22, { children: [
|
|
13429
|
+
/* @__PURE__ */ jsxs87(
|
|
13430
|
+
Tabs,
|
|
13431
|
+
{
|
|
13432
|
+
value: activeTab,
|
|
13433
|
+
className: cn(`w-full`, activeFillHeight && `flex flex-1 min-h-0 flex-col`),
|
|
13434
|
+
onValueChange: (key) => {
|
|
13435
|
+
setActiveTab(key);
|
|
13436
|
+
if (module && id)
|
|
13437
|
+
rewriteUrl({ page: module, id, additionalParameters: { section: key } });
|
|
13438
|
+
},
|
|
13439
|
+
children: [
|
|
13440
|
+
/* @__PURE__ */ jsx147("div", { className: "p-4", children: /* @__PURE__ */ jsx147(TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ jsx147(TabsTrigger, { value: tab.key?.name ?? tab.label, className: `px-4`, children: tab.contentLabel ?? tab.label }, tab.label)) }) }),
|
|
13441
|
+
/* @__PURE__ */ jsx147(
|
|
13442
|
+
"div",
|
|
13443
|
+
{
|
|
13444
|
+
className: cn(`flex w-full px-4`, activeFillHeight ? `flex-1 min-h-0` : `overflow-y-auto`),
|
|
13445
|
+
children: tabs.map((tab) => /* @__PURE__ */ jsx147(
|
|
13446
|
+
TabsContent,
|
|
13447
|
+
{
|
|
13448
|
+
value: tab.key?.name ?? tab.label,
|
|
13449
|
+
className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
|
|
13450
|
+
children: tab.content
|
|
13451
|
+
},
|
|
13452
|
+
tab.label
|
|
13453
|
+
))
|
|
13454
|
+
}
|
|
13455
|
+
)
|
|
13456
|
+
]
|
|
13457
|
+
}
|
|
13458
|
+
),
|
|
13459
|
+
children && /* @__PURE__ */ jsx147("div", { className: "flex px-4", children })
|
|
13460
|
+
] }) : children
|
|
13461
|
+
}
|
|
13462
|
+
)
|
|
13463
|
+
}
|
|
13464
|
+
),
|
|
13422
13465
|
details && /* @__PURE__ */ jsx147(
|
|
13423
13466
|
"div",
|
|
13424
13467
|
{
|
|
@@ -21758,4 +21801,4 @@ export {
|
|
|
21758
21801
|
useOAuthClients,
|
|
21759
21802
|
useOAuthClient
|
|
21760
21803
|
};
|
|
21761
|
-
//# sourceMappingURL=chunk-
|
|
21804
|
+
//# sourceMappingURL=chunk-JAVXCFGG.mjs.map
|