@pixonui/react 0.5.15 → 0.5.18

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/index.d.mts CHANGED
@@ -1820,11 +1820,12 @@ interface ChatSidebarProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1820
1820
  onPin?: (id: string) => void;
1821
1821
  onMute?: (id: string) => void;
1822
1822
  onDelete?: (id: string) => void;
1823
+ onMarkUnread?: (id: string) => void;
1823
1824
  filter?: 'all' | 'unread' | 'groups';
1824
1825
  sortBy?: 'recent' | 'unread' | 'name';
1825
1826
  hideHeader?: boolean;
1826
1827
  }
1827
- declare function ChatSidebar({ conversations, activeId, onSelect, onNewChat, onSearch, onArchive, onPin, onMute, onDelete, filter, sortBy, hideHeader, className, ...props }: ChatSidebarProps): react_jsx_runtime.JSX.Element;
1828
+ declare function ChatSidebar({ conversations, activeId, onSelect, onNewChat, onSearch, onArchive, onPin, onMute, onDelete, onMarkUnread, filter, sortBy, hideHeader, className, ...props }: ChatSidebarProps): react_jsx_runtime.JSX.Element;
1828
1829
 
1829
1830
  interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement> {
1830
1831
  user: User;
@@ -1851,7 +1852,9 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1851
1852
  onForward?: (message: Message) => void;
1852
1853
  onCopy?: (message: Message) => void;
1853
1854
  onPin?: (message: Message) => void;
1855
+ onStar?: (message: Message, starred: boolean) => void;
1854
1856
  onSelect?: (message: Message) => void;
1857
+ onImageClick?: (url: string) => void;
1855
1858
  onLoadMore?: () => void;
1856
1859
  hasMore?: boolean;
1857
1860
  isLoadingMore?: boolean;
@@ -1859,7 +1862,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1859
1862
  dateFormat?: string;
1860
1863
  groupByDate?: boolean;
1861
1864
  }
1862
- declare function MessageList({ messages, currentUserId, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, onLoadMore, hasMore, isLoadingMore, selectedMessages, dateFormat, groupByDate, ...props }: MessageListProps): react_jsx_runtime.JSX.Element;
1865
+ declare function MessageList({ messages, currentUserId, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onImageClick, onLoadMore, hasMore, isLoadingMore, selectedMessages, dateFormat, groupByDate, ...props }: MessageListProps): react_jsx_runtime.JSX.Element;
1863
1866
 
1864
1867
  interface MessageBubbleProps {
1865
1868
  message: Message;
@@ -1874,11 +1877,12 @@ interface MessageBubbleProps {
1874
1877
  onForward?: () => void;
1875
1878
  onCopy?: () => void;
1876
1879
  onPin?: () => void;
1880
+ onStar?: (starred: boolean) => void;
1877
1881
  onSelect?: () => void;
1878
1882
  onImageClick?: (url: string) => void;
1879
1883
  isSelected?: boolean;
1880
1884
  }
1881
- declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, onImageClick, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1885
+ declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onImageClick, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1882
1886
 
1883
1887
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1884
1888
  value?: string;
package/dist/index.d.ts CHANGED
@@ -1820,11 +1820,12 @@ interface ChatSidebarProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1820
1820
  onPin?: (id: string) => void;
1821
1821
  onMute?: (id: string) => void;
1822
1822
  onDelete?: (id: string) => void;
1823
+ onMarkUnread?: (id: string) => void;
1823
1824
  filter?: 'all' | 'unread' | 'groups';
1824
1825
  sortBy?: 'recent' | 'unread' | 'name';
1825
1826
  hideHeader?: boolean;
1826
1827
  }
1827
- declare function ChatSidebar({ conversations, activeId, onSelect, onNewChat, onSearch, onArchive, onPin, onMute, onDelete, filter, sortBy, hideHeader, className, ...props }: ChatSidebarProps): react_jsx_runtime.JSX.Element;
1828
+ declare function ChatSidebar({ conversations, activeId, onSelect, onNewChat, onSearch, onArchive, onPin, onMute, onDelete, onMarkUnread, filter, sortBy, hideHeader, className, ...props }: ChatSidebarProps): react_jsx_runtime.JSX.Element;
1828
1829
 
1829
1830
  interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement> {
1830
1831
  user: User;
@@ -1851,7 +1852,9 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1851
1852
  onForward?: (message: Message) => void;
1852
1853
  onCopy?: (message: Message) => void;
1853
1854
  onPin?: (message: Message) => void;
1855
+ onStar?: (message: Message, starred: boolean) => void;
1854
1856
  onSelect?: (message: Message) => void;
1857
+ onImageClick?: (url: string) => void;
1855
1858
  onLoadMore?: () => void;
1856
1859
  hasMore?: boolean;
1857
1860
  isLoadingMore?: boolean;
@@ -1859,7 +1862,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1859
1862
  dateFormat?: string;
1860
1863
  groupByDate?: boolean;
1861
1864
  }
1862
- declare function MessageList({ messages, currentUserId, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, onLoadMore, hasMore, isLoadingMore, selectedMessages, dateFormat, groupByDate, ...props }: MessageListProps): react_jsx_runtime.JSX.Element;
1865
+ declare function MessageList({ messages, currentUserId, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onImageClick, onLoadMore, hasMore, isLoadingMore, selectedMessages, dateFormat, groupByDate, ...props }: MessageListProps): react_jsx_runtime.JSX.Element;
1863
1866
 
1864
1867
  interface MessageBubbleProps {
1865
1868
  message: Message;
@@ -1874,11 +1877,12 @@ interface MessageBubbleProps {
1874
1877
  onForward?: () => void;
1875
1878
  onCopy?: () => void;
1876
1879
  onPin?: () => void;
1880
+ onStar?: (starred: boolean) => void;
1877
1881
  onSelect?: () => void;
1878
1882
  onImageClick?: (url: string) => void;
1879
1883
  isSelected?: boolean;
1880
1884
  }
1881
- declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, onImageClick, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1885
+ declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onImageClick, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1882
1886
 
1883
1887
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1884
1888
  value?: string;