@pixonui/react 0.5.14 → 0.5.15

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
@@ -1830,6 +1830,7 @@ interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement>
1830
1830
  user: User;
1831
1831
  onBack?: () => void;
1832
1832
  onInfo?: () => void;
1833
+ onAvatarClick?: () => void;
1833
1834
  onCall?: () => void;
1834
1835
  onVideoCall?: () => void;
1835
1836
  onSearch?: () => void;
@@ -1838,7 +1839,7 @@ interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement>
1838
1839
  isMuted?: boolean;
1839
1840
  actions?: React__default.ReactNode;
1840
1841
  }
1841
- declare function ChatHeader({ user, onBack, onInfo, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1842
+ declare function ChatHeader({ user, onBack, onInfo, onAvatarClick, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1842
1843
 
1843
1844
  interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSelect'> {
1844
1845
  messages: Message[];
@@ -1874,9 +1875,10 @@ interface MessageBubbleProps {
1874
1875
  onCopy?: () => void;
1875
1876
  onPin?: () => void;
1876
1877
  onSelect?: () => void;
1878
+ onImageClick?: (url: string) => void;
1877
1879
  isSelected?: boolean;
1878
1880
  }
1879
- declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
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;
1880
1882
 
1881
1883
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1882
1884
  value?: string;
package/dist/index.d.ts CHANGED
@@ -1830,6 +1830,7 @@ interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement>
1830
1830
  user: User;
1831
1831
  onBack?: () => void;
1832
1832
  onInfo?: () => void;
1833
+ onAvatarClick?: () => void;
1833
1834
  onCall?: () => void;
1834
1835
  onVideoCall?: () => void;
1835
1836
  onSearch?: () => void;
@@ -1838,7 +1839,7 @@ interface ChatHeaderProps extends React__default.HTMLAttributes<HTMLDivElement>
1838
1839
  isMuted?: boolean;
1839
1840
  actions?: React__default.ReactNode;
1840
1841
  }
1841
- declare function ChatHeader({ user, onBack, onInfo, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1842
+ declare function ChatHeader({ user, onBack, onInfo, onAvatarClick, onCall, onVideoCall, onSearch, onMute, isTyping, isMuted, actions, className, ...props }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1842
1843
 
1843
1844
  interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSelect'> {
1844
1845
  messages: Message[];
@@ -1874,9 +1875,10 @@ interface MessageBubbleProps {
1874
1875
  onCopy?: () => void;
1875
1876
  onPin?: () => void;
1876
1877
  onSelect?: () => void;
1878
+ onImageClick?: (url: string) => void;
1877
1879
  isSelected?: boolean;
1878
1880
  }
1879
- declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
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;
1880
1882
 
1881
1883
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1882
1884
  value?: string;