@carlonicora/nextjs-jsonapi 1.85.0 → 1.86.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-UKGNL227.mjs → BlockNoteEditor-7TZA4XEN.mjs} +3 -3
- package/dist/{BlockNoteEditor-NHEJMFCW.js → BlockNoteEditor-KRDP6OSE.js} +7 -7
- package/dist/{BlockNoteEditor-NHEJMFCW.js.map → BlockNoteEditor-KRDP6OSE.js.map} +1 -1
- package/dist/billing/index.js +303 -303
- package/dist/billing/index.mjs +2 -2
- package/dist/{chunk-ZEJSPTHS.js → chunk-2AK4GRIB.js} +19 -11
- package/dist/chunk-2AK4GRIB.js.map +1 -0
- package/dist/{chunk-UUMDUIY6.js → chunk-AMP2ZDAV.js} +80 -80
- package/dist/{chunk-UUMDUIY6.js.map → chunk-AMP2ZDAV.js.map} +1 -1
- package/dist/{chunk-TTVVHFS4.mjs → chunk-CZ56O6JZ.mjs} +9 -9
- package/dist/{chunk-TTVVHFS4.mjs.map → chunk-CZ56O6JZ.mjs.map} +1 -1
- package/dist/{chunk-PV5V6CVW.mjs → chunk-NEJ7CDM3.mjs} +9 -1
- package/dist/chunk-NEJ7CDM3.mjs.map +1 -0
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +5 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/{config-B5oBQVEA.d.ts → config-CLQynoaa.d.ts} +15 -1
- package/dist/{config-Bx_uh22h.d.mts → config-k61pe_o2.d.mts} +15 -1
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
- package/src/client/config.ts +20 -0
- package/src/features/auth/components/buttons/GoogleSignInButton.tsx +2 -2
- package/src/features/auth/components/details/LandingComponent.tsx +2 -2
- package/src/features/auth/components/forms/Login.tsx +2 -2
- package/src/features/auth/components/forms/Register.tsx +3 -3
- package/src/index.ts +8 -1
- package/dist/chunk-PV5V6CVW.mjs.map +0 -1
- package/dist/chunk-ZEJSPTHS.js.map +0 -1
- /package/dist/{BlockNoteEditor-UKGNL227.mjs.map → BlockNoteEditor-7TZA4XEN.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACTION_TYPES,
|
|
3
3
|
RbacService,
|
|
4
|
-
getApiUrl,
|
|
5
4
|
getAppUrl,
|
|
6
5
|
getI18nLink,
|
|
6
|
+
getPublicApiUrl,
|
|
7
7
|
getReferralConfig,
|
|
8
8
|
getRegistrationMode,
|
|
9
9
|
getRoleId,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
useI18nLocale,
|
|
21
21
|
useI18nRouter,
|
|
22
22
|
useI18nTranslations
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NEJ7CDM3.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AVAILABLE_OAUTH_SCOPES,
|
|
26
26
|
AssistantMessage,
|
|
@@ -9210,7 +9210,7 @@ __name(FormCheckbox, "FormCheckbox");
|
|
|
9210
9210
|
import dynamic from "next/dynamic";
|
|
9211
9211
|
import React14 from "react";
|
|
9212
9212
|
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
9213
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
9213
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-7TZA4XEN.mjs"), {
|
|
9214
9214
|
ssr: false
|
|
9215
9215
|
});
|
|
9216
9216
|
var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -15165,7 +15165,7 @@ function Register() {
|
|
|
15165
15165
|
isGoogleAuthEnabled() && /* @__PURE__ */ jsx165(
|
|
15166
15166
|
Link,
|
|
15167
15167
|
{
|
|
15168
|
-
href: `${
|
|
15168
|
+
href: `${getPublicApiUrl()}auth/google${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
15169
15169
|
className: "flex w-full",
|
|
15170
15170
|
children: /* @__PURE__ */ jsxs98(
|
|
15171
15171
|
Button,
|
|
@@ -15213,7 +15213,7 @@ function Register() {
|
|
|
15213
15213
|
isDiscordAuthEnabled() && /* @__PURE__ */ jsx165(
|
|
15214
15214
|
Link,
|
|
15215
15215
|
{
|
|
15216
|
-
href: `${
|
|
15216
|
+
href: `${getPublicApiUrl()}auth/discord${buildOAuthQueryParams(inviteCode, referralCode)}`,
|
|
15217
15217
|
className: "flex w-full",
|
|
15218
15218
|
children: /* @__PURE__ */ jsxs98(Button, { className: "w-full", variant: "outline", type: "button", children: [
|
|
15219
15219
|
/* @__PURE__ */ jsx165("svg", { className: "mr-2 h-5 w-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx165("path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" }) }),
|
|
@@ -16046,7 +16046,7 @@ function GoogleSignInButton({ referralCode }) {
|
|
|
16046
16046
|
return null;
|
|
16047
16047
|
}
|
|
16048
16048
|
const buildGoogleOAuthUrl = /* @__PURE__ */ __name(() => {
|
|
16049
|
-
const baseUrl = `${
|
|
16049
|
+
const baseUrl = `${getPublicApiUrl()}auth/google`;
|
|
16050
16050
|
if (!referralCode) return baseUrl;
|
|
16051
16051
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
16052
16052
|
}, "buildGoogleOAuthUrl");
|
|
@@ -16121,7 +16121,7 @@ function LandingComponent() {
|
|
|
16121
16121
|
/* @__PURE__ */ jsx178(Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ jsx178(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`auth.buttons.login`) }) })
|
|
16122
16122
|
] }),
|
|
16123
16123
|
isGoogleAuthEnabled() && /* @__PURE__ */ jsx178(GoogleSignInButton, {}),
|
|
16124
|
-
isDiscordAuthEnabled() && /* @__PURE__ */ jsx178(Link, { href: `${
|
|
16124
|
+
isDiscordAuthEnabled() && /* @__PURE__ */ jsx178(Link, { href: `${getPublicApiUrl()}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ jsx178(Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
|
|
16125
16125
|
] })
|
|
16126
16126
|
] });
|
|
16127
16127
|
}
|
|
@@ -16406,7 +16406,7 @@ function Login() {
|
|
|
16406
16406
|
}
|
|
16407
16407
|
}, []);
|
|
16408
16408
|
const buildDiscordOAuthUrl = /* @__PURE__ */ __name(() => {
|
|
16409
|
-
const baseUrl = `${
|
|
16409
|
+
const baseUrl = `${getPublicApiUrl()}auth/discord`;
|
|
16410
16410
|
if (!referralCode) return baseUrl;
|
|
16411
16411
|
return `${baseUrl}?referral=${encodeURIComponent(referralCode)}`;
|
|
16412
16412
|
}, "buildDiscordOAuthUrl");
|
|
@@ -21631,4 +21631,4 @@ export {
|
|
|
21631
21631
|
useOAuthClients,
|
|
21632
21632
|
useOAuthClient
|
|
21633
21633
|
};
|
|
21634
|
-
//# sourceMappingURL=chunk-
|
|
21634
|
+
//# sourceMappingURL=chunk-CZ56O6JZ.mjs.map
|