react-luminus-components 1.3.26 → 1.3.27

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.
@@ -1,14 +1,14 @@
1
1
  import { ReactNode } from 'react';
2
2
  import BaseMessageBoardModel from '../../../models/types/BaseMessageBoardModel';
3
- type Props = {
3
+ type Props<MessageType extends BaseMessageBoardModel> = {
4
4
  renderAsNotifPanel?: boolean;
5
5
  notifIcon?: ReactNode;
6
6
  apiUrls?: {
7
7
  apiGet?: string;
8
8
  apiDelete?: string;
9
9
  };
10
- getIcon: (message: BaseMessageBoardModel & Record<string, unknown>) => React.ReactNode | null;
11
- getLinksTo: (message: BaseMessageBoardModel & Record<string, unknown>) => string | null;
10
+ getIcon: (message: MessageType) => React.ReactNode | null;
11
+ getLinksTo: (message: MessageType) => string | null;
12
12
  };
13
- declare const MessageBoard: <MessageType extends BaseMessageBoardModel>({ renderAsNotifPanel, notifIcon, apiUrls: { apiGet, apiDelete, }, getIcon, getLinksTo, }: Props) => import("react").JSX.Element;
13
+ declare const MessageBoard: <MessageType extends BaseMessageBoardModel>({ renderAsNotifPanel, notifIcon, apiUrls: { apiGet, apiDelete, }, getIcon, getLinksTo, }: Props<MessageType>) => import("react").JSX.Element;
14
14
  export default MessageBoard;
@@ -5,8 +5,8 @@ type Props<MessageType extends BaseMessageBoardModel> = {
5
5
  isLoading: boolean;
6
6
  onDeleteMessage: (messageId: number) => void;
7
7
  onClickMessage?: () => void;
8
- getIcon: (message: BaseMessageBoardModel & Record<string, unknown>) => React.ReactNode | null;
9
- getLinksTo: (message: BaseMessageBoardModel & Record<string, unknown>) => string | null;
8
+ getIcon: (message: MessageType) => React.ReactNode | null;
9
+ getLinksTo: (message: MessageType) => string | null;
10
10
  };
11
11
  declare const MessageList: <MessageType extends BaseMessageBoardModel>({ messages, isLoading, onDeleteMessage, onClickMessage, getIcon, getLinksTo, }: Props<MessageType>) => import("react").JSX.Element;
12
12
  export default MessageList;
package/dist/hooks.d.ts CHANGED
@@ -6,7 +6,7 @@ import { Dispatch } from 'react';
6
6
  import { GenericAbortSignal } from 'axios';
7
7
  import { RefObject } from 'react';
8
8
  import { SetStateAction } from 'react';
9
- import { z } from 'zod';
9
+ import { z } from '../../../node_modules/zod';
10
10
 
11
11
  export declare const cancelToken: CancelTokenStatic;
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-luminus-components",
3
- "version": "1.3.26",
3
+ "version": "1.3.27",
4
4
  "description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
5
5
  "type": "module",
6
6
  "repository": {