@carlonicora/nextjs-jsonapi 1.56.0 → 1.56.2
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-V3FCZ2H4.js → BlockNoteEditor-7QWJXR3A.js} +6 -6
- package/dist/{BlockNoteEditor-V3FCZ2H4.js.map → BlockNoteEditor-7QWJXR3A.js.map} +1 -1
- package/dist/{BlockNoteEditor-UX7LGDTO.mjs → BlockNoteEditor-RWQN3I3L.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-YBEJE65T.js → chunk-4CLLIRP5.js} +77 -73
- package/dist/chunk-4CLLIRP5.js.map +1 -0
- package/dist/{chunk-GIB6J3VK.mjs → chunk-HDFJZTQH.mjs} +12 -8
- package/dist/chunk-HDFJZTQH.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -1
- 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 +13 -7
- package/src/components/forms/FormPlaceAutocomplete.tsx +3 -2
- package/dist/chunk-GIB6J3VK.mjs.map +0 -1
- package/dist/chunk-YBEJE65T.js.map +0 -1
- /package/dist/{BlockNoteEditor-UX7LGDTO.mjs.map → BlockNoteEditor-RWQN3I3L.mjs.map} +0 -0
|
@@ -8344,7 +8344,7 @@ __name(FormCheckbox, "FormCheckbox");
|
|
|
8344
8344
|
import dynamic from "next/dynamic";
|
|
8345
8345
|
import React14 from "react";
|
|
8346
8346
|
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
8347
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
8347
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-RWQN3I3L.mjs"), {
|
|
8348
8348
|
ssr: false
|
|
8349
8349
|
});
|
|
8350
8350
|
var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -8913,7 +8913,7 @@ function FormPlaceAutocomplete({
|
|
|
8913
8913
|
},
|
|
8914
8914
|
body: JSON.stringify({
|
|
8915
8915
|
input,
|
|
8916
|
-
includedPrimaryTypes: includeTypes
|
|
8916
|
+
...includeTypes ? { includedPrimaryTypes: includeTypes } : {},
|
|
8917
8917
|
languageCode: "en"
|
|
8918
8918
|
})
|
|
8919
8919
|
});
|
|
@@ -11830,7 +11830,8 @@ function RoundPageContainer({ module, id, details, tabs, children, fullWidth })
|
|
|
11830
11830
|
const searchParams = useSearchParams();
|
|
11831
11831
|
const section = searchParams.get("section");
|
|
11832
11832
|
const rewriteUrl = useUrlRewriter();
|
|
11833
|
-
const
|
|
11833
|
+
const initialValue = tabs ? (section && tabs.find((i) => (i.key?.name ?? i.label) === section) ? section : null) || (tabs[0].key?.name ?? tabs[0].label) : void 0;
|
|
11834
|
+
const [activeTab, setActiveTab] = useState39(initialValue);
|
|
11834
11835
|
return /* @__PURE__ */ jsxs75(Fragment16, { children: [
|
|
11835
11836
|
/* @__PURE__ */ jsx129(Header, { className: "bg-sidebar border-0", children: headerChildren }),
|
|
11836
11837
|
/* @__PURE__ */ jsx129("div", { className: "flex h-[calc(100vh-3rem)] w-full flex-col p-2 pt-0 pl-0", children: /* @__PURE__ */ jsx129("div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: /* @__PURE__ */ jsxs75("div", { className: "flex w-full flex-col", children: [
|
|
@@ -11847,12 +11848,15 @@ function RoundPageContainer({ module, id, details, tabs, children, fullWidth })
|
|
|
11847
11848
|
/* @__PURE__ */ jsx129("div", { className: cn(`grow overflow-y-auto p-4`, fullWidth && `p-0`), children: /* @__PURE__ */ jsx129("div", { className: cn(`mx-auto max-w-6xl space-y-12 p-8`, fullWidth && `max-w-full w-full p-0`), children: tabs ? /* @__PURE__ */ jsxs75(
|
|
11848
11849
|
Tabs,
|
|
11849
11850
|
{
|
|
11850
|
-
|
|
11851
|
+
value: activeTab,
|
|
11851
11852
|
className: "w-full",
|
|
11852
|
-
onValueChange: (key) =>
|
|
11853
|
+
onValueChange: (key) => {
|
|
11854
|
+
setActiveTab(key);
|
|
11855
|
+
if (module && id) rewriteUrl({ page: module, id, additionalParameters: { section: key } });
|
|
11856
|
+
},
|
|
11853
11857
|
children: [
|
|
11854
|
-
/* @__PURE__ */ jsx129("div", { className: "p-4", children: /* @__PURE__ */ jsx129(TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ jsx129(TabsTrigger, { value: tab.label, className: `px-4`, children: tab.contentLabel ?? tab.label }, tab.label)) }) }),
|
|
11855
|
-
/* @__PURE__ */ jsx129("div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ jsx129(TabsContent, { value: tab.label, className: `pb-20`, children: tab.content }, tab.label)) })
|
|
11858
|
+
/* @__PURE__ */ jsx129("div", { className: "p-4", children: /* @__PURE__ */ jsx129(TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ jsx129(TabsTrigger, { value: tab.key?.name ?? tab.label, className: `px-4`, children: tab.contentLabel ?? tab.label }, tab.label)) }) }),
|
|
11859
|
+
/* @__PURE__ */ jsx129("div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ jsx129(TabsContent, { value: tab.key?.name ?? tab.label, className: `pb-20`, children: tab.content }, tab.label)) })
|
|
11856
11860
|
]
|
|
11857
11861
|
}
|
|
11858
11862
|
) : children }) }),
|
|
@@ -18754,4 +18758,4 @@ export {
|
|
|
18754
18758
|
useOAuthClients,
|
|
18755
18759
|
useOAuthClient
|
|
18756
18760
|
};
|
|
18757
|
-
//# sourceMappingURL=chunk-
|
|
18761
|
+
//# sourceMappingURL=chunk-HDFJZTQH.mjs.map
|