@carlonicora/nextjs-jsonapi 1.47.0 → 1.47.2
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-CZXTJL3R.mjs} +2 -2
- package/dist/{BlockNoteEditor-XMBFXTHB.js → BlockNoteEditor-JQNYMLFY.js} +6 -6
- package/dist/{BlockNoteEditor-XMBFXTHB.js.map → BlockNoteEditor-JQNYMLFY.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-LYQMDZO7.mjs → chunk-3AYMUFM6.mjs} +5 -14
- package/dist/{chunk-LYQMDZO7.mjs.map → chunk-3AYMUFM6.mjs.map} +1 -1
- package/dist/{chunk-HY357JCN.js → chunk-SUJ4GXAI.js} +5 -14
- package/dist/chunk-SUJ4GXAI.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -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/components/tables/ContentListTable.tsx +4 -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-CZXTJL3R.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -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-CZXTJL3R.mjs"), {
|
|
10929
10929
|
ssr: false
|
|
10930
10930
|
});
|
|
10931
10931
|
var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -12162,7 +12162,9 @@ import { Fragment as Fragment19, jsx as jsx139, jsxs as jsxs80 } from "react/jsx
|
|
|
12162
12162
|
var EMPTY_ARRAY = [];
|
|
12163
12163
|
var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(props) {
|
|
12164
12164
|
const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters } = props;
|
|
12165
|
-
const [expanded, setExpanded] = useState46(
|
|
12165
|
+
const [expanded, setExpanded] = useState46(
|
|
12166
|
+
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
12167
|
+
);
|
|
12166
12168
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
12167
12169
|
data: data?.data ?? EMPTY_ARRAY,
|
|
12168
12170
|
fields,
|
|
@@ -12340,7 +12342,6 @@ function Register() {
|
|
|
12340
12342
|
const [referralCode, setReferralCode2] = useState47(null);
|
|
12341
12343
|
useEffect40(() => {
|
|
12342
12344
|
const code = getReferralCode();
|
|
12343
|
-
console.log("[REFERRAL] Register.tsx - cookie value on mount:", code);
|
|
12344
12345
|
setReferralCode2(code);
|
|
12345
12346
|
}, []);
|
|
12346
12347
|
const formSchema = z4.object({
|
|
@@ -12398,7 +12399,6 @@ function Register() {
|
|
|
12398
12399
|
}, [registrationMode, inviteCode, form, t]);
|
|
12399
12400
|
const onSubmit = /* @__PURE__ */ __name(async (values) => {
|
|
12400
12401
|
try {
|
|
12401
|
-
console.log("[REFERRAL] Register.tsx - referralCode at submit:", referralCode);
|
|
12402
12402
|
const payload = {
|
|
12403
12403
|
id: v44(),
|
|
12404
12404
|
companyName: values.company,
|
|
@@ -12411,7 +12411,6 @@ function Register() {
|
|
|
12411
12411
|
inviteCode: inviteCode ?? void 0,
|
|
12412
12412
|
referralCode: referralCode ?? void 0
|
|
12413
12413
|
};
|
|
12414
|
-
console.log("[REFERRAL] Register.tsx - payload.referralCode:", payload.referralCode);
|
|
12415
12414
|
await AuthService.register(payload);
|
|
12416
12415
|
clearReferralCode();
|
|
12417
12416
|
setShowConfirmation(true);
|
|
@@ -14610,23 +14609,15 @@ __name(getReferralCode2, "getReferralCode");
|
|
|
14610
14609
|
function ReferralCodeCapture() {
|
|
14611
14610
|
const searchParams = useSearchParams4();
|
|
14612
14611
|
useEffect51(() => {
|
|
14613
|
-
console.log("[REFERRAL] ReferralCodeCapture mounted");
|
|
14614
|
-
console.log("[REFERRAL] isReferralEnabled():", isReferralEnabled());
|
|
14615
14612
|
if (!isReferralEnabled()) {
|
|
14616
|
-
console.log("[REFERRAL] Feature DISABLED - not capturing");
|
|
14617
14613
|
return;
|
|
14618
14614
|
}
|
|
14619
14615
|
const config = getReferralConfig();
|
|
14620
14616
|
const refCode = searchParams.get(config.urlParamName);
|
|
14621
|
-
console.log("[REFERRAL] URL param '" + config.urlParamName + "':", refCode);
|
|
14622
14617
|
if (refCode) {
|
|
14623
14618
|
const existingCode = getReferralCode2();
|
|
14624
|
-
console.log("[REFERRAL] Existing cookie:", existingCode);
|
|
14625
14619
|
if (!existingCode) {
|
|
14626
14620
|
setReferralCode(refCode);
|
|
14627
|
-
console.log("[REFERRAL] Cookie SET to:", refCode);
|
|
14628
|
-
} else {
|
|
14629
|
-
console.log("[REFERRAL] Cookie already exists, not overwriting");
|
|
14630
14621
|
}
|
|
14631
14622
|
}
|
|
14632
14623
|
}, [searchParams]);
|
|
@@ -16894,4 +16885,4 @@ export {
|
|
|
16894
16885
|
useOAuthClients,
|
|
16895
16886
|
useOAuthClient
|
|
16896
16887
|
};
|
|
16897
|
-
//# sourceMappingURL=chunk-
|
|
16888
|
+
//# sourceMappingURL=chunk-3AYMUFM6.mjs.map
|