@carlonicora/nextjs-jsonapi 6.23.0 → 6.24.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.
Files changed (33) hide show
  1. package/dist/{BlockNoteEditor-UO4ZRCUM.mjs → BlockNoteEditor-ENDOVTAW.mjs} +2 -2
  2. package/dist/{BlockNoteEditor-PPRML5CO.js → BlockNoteEditor-MONT74RQ.js} +9 -9
  3. package/dist/{BlockNoteEditor-PPRML5CO.js.map → BlockNoteEditor-MONT74RQ.js.map} +1 -1
  4. package/dist/billing/index.js +378 -378
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-R5722NLL.js → chunk-BDWV4KYR.js} +312 -309
  7. package/dist/chunk-BDWV4KYR.js.map +1 -0
  8. package/dist/{chunk-HP6DT6K3.mjs → chunk-OZADFYE7.mjs} +5 -2
  9. package/dist/chunk-OZADFYE7.mjs.map +1 -0
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/forms/EditorSheet.d.ts +6 -1
  13. package/dist/components/forms/EditorSheet.d.ts.map +1 -1
  14. package/dist/components/index.js +2 -2
  15. package/dist/components/index.mjs +1 -1
  16. package/dist/contexts/index.js +2 -2
  17. package/dist/contexts/index.mjs +1 -1
  18. package/dist/email-automations/index.js +78 -78
  19. package/dist/email-automations/index.mjs +1 -1
  20. package/dist/features/analytics/index.js +107 -107
  21. package/dist/features/analytics/index.mjs +1 -1
  22. package/dist/features/blog/index.js +93 -93
  23. package/dist/features/blog/index.mjs +1 -1
  24. package/dist/features/help/index.js +31 -31
  25. package/dist/features/help/index.mjs +1 -1
  26. package/dist/features/tokenusage/index.js +102 -102
  27. package/dist/features/tokenusage/index.mjs +1 -1
  28. package/package.json +1 -1
  29. package/src/components/forms/EditorSheet.tsx +8 -0
  30. package/src/components/forms/__tests__/EditorSheet.spec.tsx +30 -0
  31. package/dist/chunk-HP6DT6K3.mjs.map +0 -1
  32. package/dist/chunk-R5722NLL.js.map +0 -1
  33. /package/dist/{BlockNoteEditor-UO4ZRCUM.mjs.map → BlockNoteEditor-ENDOVTAW.mjs.map} +0 -0
@@ -10149,6 +10149,7 @@ function EditorSheet({
10149
10149
  form,
10150
10150
  onSubmit,
10151
10151
  onBeforeSubmit,
10152
+ onSubmitError,
10152
10153
  onReset,
10153
10154
  isFormDirty: isFormDirtyProp,
10154
10155
  entityType,
@@ -10224,6 +10225,7 @@ function EditorSheet({
10224
10225
  }
10225
10226
  }
10226
10227
  } catch (error) {
10228
+ if (onSubmitError?.(error)) return;
10227
10229
  errorToast({
10228
10230
  title: isEdit ? t("generic.errors.update") : t("generic.errors.create"),
10229
10231
  error
@@ -10233,6 +10235,7 @@ function EditorSheet({
10233
10235
  [
10234
10236
  onSubmit,
10235
10237
  onBeforeSubmit,
10238
+ onSubmitError,
10236
10239
  setOpen,
10237
10240
  onSuccess,
10238
10241
  onSaved,
@@ -10868,7 +10871,7 @@ import { useRef as useRef18 } from "react";
10868
10871
  import dynamic from "next/dynamic";
10869
10872
  import React18 from "react";
10870
10873
  import { jsx as jsx91 } from "react/jsx-runtime";
10871
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-UO4ZRCUM.mjs"), {
10874
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-ENDOVTAW.mjs"), {
10872
10875
  ssr: false
10873
10876
  });
10874
10877
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -30887,4 +30890,4 @@ export {
30887
30890
  useOAuthClients,
30888
30891
  useOAuthClient
30889
30892
  };
30890
- //# sourceMappingURL=chunk-HP6DT6K3.mjs.map
30893
+ //# sourceMappingURL=chunk-OZADFYE7.mjs.map