@pixonui/react 0.5.13 → 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;
@@ -1885,6 +1887,7 @@ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
1885
1887
  onChange?: (content: string) => void;
1886
1888
  onAttach?: () => void;
1887
1889
  onMic?: () => void;
1890
+ onVoiceEnd?: (blob: Blob, duration: number) => void;
1888
1891
  onEmoji?: () => void;
1889
1892
  onGif?: () => void;
1890
1893
  onLocation?: () => void;
@@ -1902,7 +1905,7 @@ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
1902
1905
  maxLength?: number;
1903
1906
  disabled?: boolean;
1904
1907
  }
1905
- declare function ChatInput({ value, onValueChange, onSend, onChange, onAttach, onMic, onEmoji, onGif, onLocation, onContact, onPoll, onPix, onCarousel, onButtons, onList, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1908
+ declare function ChatInput({ value, onValueChange, onSend, onChange, onAttach, onMic, onVoiceEnd, onEmoji, onGif, onLocation, onContact, onPoll, onPix, onCarousel, onButtons, onList, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1906
1909
 
1907
1910
  interface ChatProfileProps extends React__default.HTMLAttributes<HTMLDivElement> {
1908
1911
  user: User;
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;
@@ -1885,6 +1887,7 @@ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
1885
1887
  onChange?: (content: string) => void;
1886
1888
  onAttach?: () => void;
1887
1889
  onMic?: () => void;
1890
+ onVoiceEnd?: (blob: Blob, duration: number) => void;
1888
1891
  onEmoji?: () => void;
1889
1892
  onGif?: () => void;
1890
1893
  onLocation?: () => void;
@@ -1902,7 +1905,7 @@ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
1902
1905
  maxLength?: number;
1903
1906
  disabled?: boolean;
1904
1907
  }
1905
- declare function ChatInput({ value, onValueChange, onSend, onChange, onAttach, onMic, onEmoji, onGif, onLocation, onContact, onPoll, onPix, onCarousel, onButtons, onList, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1908
+ declare function ChatInput({ value, onValueChange, onSend, onChange, onAttach, onMic, onVoiceEnd, onEmoji, onGif, onLocation, onContact, onPoll, onPix, onCarousel, onButtons, onList, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1906
1909
 
1907
1910
  interface ChatProfileProps extends React__default.HTMLAttributes<HTMLDivElement> {
1908
1911
  user: User;