@carlonicora/nextjs-jsonapi 1.3.1 → 1.4.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 (39) hide show
  1. package/dist/{BlockNoteEditor-7WYPN34K.js → BlockNoteEditor-QV6ESIQA.js} +5 -5
  2. package/dist/{BlockNoteEditor-7WYPN34K.js.map → BlockNoteEditor-QV6ESIQA.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-V625C23O.mjs → BlockNoteEditor-U2IHUVUF.mjs} +3 -3
  4. package/dist/chunk-3UELCPIN.js +46 -0
  5. package/dist/chunk-3UELCPIN.js.map +1 -0
  6. package/dist/{chunk-K2ANOT66.js → chunk-E2HRC2OG.js} +37 -35
  7. package/dist/chunk-E2HRC2OG.js.map +1 -0
  8. package/dist/{chunk-5QC7A6BL.mjs → chunk-R2ONK22M.mjs} +20 -18
  9. package/dist/chunk-R2ONK22M.mjs.map +1 -0
  10. package/dist/chunk-SZZYEG3P.mjs +46 -0
  11. package/dist/chunk-SZZYEG3P.mjs.map +1 -0
  12. package/dist/client/index.js +3 -3
  13. package/dist/client/index.mjs +2 -2
  14. package/dist/components/index.js +3 -3
  15. package/dist/components/index.mjs +2 -2
  16. package/dist/contexts/index.js +3 -3
  17. package/dist/contexts/index.mjs +2 -2
  18. package/dist/features/index.js +1 -1
  19. package/dist/features/index.mjs +1 -1
  20. package/dist/hooks/index.js +3 -3
  21. package/dist/hooks/index.mjs +2 -2
  22. package/dist/index.js +2 -2
  23. package/dist/index.mjs +1 -1
  24. package/dist/roles/index.d.mts +7 -1
  25. package/dist/roles/index.d.ts +7 -1
  26. package/dist/roles/index.js +8 -2
  27. package/dist/roles/index.js.map +1 -1
  28. package/dist/roles/index.mjs +7 -1
  29. package/package.json +1 -1
  30. package/src/features/auth/components/details/LandingComponent.tsx +27 -29
  31. package/src/roles/config.ts +15 -0
  32. package/src/roles/index.ts +9 -1
  33. package/dist/chunk-4HCRAOS5.js +0 -28
  34. package/dist/chunk-4HCRAOS5.js.map +0 -1
  35. package/dist/chunk-5QC7A6BL.mjs.map +0 -1
  36. package/dist/chunk-BLWVZK6J.mjs +0 -28
  37. package/dist/chunk-BLWVZK6J.mjs.map +0 -1
  38. package/dist/chunk-K2ANOT66.js.map +0 -1
  39. /package/dist/{BlockNoteEditor-V625C23O.mjs.map → BlockNoteEditor-U2IHUVUF.mjs.map} +0 -0
@@ -123,8 +123,10 @@ import {
123
123
  getTrackablePages
124
124
  } from "./chunk-IKBA4AHN.mjs";
125
125
  import {
126
- getRoleId
127
- } from "./chunk-BLWVZK6J.mjs";
126
+ getRoleId,
127
+ isDiscordConfigured,
128
+ isInternalAuthConfigured
129
+ } from "./chunk-SZZYEG3P.mjs";
128
130
  import {
129
131
  recentPagesAtom
130
132
  } from "./chunk-Q2N6SQYW.mjs";
@@ -1985,7 +1987,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
1985
1987
  import dynamic from "next/dynamic";
1986
1988
  import React3 from "react";
1987
1989
  import { jsx as jsx29 } from "react/jsx-runtime";
1988
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-V625C23O.mjs"), {
1990
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-U2IHUVUF.mjs"), {
1989
1991
  ssr: false
1990
1992
  });
1991
1993
  var BlockNoteEditorContainer = React3.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -4940,20 +4942,20 @@ function LandingComponent() {
4940
4942
  ] }),
4941
4943
  /* @__PURE__ */ jsx69(CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`generic.description`) })
4942
4944
  ] }),
4943
- /* @__PURE__ */ jsxs46(CardFooter, { className: "mt-4 flex w-full flex-col justify-between", children: [
4944
- /* @__PURE__ */ jsx69(Link, { href: "#", className: "flex w-full justify-start", onClick: () => setComponentType(5 /* Register */), children: /* @__PURE__ */ jsx69(Button, { className: "mt-4 w-full", variant: `default`, children: t(`foundations.auth.buttons.register`) }) }),
4945
- /* @__PURE__ */ jsx69(Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ jsx69(Button, { className: "mt-4 w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`foundations.auth.buttons.login`) }) }),
4946
- /* @__PURE__ */ jsx69(
4947
- Button,
4948
- {
4949
- onClick: (e) => {
4950
- e.preventDefault();
4951
- window.location.href = `${getApiUrl()}auth/discord`;
4952
- },
4953
- className: `flex w-full justify-end`,
4954
- children: /* @__PURE__ */ jsx69("div", { className: "text-sm font-medium leading-normal", children: "Discord" })
4955
- }
4956
- )
4945
+ /* @__PURE__ */ jsxs46(CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
4946
+ isInternalAuthConfigured() && /* @__PURE__ */ jsxs46(Fragment13, { children: [
4947
+ /* @__PURE__ */ jsx69(
4948
+ Link,
4949
+ {
4950
+ href: "#",
4951
+ className: "flex w-full justify-start",
4952
+ onClick: () => setComponentType(5 /* Register */),
4953
+ children: /* @__PURE__ */ jsx69(Button, { className: "w-full", variant: `default`, children: t(`foundations.auth.buttons.register`) })
4954
+ }
4955
+ ),
4956
+ /* @__PURE__ */ jsx69(Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ jsx69(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`foundations.auth.buttons.login`) }) })
4957
+ ] }),
4958
+ isDiscordConfigured() && /* @__PURE__ */ jsx69(Link, { href: `${getApiUrl()}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ jsx69(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
4957
4959
  ] })
4958
4960
  ] });
4959
4961
  }
@@ -7980,4 +7982,4 @@ export {
7980
7982
  RolesList,
7981
7983
  UserRolesList
7982
7984
  };
7983
- //# sourceMappingURL=chunk-5QC7A6BL.mjs.map
7985
+ //# sourceMappingURL=chunk-R2ONK22M.mjs.map