@carlonicora/nextjs-jsonapi 1.47.0 → 1.47.1
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-J7R24CYB.mjs → BlockNoteEditor-34PX47L4.mjs} +2 -2
- package/dist/{BlockNoteEditor-XMBFXTHB.js → BlockNoteEditor-GBD4N4SA.js} +6 -6
- package/dist/{BlockNoteEditor-XMBFXTHB.js.map → BlockNoteEditor-GBD4N4SA.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-HY357JCN.js → chunk-FLQPQEY2.js} +2 -13
- package/dist/chunk-FLQPQEY2.js.map +1 -0
- package/dist/{chunk-LYQMDZO7.mjs → chunk-L7RMKAGH.mjs} +2 -13
- package/dist/{chunk-LYQMDZO7.mjs.map → chunk-L7RMKAGH.mjs.map} +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- 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/features/auth/components/forms/Register.tsx +18 -21
- package/src/features/referral/components/ReferralCodeCapture.tsx +0 -9
- package/dist/chunk-HY357JCN.js.map +0 -1
- /package/dist/{BlockNoteEditor-J7R24CYB.mjs.map → BlockNoteEditor-34PX47L4.mjs.map} +0 -0
|
@@ -10925,7 +10925,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
|
|
|
10925
10925
|
import dynamic from "next/dynamic";
|
|
10926
10926
|
import React15 from "react";
|
|
10927
10927
|
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
10928
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10928
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-34PX47L4.mjs"), {
|
|
10929
10929
|
ssr: false
|
|
10930
10930
|
});
|
|
10931
10931
|
var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -12340,7 +12340,6 @@ function Register() {
|
|
|
12340
12340
|
const [referralCode, setReferralCode2] = useState47(null);
|
|
12341
12341
|
useEffect40(() => {
|
|
12342
12342
|
const code = getReferralCode();
|
|
12343
|
-
console.log("[REFERRAL] Register.tsx - cookie value on mount:", code);
|
|
12344
12343
|
setReferralCode2(code);
|
|
12345
12344
|
}, []);
|
|
12346
12345
|
const formSchema = z4.object({
|
|
@@ -12398,7 +12397,6 @@ function Register() {
|
|
|
12398
12397
|
}, [registrationMode, inviteCode, form, t]);
|
|
12399
12398
|
const onSubmit = /* @__PURE__ */ __name(async (values) => {
|
|
12400
12399
|
try {
|
|
12401
|
-
console.log("[REFERRAL] Register.tsx - referralCode at submit:", referralCode);
|
|
12402
12400
|
const payload = {
|
|
12403
12401
|
id: v44(),
|
|
12404
12402
|
companyName: values.company,
|
|
@@ -12411,7 +12409,6 @@ function Register() {
|
|
|
12411
12409
|
inviteCode: inviteCode ?? void 0,
|
|
12412
12410
|
referralCode: referralCode ?? void 0
|
|
12413
12411
|
};
|
|
12414
|
-
console.log("[REFERRAL] Register.tsx - payload.referralCode:", payload.referralCode);
|
|
12415
12412
|
await AuthService.register(payload);
|
|
12416
12413
|
clearReferralCode();
|
|
12417
12414
|
setShowConfirmation(true);
|
|
@@ -14610,23 +14607,15 @@ __name(getReferralCode2, "getReferralCode");
|
|
|
14610
14607
|
function ReferralCodeCapture() {
|
|
14611
14608
|
const searchParams = useSearchParams4();
|
|
14612
14609
|
useEffect51(() => {
|
|
14613
|
-
console.log("[REFERRAL] ReferralCodeCapture mounted");
|
|
14614
|
-
console.log("[REFERRAL] isReferralEnabled():", isReferralEnabled());
|
|
14615
14610
|
if (!isReferralEnabled()) {
|
|
14616
|
-
console.log("[REFERRAL] Feature DISABLED - not capturing");
|
|
14617
14611
|
return;
|
|
14618
14612
|
}
|
|
14619
14613
|
const config = getReferralConfig();
|
|
14620
14614
|
const refCode = searchParams.get(config.urlParamName);
|
|
14621
|
-
console.log("[REFERRAL] URL param '" + config.urlParamName + "':", refCode);
|
|
14622
14615
|
if (refCode) {
|
|
14623
14616
|
const existingCode = getReferralCode2();
|
|
14624
|
-
console.log("[REFERRAL] Existing cookie:", existingCode);
|
|
14625
14617
|
if (!existingCode) {
|
|
14626
14618
|
setReferralCode(refCode);
|
|
14627
|
-
console.log("[REFERRAL] Cookie SET to:", refCode);
|
|
14628
|
-
} else {
|
|
14629
|
-
console.log("[REFERRAL] Cookie already exists, not overwriting");
|
|
14630
14619
|
}
|
|
14631
14620
|
}
|
|
14632
14621
|
}, [searchParams]);
|
|
@@ -16894,4 +16883,4 @@ export {
|
|
|
16894
16883
|
useOAuthClients,
|
|
16895
16884
|
useOAuthClient
|
|
16896
16885
|
};
|
|
16897
|
-
//# sourceMappingURL=chunk-
|
|
16886
|
+
//# sourceMappingURL=chunk-L7RMKAGH.mjs.map
|