@pixonui/react 0.5.14 → 0.5.17

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,16 +1820,18 @@ 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;
1831
1832
  onBack?: () => void;
1832
1833
  onInfo?: () => void;
1834
+ onAvatarClick?: () => void;
1833
1835
  onCall?: () => void;
1834
1836
  onVideoCall?: () => void;
1835
1837
  onSearch?: () => void;
@@ -1838,7 +1840,7 @@ interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement>
1838
1840
  isMuted?: boolean;
1839
1841
  actions?: React__default.ReactNode;
1840
1842
  }
1841
- declare function ChatHeader({ user, onBack, onInfo, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1843
+ declare function ChatHeader({ user, onBack, onInfo, onAvatarClick, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1842
1844
 
1843
1845
  interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSelect'> {
1844
1846
  messages: Message[];
@@ -1850,7 +1852,9 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1850
1852
  onForward?: (message: Message) => void;
1851
1853
  onCopy?: (message: Message) => void;
1852
1854
  onPin?: (message: Message) => void;
1855
+ onStar?: (message: Message, starred: boolean) => void;
1853
1856
  onSelect?: (message: Message) => void;
1857
+ onImageClick?: (url: string) => void;
1854
1858
  onLoadMore?: () => void;
1855
1859
  hasMore?: boolean;
1856
1860
  isLoadingMore?: boolean;
@@ -1858,7 +1862,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1858
1862
  dateFormat?: string;
1859
1863
  groupByDate?: boolean;
1860
1864
  }
1861
- 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;
1862
1866
 
1863
1867
  interface MessageBubbleProps {
1864
1868
  message: Message;
@@ -1873,10 +1877,12 @@ interface MessageBubbleProps {
1873
1877
  onForward?: () => void;
1874
1878
  onCopy?: () => void;
1875
1879
  onPin?: () => void;
1880
+ onStar?: (starred: boolean) => void;
1876
1881
  onSelect?: () => void;
1882
+ onImageClick?: (url: string) => void;
1877
1883
  isSelected?: boolean;
1878
1884
  }
1879
- declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, 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;
1880
1886
 
1881
1887
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1882
1888
  value?: string;
package/dist/index.d.ts CHANGED
@@ -1820,16 +1820,18 @@ 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;
1831
1832
  onBack?: () => void;
1832
1833
  onInfo?: () => void;
1834
+ onAvatarClick?: () => void;
1833
1835
  onCall?: () => void;
1834
1836
  onVideoCall?: () => void;
1835
1837
  onSearch?: () => void;
@@ -1838,7 +1840,7 @@ interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement>
1838
1840
  isMuted?: boolean;
1839
1841
  actions?: React__default.ReactNode;
1840
1842
  }
1841
- declare function ChatHeader({ user, onBack, onInfo, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1843
+ declare function ChatHeader({ user, onBack, onInfo, onAvatarClick, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1842
1844
 
1843
1845
  interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSelect'> {
1844
1846
  messages: Message[];
@@ -1850,7 +1852,9 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1850
1852
  onForward?: (message: Message) => void;
1851
1853
  onCopy?: (message: Message) => void;
1852
1854
  onPin?: (message: Message) => void;
1855
+ onStar?: (message: Message, starred: boolean) => void;
1853
1856
  onSelect?: (message: Message) => void;
1857
+ onImageClick?: (url: string) => void;
1854
1858
  onLoadMore?: () => void;
1855
1859
  hasMore?: boolean;
1856
1860
  isLoadingMore?: boolean;
@@ -1858,7 +1862,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1858
1862
  dateFormat?: string;
1859
1863
  groupByDate?: boolean;
1860
1864
  }
1861
- 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;
1862
1866
 
1863
1867
  interface MessageBubbleProps {
1864
1868
  message: Message;
@@ -1873,10 +1877,12 @@ interface MessageBubbleProps {
1873
1877
  onForward?: () => void;
1874
1878
  onCopy?: () => void;
1875
1879
  onPin?: () => void;
1880
+ onStar?: (starred: boolean) => void;
1876
1881
  onSelect?: () => void;
1882
+ onImageClick?: (url: string) => void;
1877
1883
  isSelected?: boolean;
1878
1884
  }
1879
- declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, 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;
1880
1886
 
1881
1887
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1882
1888
  value?: string;