@carlonicora/nextjs-jsonapi 6.31.0 → 6.32.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 (30) hide show
  1. package/dist/{BlockNoteEditor-O4E67ECL.mjs → BlockNoteEditor-HQTBH527.mjs} +2 -2
  2. package/dist/{BlockNoteEditor-ICGGCW6N.js → BlockNoteEditor-YONN45A3.js} +15 -15
  3. package/dist/{BlockNoteEditor-ICGGCW6N.js.map → BlockNoteEditor-YONN45A3.js.map} +1 -1
  4. package/dist/billing/index.js +378 -378
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-BT3VFB3I.mjs → chunk-6DNGLY5Y.mjs} +4 -4
  7. package/dist/{chunk-BT3VFB3I.mjs.map → chunk-6DNGLY5Y.mjs.map} +1 -1
  8. package/dist/{chunk-M7FA63QE.js → chunk-J37GJKCB.js} +4 -4
  9. package/dist/{chunk-M7FA63QE.js.map → chunk-J37GJKCB.js.map} +1 -1
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/index.js +2 -2
  13. package/dist/components/index.mjs +1 -1
  14. package/dist/contexts/index.js +2 -2
  15. package/dist/contexts/index.mjs +1 -1
  16. package/dist/email-automations/index.js +78 -78
  17. package/dist/email-automations/index.mjs +1 -1
  18. package/dist/features/analytics/index.js +107 -107
  19. package/dist/features/analytics/index.mjs +1 -1
  20. package/dist/features/auth/components/forms/Logout.d.ts +7 -1
  21. package/dist/features/auth/components/forms/Logout.d.ts.map +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/features/auth/components/forms/Logout.tsx +8 -2
  30. /package/dist/{BlockNoteEditor-O4E67ECL.mjs.map → BlockNoteEditor-HQTBH527.mjs.map} +0 -0
@@ -81,7 +81,7 @@ import {
81
81
  useCurrentUserContext,
82
82
  useDataListRetriever,
83
83
  usePageUrlGenerator
84
- } from "../chunk-BT3VFB3I.mjs";
84
+ } from "../chunk-6DNGLY5Y.mjs";
85
85
  import "../chunk-5T2AQMQ2.mjs";
86
86
  import "../chunk-VOXD3ZLY.mjs";
87
87
  import {
@@ -10883,7 +10883,7 @@ import { useRef as useRef18 } from "react";
10883
10883
  import dynamic from "next/dynamic";
10884
10884
  import React18 from "react";
10885
10885
  import { jsx as jsx91 } from "react/jsx-runtime";
10886
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-O4E67ECL.mjs"), {
10886
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-HQTBH527.mjs"), {
10887
10887
  ssr: false
10888
10888
  });
10889
10889
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -22116,14 +22116,14 @@ __name(clearClientStorage, "clearClientStorage");
22116
22116
 
22117
22117
  // src/features/auth/components/forms/Logout.tsx
22118
22118
  import { Fragment as Fragment44, jsx as jsx231 } from "react/jsx-runtime";
22119
- function Logout({ storageKeys, beforeLogout }) {
22119
+ function Logout({ storageKeys, beforeLogout, redirectTo }) {
22120
22120
  const generateUrl = usePageUrlGenerator();
22121
22121
  useEffect66(() => {
22122
22122
  const logOut = /* @__PURE__ */ __name(async () => {
22123
22123
  if (beforeLogout && !await beforeLogout()) return;
22124
22124
  clearClientStorage([CURRENT_USER_STORAGE_KEY, ...storageKeys ?? []]);
22125
22125
  await AuthService.logout();
22126
- window.location.href = generateUrl({ page: `/` });
22126
+ window.location.href = redirectTo ?? generateUrl({ page: `/` });
22127
22127
  }, "logOut");
22128
22128
  logOut();
22129
22129
  }, []);
@@ -31097,4 +31097,4 @@ export {
31097
31097
  useOAuthClients,
31098
31098
  useOAuthClient
31099
31099
  };
31100
- //# sourceMappingURL=chunk-BT3VFB3I.mjs.map
31100
+ //# sourceMappingURL=chunk-6DNGLY5Y.mjs.map