@carlonicora/nextjs-jsonapi 1.84.0 → 1.85.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.
@@ -47,7 +47,7 @@ import {
47
47
  TabsList,
48
48
  TabsTrigger,
49
49
  useCurrentUserContext
50
- } from "../chunk-CPXN5OGI.mjs";
50
+ } from "../chunk-TTVVHFS4.mjs";
51
51
  import {
52
52
  getRoleId,
53
53
  getStripePublishableKey
@@ -8415,7 +8415,7 @@ __name(CommonDeleter, "CommonDeleter");
8415
8415
  // src/components/forms/CommonEditorButtons.tsx
8416
8416
  import { useTranslations as useTranslations9 } from "next-intl";
8417
8417
  import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
8418
- function CommonEditorButtons({ isEdit, form, disabled, setOpen }) {
8418
+ function CommonEditorButtons({ isEdit, form, disabled, setOpen, hideSubmit }) {
8419
8419
  const t = useTranslations9();
8420
8420
  return /* @__PURE__ */ jsxs36("div", { className: "flex justify-end", children: [
8421
8421
  /* @__PURE__ */ jsx64(
@@ -8429,7 +8429,7 @@ function CommonEditorButtons({ isEdit, form, disabled, setOpen }) {
8429
8429
  children: t(`ui.buttons.cancel`)
8430
8430
  }
8431
8431
  ),
8432
- /* @__PURE__ */ jsx64(Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
8432
+ !hideSubmit && /* @__PURE__ */ jsx64(Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
8433
8433
  ] });
8434
8434
  }
8435
8435
  __name(CommonEditorButtons, "CommonEditorButtons");
@@ -8580,6 +8580,7 @@ function EditorSheet({
8580
8580
  onNavigate,
8581
8581
  size = "xl",
8582
8582
  disabled,
8583
+ hideSubmit,
8583
8584
  trigger,
8584
8585
  forceShow,
8585
8586
  onClose,
@@ -8649,7 +8650,16 @@ function EditorSheet({
8649
8650
  ] }),
8650
8651
  /* @__PURE__ */ jsx68(Form, { ...form, children: /* @__PURE__ */ jsxs39("form", { onSubmit: form.handleSubmit(wrappedOnSubmit), className: "flex min-h-0 flex-1 flex-col", children: [
8651
8652
  /* @__PURE__ */ jsx68("div", { className: "flex-1 overflow-y-auto px-6 py-4", children }),
8652
- /* @__PURE__ */ jsx68(SheetFooter, { className: "shrink-0 border-t px-6 py-4", children: /* @__PURE__ */ jsx68(CommonEditorButtons, { form, setOpen: handleOpenChange, isEdit, disabled }) })
8653
+ /* @__PURE__ */ jsx68(SheetFooter, { className: "shrink-0 border-t px-6 py-4", children: /* @__PURE__ */ jsx68(
8654
+ CommonEditorButtons,
8655
+ {
8656
+ form,
8657
+ setOpen: handleOpenChange,
8658
+ isEdit,
8659
+ disabled,
8660
+ hideSubmit
8661
+ }
8662
+ ) })
8653
8663
  ] }) })
8654
8664
  ] })
8655
8665
  ] }),
@@ -9200,7 +9210,7 @@ __name(FormCheckbox, "FormCheckbox");
9200
9210
  import dynamic from "next/dynamic";
9201
9211
  import React14 from "react";
9202
9212
  import { jsx as jsx73 } from "react/jsx-runtime";
9203
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-ZNACEXKX.mjs"), {
9213
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-UKGNL227.mjs"), {
9204
9214
  ssr: false
9205
9215
  });
9206
9216
  var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -21621,4 +21631,4 @@ export {
21621
21631
  useOAuthClients,
21622
21632
  useOAuthClient
21623
21633
  };
21624
- //# sourceMappingURL=chunk-CPXN5OGI.mjs.map
21634
+ //# sourceMappingURL=chunk-TTVVHFS4.mjs.map