@carlonicora/nextjs-jsonapi 6.14.0 → 6.15.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 (42) hide show
  1. package/dist/{BlockNoteEditor-QIVV2OB4.mjs → BlockNoteEditor-I3J6YYXK.mjs} +2 -2
  2. package/dist/{BlockNoteEditor-CUNH4LSQ.js → BlockNoteEditor-UIAX72XW.js} +9 -9
  3. package/dist/{BlockNoteEditor-CUNH4LSQ.js.map → BlockNoteEditor-UIAX72XW.js.map} +1 -1
  4. package/dist/billing/index.js +378 -378
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-GSRTVIIK.js → chunk-RT7XFGIN.js} +222 -218
  7. package/dist/chunk-RT7XFGIN.js.map +1 -0
  8. package/dist/{chunk-YKNULEHB.mjs → chunk-RYY7USSW.mjs} +9 -5
  9. package/dist/chunk-RYY7USSW.mjs.map +1 -0
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/editors/server.d.mts +7 -1
  13. package/dist/components/editors/server.d.ts +7 -1
  14. package/dist/components/editors/server.js +17 -4
  15. package/dist/components/editors/server.js.map +1 -1
  16. package/dist/components/editors/server.mjs +17 -4
  17. package/dist/components/editors/server.mjs.map +1 -1
  18. package/dist/components/index.js +2 -2
  19. package/dist/components/index.mjs +1 -1
  20. package/dist/contexts/index.js +2 -2
  21. package/dist/contexts/index.mjs +1 -1
  22. package/dist/email-automations/index.js +58 -58
  23. package/dist/email-automations/index.mjs +1 -1
  24. package/dist/features/analytics/index.js +96 -96
  25. package/dist/features/analytics/index.mjs +1 -1
  26. package/dist/features/blog/index.js +93 -93
  27. package/dist/features/blog/index.mjs +1 -1
  28. package/dist/features/help/index.js +31 -31
  29. package/dist/features/help/index.mjs +1 -1
  30. package/dist/features/tokenusage/index.js +102 -102
  31. package/dist/features/tokenusage/index.mjs +1 -1
  32. package/package.json +1 -1
  33. package/src/components/editors/server/__tests__/renderBlockNoteMarkdown.spec.ts +45 -0
  34. package/src/components/editors/server/renderBlockNoteHTML.ts +2 -18
  35. package/src/components/editors/server/renderBlockNoteMarkdown.ts +10 -0
  36. package/src/components/editors/server/serverEditor.ts +25 -0
  37. package/src/components/editors/server-entry.ts +1 -0
  38. package/src/hooks/__tests__/usePageTracker.spec.tsx +61 -0
  39. package/src/hooks/usePageTracker.ts +17 -7
  40. package/dist/chunk-GSRTVIIK.js.map +0 -1
  41. package/dist/chunk-YKNULEHB.mjs.map +0 -1
  42. /package/dist/{BlockNoteEditor-QIVV2OB4.mjs.map → BlockNoteEditor-I3J6YYXK.mjs.map} +0 -0
@@ -10852,7 +10852,7 @@ import { useRef as useRef18 } from "react";
10852
10852
  import dynamic from "next/dynamic";
10853
10853
  import React18 from "react";
10854
10854
  import { jsx as jsx91 } from "react/jsx-runtime";
10855
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-QIVV2OB4.mjs"), {
10855
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-I3J6YYXK.mjs"), {
10856
10856
  ssr: false
10857
10857
  });
10858
10858
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -15274,9 +15274,13 @@ import { useEffect as useEffect37, useRef as useRef26 } from "react";
15274
15274
  var EXCLUDED_ROUTES = ["/", "/login", "/register", "/forgot-password", "/reset-password", "/activate"];
15275
15275
  function readEntityTitle() {
15276
15276
  if (typeof document === "undefined") return null;
15277
- const afterEntityType = document.title.split("]")[1];
15278
- if (!afterEntityType) return null;
15279
- return afterEntityType.split("|")[0]?.trim() || null;
15277
+ const title = document.title;
15278
+ if (title.includes("]")) {
15279
+ const afterEntityType = title.split("]")[1];
15280
+ return afterEntityType?.split("|")[0]?.trim() || null;
15281
+ }
15282
+ if (!title.includes("|")) return null;
15283
+ return title.split("|")[0].split("\xB7")[0]?.trim() || null;
15280
15284
  }
15281
15285
  __name(readEntityTitle, "readEntityTitle");
15282
15286
  function usePageTracker() {
@@ -30784,4 +30788,4 @@ export {
30784
30788
  useOAuthClients,
30785
30789
  useOAuthClient
30786
30790
  };
30787
- //# sourceMappingURL=chunk-YKNULEHB.mjs.map
30791
+ //# sourceMappingURL=chunk-RYY7USSW.mjs.map