@carlonicora/nextjs-jsonapi 1.54.0 → 1.55.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-3FJNUMPG.mjs → BlockNoteEditor-KRNCNQSM.mjs} +2 -2
- package/dist/{BlockNoteEditor-H7TO4U5Q.js → BlockNoteEditor-USEVDT2N.js} +6 -6
- package/dist/{BlockNoteEditor-H7TO4U5Q.js.map → BlockNoteEditor-USEVDT2N.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-4EOS4FWI.js → chunk-JQAG6BQJ.js} +133 -117
- package/dist/chunk-JQAG6BQJ.js.map +1 -0
- package/dist/{chunk-U42KH22X.mjs → chunk-PIGACN3N.mjs} +34 -18
- package/dist/chunk-PIGACN3N.mjs.map +1 -0
- package/dist/client/index.d.mts +3 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +5 -2
- package/dist/components/index.d.ts +5 -2
- 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/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +41 -29
- package/src/components/containers/TabsContainer.tsx +1 -0
- package/src/components/forms/FormBlockNote.tsx +4 -1
- package/src/hooks/url.rewriter.ts +2 -0
- package/dist/chunk-4EOS4FWI.js.map +0 -1
- package/dist/chunk-U42KH22X.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-3FJNUMPG.mjs.map → BlockNoteEditor-KRNCNQSM.mjs.map} +0 -0
|
@@ -174,7 +174,8 @@ function useUrlRewriter() {
|
|
|
174
174
|
id: params.id,
|
|
175
175
|
childPage: params.childPage,
|
|
176
176
|
childId: params.childId,
|
|
177
|
-
language: locale
|
|
177
|
+
language: locale,
|
|
178
|
+
additionalParameters: params.additionalParameters
|
|
178
179
|
})
|
|
179
180
|
);
|
|
180
181
|
},
|
|
@@ -8343,7 +8344,7 @@ __name(FormCheckbox, "FormCheckbox");
|
|
|
8343
8344
|
import dynamic from "next/dynamic";
|
|
8344
8345
|
import React14 from "react";
|
|
8345
8346
|
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
8346
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
8347
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-KRNCNQSM.mjs"), {
|
|
8347
8348
|
ssr: false
|
|
8348
8349
|
});
|
|
8349
8350
|
var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -8360,7 +8361,8 @@ function FormBlockNote({
|
|
|
8360
8361
|
type,
|
|
8361
8362
|
isRequired = false,
|
|
8362
8363
|
description,
|
|
8363
|
-
testId
|
|
8364
|
+
testId,
|
|
8365
|
+
onEmptyChange
|
|
8364
8366
|
}) {
|
|
8365
8367
|
return /* @__PURE__ */ jsx68("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ jsx68(
|
|
8366
8368
|
FormFieldWrapper,
|
|
@@ -8377,8 +8379,9 @@ function FormBlockNote({
|
|
|
8377
8379
|
id: form.getValues("id"),
|
|
8378
8380
|
type,
|
|
8379
8381
|
initialContent: field.value,
|
|
8380
|
-
onChange: (content) => {
|
|
8382
|
+
onChange: (content, isEmpty) => {
|
|
8381
8383
|
field.onChange(content);
|
|
8384
|
+
onEmptyChange?.(isEmpty);
|
|
8382
8385
|
},
|
|
8383
8386
|
placeholder,
|
|
8384
8387
|
bordered: true
|
|
@@ -11812,11 +11815,16 @@ function RoundPageContainerTitle({
|
|
|
11812
11815
|
__name(RoundPageContainerTitle, "RoundPageContainerTitle");
|
|
11813
11816
|
|
|
11814
11817
|
// src/components/containers/RoundPageContainer.tsx
|
|
11818
|
+
import { useSearchParams } from "next/navigation";
|
|
11815
11819
|
import { useState as useState39 } from "react";
|
|
11816
11820
|
import { Fragment as Fragment16, jsx as jsx129, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
11817
|
-
function RoundPageContainer({ module, details, tabs, children, fullWidth }) {
|
|
11821
|
+
function RoundPageContainer({ module, id, details, tabs, children, fullWidth }) {
|
|
11818
11822
|
const headerChildren = useHeaderChildren();
|
|
11819
11823
|
const [showDetails, setShowDetails] = useState39(false);
|
|
11824
|
+
const searchParams = useSearchParams();
|
|
11825
|
+
const section = searchParams.get("section");
|
|
11826
|
+
const rewriteUrl = useUrlRewriter();
|
|
11827
|
+
const defaultValue = tabs ? section && tabs.find((i) => i.key?.name === section)?.key || tabs[0].key : void 0;
|
|
11820
11828
|
return /* @__PURE__ */ jsxs75(Fragment16, { children: [
|
|
11821
11829
|
/* @__PURE__ */ jsx129(Header, { className: "bg-sidebar border-0", children: headerChildren }),
|
|
11822
11830
|
/* @__PURE__ */ jsx129("div", { className: "flex h-[calc(100vh-3rem)] w-full flex-col p-2 pt-0 pl-0", children: /* @__PURE__ */ jsx129("div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: /* @__PURE__ */ jsxs75("div", { className: "flex w-full flex-col", children: [
|
|
@@ -11830,10 +11838,18 @@ function RoundPageContainer({ module, details, tabs, children, fullWidth }) {
|
|
|
11830
11838
|
}
|
|
11831
11839
|
),
|
|
11832
11840
|
/* @__PURE__ */ jsxs75("div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11841
|
+
/* @__PURE__ */ jsx129("div", { className: cn(`grow overflow-y-auto p-4`, fullWidth && `p-0`), children: /* @__PURE__ */ jsx129("div", { className: cn(`mx-auto max-w-6xl space-y-12 p-8`, fullWidth && `max-w-full w-full p-0`), children: tabs ? /* @__PURE__ */ jsxs75(
|
|
11842
|
+
Tabs,
|
|
11843
|
+
{
|
|
11844
|
+
defaultValue,
|
|
11845
|
+
className: "w-full",
|
|
11846
|
+
onValueChange: (key) => module && id && rewriteUrl({ page: module, id, additionalParameters: { section: key } }),
|
|
11847
|
+
children: [
|
|
11848
|
+
/* @__PURE__ */ jsx129("div", { className: "p-4", children: /* @__PURE__ */ jsx129(TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ jsx129(TabsTrigger, { value: tab.label, className: `px-4`, children: tab.contentLabel ?? tab.label }, tab.label)) }) }),
|
|
11849
|
+
/* @__PURE__ */ jsx129("div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ jsx129(TabsContent, { value: tab.label, className: `pb-20`, children: tab.content }, tab.label)) })
|
|
11850
|
+
]
|
|
11851
|
+
}
|
|
11852
|
+
) : children }) }),
|
|
11837
11853
|
details && /* @__PURE__ */ jsx129(
|
|
11838
11854
|
"div",
|
|
11839
11855
|
{
|
|
@@ -13631,7 +13647,7 @@ import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
|
|
|
13631
13647
|
import { Loader2 as Loader24 } from "lucide-react";
|
|
13632
13648
|
import { useTranslations as useTranslations49 } from "next-intl";
|
|
13633
13649
|
import Image8 from "next/image";
|
|
13634
|
-
import { useSearchParams } from "next/navigation";
|
|
13650
|
+
import { useSearchParams as useSearchParams2 } from "next/navigation";
|
|
13635
13651
|
import { useEffect as useEffect42, useState as useState49 } from "react";
|
|
13636
13652
|
import { useForm as useForm4 } from "react-hook-form";
|
|
13637
13653
|
import { v4 as v44 } from "uuid";
|
|
@@ -13700,7 +13716,7 @@ __name(buildOAuthQueryParams, "buildOAuthQueryParams");
|
|
|
13700
13716
|
function Register() {
|
|
13701
13717
|
const t = useTranslations49();
|
|
13702
13718
|
const { setComponentType } = useAuthContext();
|
|
13703
|
-
const searchParams =
|
|
13719
|
+
const searchParams = useSearchParams2();
|
|
13704
13720
|
const inviteCode = searchParams.get("invite");
|
|
13705
13721
|
const registrationMode = getRegistrationMode();
|
|
13706
13722
|
const [showConfirmation, setShowConfirmation] = useState49(false);
|
|
@@ -15103,7 +15119,7 @@ __name(ForgotPassword, "ForgotPassword");
|
|
|
15103
15119
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
|
15104
15120
|
import { useTranslations as useTranslations61 } from "next-intl";
|
|
15105
15121
|
import Image14 from "next/image";
|
|
15106
|
-
import { useRouter, useSearchParams as
|
|
15122
|
+
import { useRouter, useSearchParams as useSearchParams3 } from "next/navigation";
|
|
15107
15123
|
import { useEffect as useEffect48, useState as useState63 } from "react";
|
|
15108
15124
|
import { useForm as useForm7 } from "react-hook-form";
|
|
15109
15125
|
import { z as z7 } from "zod";
|
|
@@ -15115,7 +15131,7 @@ function Login() {
|
|
|
15115
15131
|
const generateUrl = usePageUrlGenerator();
|
|
15116
15132
|
const i18nRouter = useI18nRouter();
|
|
15117
15133
|
const nativeRouter = useRouter();
|
|
15118
|
-
const searchParams =
|
|
15134
|
+
const searchParams = useSearchParams3();
|
|
15119
15135
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
15120
15136
|
const [referralCode, setReferralCode2] = useState63(null);
|
|
15121
15137
|
useEffect48(() => {
|
|
@@ -15385,7 +15401,7 @@ __name(ResetPassword, "ResetPassword");
|
|
|
15385
15401
|
|
|
15386
15402
|
// src/features/auth/components/forms/TwoFactorChallenge.tsx
|
|
15387
15403
|
import { useTranslations as useTranslations64 } from "next-intl";
|
|
15388
|
-
import { useRouter as useRouter2, useSearchParams as
|
|
15404
|
+
import { useRouter as useRouter2, useSearchParams as useSearchParams4 } from "next/navigation";
|
|
15389
15405
|
import { useState as useState66 } from "react";
|
|
15390
15406
|
import { v4 as v49 } from "uuid";
|
|
15391
15407
|
|
|
@@ -15440,7 +15456,7 @@ function TwoFactorChallenge() {
|
|
|
15440
15456
|
const generateUrl = usePageUrlGenerator();
|
|
15441
15457
|
const i18nRouter = useI18nRouter();
|
|
15442
15458
|
const nativeRouter = useRouter2();
|
|
15443
|
-
const searchParams =
|
|
15459
|
+
const searchParams = useSearchParams4();
|
|
15444
15460
|
const callbackUrl = searchParams.get("callbackUrl");
|
|
15445
15461
|
const [isVerifying, setIsVerifying] = useState66(false);
|
|
15446
15462
|
const [totpError, setTotpError] = useState66();
|
|
@@ -15952,7 +15968,7 @@ function PushNotificationProvider({ children }) {
|
|
|
15952
15968
|
__name(PushNotificationProvider, "PushNotificationProvider");
|
|
15953
15969
|
|
|
15954
15970
|
// src/features/referral/components/ReferralCodeCapture.tsx
|
|
15955
|
-
import { useSearchParams as
|
|
15971
|
+
import { useSearchParams as useSearchParams5 } from "next/navigation";
|
|
15956
15972
|
import { useEffect as useEffect53 } from "react";
|
|
15957
15973
|
|
|
15958
15974
|
// src/features/referral/utils/referral-cookie.ts
|
|
@@ -15977,7 +15993,7 @@ __name(getReferralCode2, "getReferralCode");
|
|
|
15977
15993
|
|
|
15978
15994
|
// src/features/referral/components/ReferralCodeCapture.tsx
|
|
15979
15995
|
function ReferralCodeCapture() {
|
|
15980
|
-
const searchParams =
|
|
15996
|
+
const searchParams = useSearchParams5();
|
|
15981
15997
|
useEffect53(() => {
|
|
15982
15998
|
if (!isReferralEnabled()) {
|
|
15983
15999
|
return;
|
|
@@ -18732,4 +18748,4 @@ export {
|
|
|
18732
18748
|
useOAuthClients,
|
|
18733
18749
|
useOAuthClient
|
|
18734
18750
|
};
|
|
18735
|
-
//# sourceMappingURL=chunk-
|
|
18751
|
+
//# sourceMappingURL=chunk-PIGACN3N.mjs.map
|