@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.
- package/dist/{BlockNoteEditor-QIVV2OB4.mjs → BlockNoteEditor-I3J6YYXK.mjs} +2 -2
- package/dist/{BlockNoteEditor-CUNH4LSQ.js → BlockNoteEditor-UIAX72XW.js} +9 -9
- package/dist/{BlockNoteEditor-CUNH4LSQ.js.map → BlockNoteEditor-UIAX72XW.js.map} +1 -1
- package/dist/billing/index.js +378 -378
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-GSRTVIIK.js → chunk-RT7XFGIN.js} +222 -218
- package/dist/chunk-RT7XFGIN.js.map +1 -0
- package/dist/{chunk-YKNULEHB.mjs → chunk-RYY7USSW.mjs} +9 -5
- package/dist/chunk-RYY7USSW.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/editors/server.d.mts +7 -1
- package/dist/components/editors/server.d.ts +7 -1
- package/dist/components/editors/server.js +17 -4
- package/dist/components/editors/server.js.map +1 -1
- package/dist/components/editors/server.mjs +17 -4
- package/dist/components/editors/server.mjs.map +1 -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 +58 -58
- 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/editors/server/__tests__/renderBlockNoteMarkdown.spec.ts +45 -0
- package/src/components/editors/server/renderBlockNoteHTML.ts +2 -18
- package/src/components/editors/server/renderBlockNoteMarkdown.ts +10 -0
- package/src/components/editors/server/serverEditor.ts +25 -0
- package/src/components/editors/server-entry.ts +1 -0
- package/src/hooks/__tests__/usePageTracker.spec.tsx +61 -0
- package/src/hooks/usePageTracker.ts +17 -7
- package/dist/chunk-GSRTVIIK.js.map +0 -1
- package/dist/chunk-YKNULEHB.mjs.map +0 -1
- /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-
|
|
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
|
|
15278
|
-
if (
|
|
15279
|
-
|
|
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-
|
|
30791
|
+
//# sourceMappingURL=chunk-RYY7USSW.mjs.map
|