@carlonicora/nextjs-jsonapi 3.20.0 → 3.20.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.
@@ -62,7 +62,7 @@ import {
62
62
  useCurrentUserContext,
63
63
  useDataListRetriever,
64
64
  usePageUrlGenerator
65
- } from "../chunk-CJHBL5AN.mjs";
65
+ } from "../chunk-HP3SPOPP.mjs";
66
66
  import {
67
67
  getRoleId,
68
68
  getStripePublishableKey,
@@ -10393,7 +10393,7 @@ import { useRef as useRef17 } from "react";
10393
10393
  import dynamic from "next/dynamic";
10394
10394
  import React18 from "react";
10395
10395
  import { jsx as jsx90 } from "react/jsx-runtime";
10396
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-CTRQ6JWE.mjs"), {
10396
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-FKYWM4NJ.mjs"), {
10397
10397
  ssr: false
10398
10398
  });
10399
10399
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -17661,6 +17661,18 @@ function getGroupKeys(item, field) {
17661
17661
  return [String(value ?? "")];
17662
17662
  }
17663
17663
  __name(getGroupKeys, "getGroupKeys");
17664
+ var isClassComponent = /* @__PURE__ */ __name((component) => typeof component === "function" && !!component.prototype?.isReactComponent, "isClassComponent");
17665
+ function StableCell({ render, context }) {
17666
+ return /* @__PURE__ */ jsx191(Fragment28, { children: render(context) });
17667
+ }
17668
+ __name(StableCell, "StableCell");
17669
+ function renderCell(cellDef, context) {
17670
+ if (typeof cellDef === "function" && !isClassComponent(cellDef)) {
17671
+ return /* @__PURE__ */ jsx191(StableCell, { render: cellDef, context });
17672
+ }
17673
+ return flexRender(cellDef, context);
17674
+ }
17675
+ __name(renderCell, "renderCell");
17664
17676
  var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(props) {
17665
17677
  const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth, onRowClick } = props;
17666
17678
  const t = useTranslations61();
@@ -17786,7 +17798,7 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
17786
17798
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
17787
17799
  children: row.getVisibleCells().map((cell) => {
17788
17800
  const meta = cell.column.columnDef.meta;
17789
- return /* @__PURE__ */ jsx191(TableCell, { className: meta?.className, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17801
+ return /* @__PURE__ */ jsx191(TableCell, { className: meta?.className, children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17790
17802
  })
17791
17803
  },
17792
17804
  row.id
@@ -17798,7 +17810,7 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
17798
17810
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
17799
17811
  children: row.getVisibleCells().map((cell) => {
17800
17812
  const meta = cell.column.columnDef.meta;
17801
- return /* @__PURE__ */ jsx191(TableCell, { className: meta?.className, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17813
+ return /* @__PURE__ */ jsx191(TableCell, { className: meta?.className, children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17802
17814
  })
17803
17815
  },
17804
17816
  row.id
@@ -27247,4 +27259,4 @@ export {
27247
27259
  useOAuthClients,
27248
27260
  useOAuthClient
27249
27261
  };
27250
- //# sourceMappingURL=chunk-CJHBL5AN.mjs.map
27262
+ //# sourceMappingURL=chunk-HP3SPOPP.mjs.map