@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.
@@ -47,7 +47,7 @@ import {
47
47
  TabsList,
48
48
  TabsTrigger,
49
49
  useCurrentUserContext
50
- } from "../chunk-LYQMDZO7.mjs";
50
+ } from "../chunk-3AYMUFM6.mjs";
51
51
  import {
52
52
  getRoleId,
53
53
  getStripePublishableKey
@@ -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-J7R24CYB.mjs"), {
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-LYQMDZO7.mjs.map
16888
+ //# sourceMappingURL=chunk-3AYMUFM6.mjs.map