@carlonicora/nextjs-jsonapi 1.20.0 → 1.21.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.
@@ -9135,7 +9135,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
9135
9135
  import dynamic from "next/dynamic";
9136
9136
  import React15 from "react";
9137
9137
  import { jsx as jsx98 } from "react/jsx-runtime";
9138
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-BQ5WWVUF.mjs"), {
9138
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-5Z7W7M6M.mjs"), {
9139
9139
  ssr: false
9140
9140
  });
9141
9141
  var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -12350,7 +12350,7 @@ function Login() {
12350
12350
  /* @__PURE__ */ jsx142(CardDescription, { className: "text-sm", children: t(`foundations.auth.login_description`) })
12351
12351
  ] }),
12352
12352
  /* @__PURE__ */ jsx142(Form, { ...form, children: /* @__PURE__ */ jsxs85("form", { onSubmit: form.handleSubmit(onSubmit), children: [
12353
- /* @__PURE__ */ jsxs85(CardContent, { children: [
12353
+ /* @__PURE__ */ jsx142(CardContent, { children: isInternalAuthEnabled() && /* @__PURE__ */ jsxs85(Fragment25, { children: [
12354
12354
  /* @__PURE__ */ jsx142(
12355
12355
  FormInput,
12356
12356
  {
@@ -12373,27 +12373,30 @@ function Login() {
12373
12373
  }
12374
12374
  ),
12375
12375
  /* @__PURE__ */ jsx142(Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`foundations.auth.login`) })
12376
- ] }),
12377
- /* @__PURE__ */ jsxs85(CardFooter, { className: "flex w-full flex-row justify-between", children: [
12378
- /* @__PURE__ */ jsx142(
12379
- Link,
12380
- {
12381
- href: "#",
12382
- className: "flex w-full justify-start",
12383
- onClick: () => setComponentType(5 /* Register */),
12384
- children: t(`foundations.auth.register`)
12385
- }
12386
- ),
12387
- /* @__PURE__ */ jsx142(
12388
- Link,
12389
- {
12390
- href: "#",
12391
- className: "flex w-full justify-end",
12392
- onClick: () => setComponentType(1 /* ForgotPassword */),
12393
- "data-testid": "form-login-link-forgot-password",
12394
- children: t(`foundations.auth.forgot_password`)
12395
- }
12396
- )
12376
+ ] }) }),
12377
+ /* @__PURE__ */ jsxs85(CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
12378
+ isDiscordAuthEnabled() && /* @__PURE__ */ jsx142(Link, { href: `${getApiUrl()}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ jsx142(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
12379
+ /* @__PURE__ */ jsxs85("div", { className: "flex w-full flex-row justify-between", children: [
12380
+ /* @__PURE__ */ jsx142(
12381
+ Link,
12382
+ {
12383
+ href: "#",
12384
+ className: "flex w-full justify-start",
12385
+ onClick: () => setComponentType(5 /* Register */),
12386
+ children: t(`foundations.auth.register`)
12387
+ }
12388
+ ),
12389
+ /* @__PURE__ */ jsx142(
12390
+ Link,
12391
+ {
12392
+ href: "#",
12393
+ className: "flex w-full justify-end",
12394
+ onClick: () => setComponentType(1 /* ForgotPassword */),
12395
+ "data-testid": "form-login-link-forgot-password",
12396
+ children: t(`foundations.auth.forgot_password`)
12397
+ }
12398
+ )
12399
+ ] })
12397
12400
  ] })
12398
12401
  ] }) })
12399
12402
  ] });
@@ -16993,4 +16996,4 @@ export {
16993
16996
  useUserTableStructure,
16994
16997
  useContentTableStructure
16995
16998
  };
16996
- //# sourceMappingURL=chunk-MVNVXOC6.mjs.map
16999
+ //# sourceMappingURL=chunk-WMDTCWC3.mjs.map