@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.
- package/dist/{BlockNoteEditor-PJWPR4IU.js → BlockNoteEditor-NHEJMFCW.js} +6 -6
- package/dist/{BlockNoteEditor-PJWPR4IU.js.map → BlockNoteEditor-NHEJMFCW.js.map} +1 -1
- package/dist/{BlockNoteEditor-ZNACEXKX.mjs → BlockNoteEditor-UKGNL227.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-CPXN5OGI.mjs → chunk-TTVVHFS4.mjs} +15 -5
- package/dist/chunk-TTVVHFS4.mjs.map +1 -0
- package/dist/{chunk-B7ZH2R62.js → chunk-UUMDUIY6.js} +15 -5
- package/dist/chunk-UUMDUIY6.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +4 -2
- package/dist/components/index.d.ts +4 -2
- 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/forms/CommonEditorButtons.tsx +7 -4
- package/src/components/forms/EditorSheet.tsx +9 -1
- package/dist/chunk-B7ZH2R62.js.map +0 -1
- package/dist/chunk-CPXN5OGI.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-ZNACEXKX.mjs.map → BlockNoteEditor-UKGNL227.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -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(
|
|
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-
|
|
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-
|
|
21634
|
+
//# sourceMappingURL=chunk-TTVVHFS4.mjs.map
|