@carlonicora/nextjs-jsonapi 3.5.4 → 3.5.5

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.
@@ -466,16 +466,16 @@ type BlockNoteEditorProps = {
466
466
  aiEnabled?: boolean;
467
467
  };
468
468
 
469
- declare const BlockNoteEditorContainer: React__default.NamedExoticComponent<BlockNoteEditorProps>;
469
+ declare const BlockNoteEditorContainer: React__default.MemoExoticComponent<(props: BlockNoteEditorProps) => React__default.JSX.Element>;
470
470
 
471
471
  declare function BlockNoteEditorMentionHoverCard({ containerRef, mentionResolveFn, }: {
472
472
  containerRef: React__default.RefObject<HTMLDivElement | null>;
473
473
  mentionResolveFn?: MentionResolveFn;
474
474
  }): React__default.ReactPortal | null;
475
475
 
476
- declare const BlockNoteViewerContainer: React__default.NamedExoticComponent<{
476
+ declare const BlockNoteViewerContainer: React__default.MemoExoticComponent<(props: {
477
477
  content: unknown;
478
- }>;
478
+ }) => React__default.JSX.Element>;
479
479
 
480
480
  declare function ErrorDetails({ title, message, code }: {
481
481
  title?: string;
@@ -1230,7 +1230,7 @@ type ContentListTableProps = {
1230
1230
  emptyState?: ReactNode;
1231
1231
  onRowClick?: (rowData: any) => void;
1232
1232
  };
1233
- declare const ContentListTable: React__default.NamedExoticComponent<ContentListTableProps>;
1233
+ declare const ContentListTable: React__default.MemoExoticComponent<(props: ContentListTableProps) => React__default.JSX.Element>;
1234
1234
 
1235
1235
  type ContentTableSearchProps = {
1236
1236
  data: DataListRetriever<any>;
@@ -466,16 +466,16 @@ type BlockNoteEditorProps = {
466
466
  aiEnabled?: boolean;
467
467
  };
468
468
 
469
- declare const BlockNoteEditorContainer: React__default.NamedExoticComponent<BlockNoteEditorProps>;
469
+ declare const BlockNoteEditorContainer: React__default.MemoExoticComponent<(props: BlockNoteEditorProps) => React__default.JSX.Element>;
470
470
 
471
471
  declare function BlockNoteEditorMentionHoverCard({ containerRef, mentionResolveFn, }: {
472
472
  containerRef: React__default.RefObject<HTMLDivElement | null>;
473
473
  mentionResolveFn?: MentionResolveFn;
474
474
  }): React__default.ReactPortal | null;
475
475
 
476
- declare const BlockNoteViewerContainer: React__default.NamedExoticComponent<{
476
+ declare const BlockNoteViewerContainer: React__default.MemoExoticComponent<(props: {
477
477
  content: unknown;
478
- }>;
478
+ }) => React__default.JSX.Element>;
479
479
 
480
480
  declare function ErrorDetails({ title, message, code }: {
481
481
  title?: string;
@@ -1230,7 +1230,7 @@ type ContentListTableProps = {
1230
1230
  emptyState?: ReactNode;
1231
1231
  onRowClick?: (rowData: any) => void;
1232
1232
  };
1233
- declare const ContentListTable: React__default.NamedExoticComponent<ContentListTableProps>;
1233
+ declare const ContentListTable: React__default.MemoExoticComponent<(props: ContentListTableProps) => React__default.JSX.Element>;
1234
1234
 
1235
1235
  type ContentTableSearchProps = {
1236
1236
  data: DataListRetriever<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "3.5.4",
3
+ "version": "3.5.5",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -207,7 +207,7 @@
207
207
  "react-hook-form": "7.86.0",
208
208
  "semantic-release": "25.0.8",
209
209
  "tsup": "^8.5.1",
210
- "typescript": "^5.9.3",
210
+ "typescript": "^6.0.3",
211
211
  "vitest": "^4.1.11"
212
212
  },
213
213
  "keywords": [
@@ -12,7 +12,10 @@
12
12
  "esModuleInterop": true,
13
13
  "skipLibCheck": true,
14
14
  "strict": true,
15
- "resolveJsonModule": true
15
+ "resolveJsonModule": true,
16
+ "types": [
17
+ "node"
18
+ ]
16
19
  },
17
20
  "include": [
18
21
  "./**/*.ts"
package/src/css.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ // TypeScript 6 reports TS2882 for side-effect CSS imports that have no type
2
+ // declaration. Bundlers (Next/webpack/turbopack) handle these at build time;
3
+ // the compiler only needs to know the module exists.
4
+ declare module "*.css";