@carlonicora/nextjs-jsonapi 1.87.3 → 1.88.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-VTHYA7C7.js → BlockNoteEditor-6MCXSIXP.js} +8 -8
- package/dist/{BlockNoteEditor-VTHYA7C7.js.map → BlockNoteEditor-6MCXSIXP.js.map} +1 -1
- package/dist/{BlockNoteEditor-RAOTXBVG.mjs → BlockNoteEditor-RTA7EJWW.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-MDKDNR3R.js → chunk-2S3UA52H.js} +181 -136
- package/dist/chunk-2S3UA52H.js.map +1 -0
- package/dist/{chunk-T2NYLP7P.mjs → chunk-5ZNQKOSM.mjs} +93 -48
- package/dist/chunk-5ZNQKOSM.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 +29 -5
- package/src/components/containers/TabsContainer.tsx +10 -0
- package/src/components/forms/FormBlockNote.tsx +7 -1
- package/dist/chunk-MDKDNR3R.js.map +0 -1
- package/dist/chunk-T2NYLP7P.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-RAOTXBVG.mjs.map → BlockNoteEditor-RTA7EJWW.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-RTA7EJWW.mjs"), {
|
|
9211
9211
|
ssr: false
|
|
9212
9212
|
});
|
|
9213
9213
|
var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -9235,38 +9235,48 @@ function FormBlockNote({
|
|
|
9235
9235
|
mentionSearchParams,
|
|
9236
9236
|
mentionResolveFn
|
|
9237
9237
|
}) {
|
|
9238
|
-
return /* @__PURE__ */ jsx74(
|
|
9239
|
-
|
|
9238
|
+
return /* @__PURE__ */ jsx74(
|
|
9239
|
+
"div",
|
|
9240
9240
|
{
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
BlockNoteEditorContainer,
|
|
9241
|
+
className: cn(
|
|
9242
|
+
"flex w-full flex-col",
|
|
9243
|
+
stretch && "min-h-0 flex-1 [&>[data-slot=field]]:min-h-0 [&>[data-slot=field]]:flex-1",
|
|
9244
|
+
className
|
|
9245
|
+
),
|
|
9246
|
+
children: /* @__PURE__ */ jsx74(
|
|
9247
|
+
FormFieldWrapper,
|
|
9249
9248
|
{
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9249
|
+
form,
|
|
9250
|
+
name: id,
|
|
9251
|
+
label: name,
|
|
9252
|
+
isRequired,
|
|
9253
|
+
description,
|
|
9254
|
+
testId,
|
|
9255
|
+
children: (field) => /* @__PURE__ */ jsx74(
|
|
9256
|
+
BlockNoteEditorContainer,
|
|
9257
|
+
{
|
|
9258
|
+
id: form.getValues("id"),
|
|
9259
|
+
type,
|
|
9260
|
+
initialContent: field.value,
|
|
9261
|
+
onChange: (content, isEmpty) => {
|
|
9262
|
+
field.onChange(content);
|
|
9263
|
+
onEmptyChange?.(isEmpty);
|
|
9264
|
+
},
|
|
9265
|
+
placeholder,
|
|
9266
|
+
bordered: true,
|
|
9267
|
+
inlineContentSpecs,
|
|
9268
|
+
renderOverlays,
|
|
9269
|
+
enableMentions,
|
|
9270
|
+
mentionSearchFn,
|
|
9271
|
+
mentionSearchParams,
|
|
9272
|
+
mentionResolveFn,
|
|
9273
|
+
className: cn(stretch && "min-h-0 flex-1")
|
|
9274
|
+
}
|
|
9275
|
+
)
|
|
9266
9276
|
}
|
|
9267
9277
|
)
|
|
9268
9278
|
}
|
|
9269
|
-
)
|
|
9279
|
+
);
|
|
9270
9280
|
}
|
|
9271
9281
|
__name(FormBlockNote, "FormBlockNote");
|
|
9272
9282
|
|
|
@@ -13376,6 +13386,7 @@ function RoundPageContainer({
|
|
|
13376
13386
|
const rewriteUrl = useUrlRewriter();
|
|
13377
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;
|
|
13378
13388
|
const [activeTab, setActiveTab] = useState46(initialValue);
|
|
13389
|
+
const activeFillHeight = tabs?.find((t) => (t.key?.name ?? t.label) === activeTab)?.fillHeight === true;
|
|
13379
13390
|
return /* @__PURE__ */ jsxs87(Fragment22, { children: [
|
|
13380
13391
|
/* @__PURE__ */ jsx147(Header, { leftContent: headerLeftContent, className: "bg-sidebar border-0", children: headerChildren }),
|
|
13381
13392
|
/* @__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: [
|
|
@@ -13390,25 +13401,59 @@ function RoundPageContainer({
|
|
|
13390
13401
|
}
|
|
13391
13402
|
),
|
|
13392
13403
|
/* @__PURE__ */ jsxs87("div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
13393
|
-
/* @__PURE__ */ jsx147(
|
|
13394
|
-
|
|
13395
|
-
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
|
|
13399
|
-
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
|
|
13404
|
+
/* @__PURE__ */ jsx147(
|
|
13405
|
+
"div",
|
|
13406
|
+
{
|
|
13407
|
+
className: cn(
|
|
13408
|
+
`grow p-4`,
|
|
13409
|
+
activeFillHeight ? `flex flex-col overflow-hidden` : `overflow-y-auto`,
|
|
13410
|
+
fullWidth && `p-0`
|
|
13411
|
+
),
|
|
13412
|
+
children: /* @__PURE__ */ jsx147(
|
|
13413
|
+
"div",
|
|
13414
|
+
{
|
|
13415
|
+
className: cn(
|
|
13416
|
+
`mx-auto max-w-6xl space-y-8`,
|
|
13417
|
+
activeFillHeight && `flex w-full flex-1 min-h-0 flex-col space-y-0`,
|
|
13418
|
+
fullWidth && `max-w-full w-full p-0 h-full`
|
|
13419
|
+
),
|
|
13420
|
+
children: tabs ? /* @__PURE__ */ jsxs87(Fragment22, { children: [
|
|
13421
|
+
/* @__PURE__ */ jsxs87(
|
|
13422
|
+
Tabs,
|
|
13423
|
+
{
|
|
13424
|
+
value: activeTab,
|
|
13425
|
+
className: cn(`w-full`, activeFillHeight && `flex flex-1 min-h-0 flex-col`),
|
|
13426
|
+
onValueChange: (key) => {
|
|
13427
|
+
setActiveTab(key);
|
|
13428
|
+
if (module && id)
|
|
13429
|
+
rewriteUrl({ page: module, id, additionalParameters: { section: key } });
|
|
13430
|
+
},
|
|
13431
|
+
children: [
|
|
13432
|
+
/* @__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)) }) }),
|
|
13433
|
+
/* @__PURE__ */ jsx147(
|
|
13434
|
+
"div",
|
|
13435
|
+
{
|
|
13436
|
+
className: cn(`flex w-full px-4`, activeFillHeight ? `flex-1 min-h-0` : `overflow-y-auto`),
|
|
13437
|
+
children: tabs.map((tab) => /* @__PURE__ */ jsx147(
|
|
13438
|
+
TabsContent,
|
|
13439
|
+
{
|
|
13440
|
+
value: tab.key?.name ?? tab.label,
|
|
13441
|
+
className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
|
|
13442
|
+
children: tab.content
|
|
13443
|
+
},
|
|
13444
|
+
tab.label
|
|
13445
|
+
))
|
|
13446
|
+
}
|
|
13447
|
+
)
|
|
13448
|
+
]
|
|
13449
|
+
}
|
|
13450
|
+
),
|
|
13451
|
+
children && /* @__PURE__ */ jsx147("div", { className: "flex px-4", children })
|
|
13452
|
+
] }) : children
|
|
13453
|
+
}
|
|
13454
|
+
)
|
|
13455
|
+
}
|
|
13456
|
+
),
|
|
13412
13457
|
details && /* @__PURE__ */ jsx147(
|
|
13413
13458
|
"div",
|
|
13414
13459
|
{
|
|
@@ -21748,4 +21793,4 @@ export {
|
|
|
21748
21793
|
useOAuthClients,
|
|
21749
21794
|
useOAuthClient
|
|
21750
21795
|
};
|
|
21751
|
-
//# sourceMappingURL=chunk-
|
|
21796
|
+
//# sourceMappingURL=chunk-5ZNQKOSM.mjs.map
|