@carlonicora/nextjs-jsonapi 6.17.0 → 6.18.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-FAUTV5FW.js → BlockNoteEditor-HHTAZKRO.js} +9 -9
- package/dist/{BlockNoteEditor-FAUTV5FW.js.map → BlockNoteEditor-HHTAZKRO.js.map} +1 -1
- package/dist/{BlockNoteEditor-IGUHTERQ.mjs → BlockNoteEditor-KSOVYIOL.mjs} +2 -2
- package/dist/billing/index.js +378 -378
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-4OCBNCKH.js → chunk-B6WMZXRY.js} +18 -3
- package/dist/chunk-B6WMZXRY.js.map +1 -0
- package/dist/{chunk-RINMQQZH.mjs → chunk-MBLF236G.mjs} +18 -3
- package/dist/chunk-MBLF236G.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +6 -1
- package/dist/components/index.d.ts +6 -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/dist/email-automations/index.js +78 -78
- package/dist/email-automations/index.mjs +1 -1
- package/dist/features/analytics/index.js +96 -96
- package/dist/features/analytics/index.mjs +1 -1
- package/dist/features/blog/index.js +93 -93
- package/dist/features/blog/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +102 -102
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/forms/EditorSheet.tsx +21 -1
- package/src/components/forms/__tests__/EditorSheet.spec.tsx +40 -1
- package/dist/chunk-4OCBNCKH.js.map +0 -1
- package/dist/chunk-RINMQQZH.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-IGUHTERQ.mjs.map → BlockNoteEditor-KSOVYIOL.mjs.map} +0 -0
|
@@ -10147,6 +10147,7 @@ var sizeClasses = {
|
|
|
10147
10147
|
function EditorSheet({
|
|
10148
10148
|
form,
|
|
10149
10149
|
onSubmit,
|
|
10150
|
+
onBeforeSubmit,
|
|
10150
10151
|
onReset,
|
|
10151
10152
|
isFormDirty: isFormDirtyProp,
|
|
10152
10153
|
entityType,
|
|
@@ -10205,6 +10206,7 @@ function EditorSheet({
|
|
|
10205
10206
|
const wrappedOnSubmit = useCallback17(
|
|
10206
10207
|
async (values) => {
|
|
10207
10208
|
try {
|
|
10209
|
+
if (onBeforeSubmit && !await onBeforeSubmit(values)) return;
|
|
10208
10210
|
const result = await onSubmit(values);
|
|
10209
10211
|
setOpen(false);
|
|
10210
10212
|
if (result && onSaved) {
|
|
@@ -10227,7 +10229,20 @@ function EditorSheet({
|
|
|
10227
10229
|
});
|
|
10228
10230
|
}
|
|
10229
10231
|
},
|
|
10230
|
-
[
|
|
10232
|
+
[
|
|
10233
|
+
onSubmit,
|
|
10234
|
+
onBeforeSubmit,
|
|
10235
|
+
setOpen,
|
|
10236
|
+
onSuccess,
|
|
10237
|
+
onSaved,
|
|
10238
|
+
onRevalidate,
|
|
10239
|
+
onNavigate,
|
|
10240
|
+
generateUrl,
|
|
10241
|
+
module,
|
|
10242
|
+
isEdit,
|
|
10243
|
+
propagateChanges,
|
|
10244
|
+
t
|
|
10245
|
+
]
|
|
10231
10246
|
);
|
|
10232
10247
|
const headerTitle = titleOverride ?? (isEdit ? t("common.edit.update.title", { type: entityType }) : t("common.edit.create.title", { type: entityType }));
|
|
10233
10248
|
const headerDescription = descriptionOverride ?? (isEdit ? t("common.edit.update.description", { type: entityType, name: entityName2 ?? "" }) : t("common.edit.create.description", { type: entityType }));
|
|
@@ -10852,7 +10867,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10852
10867
|
import dynamic from "next/dynamic";
|
|
10853
10868
|
import React18 from "react";
|
|
10854
10869
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10855
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10870
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-KSOVYIOL.mjs"), {
|
|
10856
10871
|
ssr: false
|
|
10857
10872
|
});
|
|
10858
10873
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -30830,4 +30845,4 @@ export {
|
|
|
30830
30845
|
useOAuthClients,
|
|
30831
30846
|
useOAuthClient
|
|
30832
30847
|
};
|
|
30833
|
-
//# sourceMappingURL=chunk-
|
|
30848
|
+
//# sourceMappingURL=chunk-MBLF236G.mjs.map
|