@pixonui/react 0.5.17 → 0.5.19

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
@@ -1695,6 +1695,7 @@ interface InteractiveButton {
1695
1695
  text: string;
1696
1696
  type: 'reply' | 'url' | 'call';
1697
1697
  payload?: string;
1698
+ params?: any;
1698
1699
  }
1699
1700
  interface InteractiveListSection {
1700
1701
  title?: string;
@@ -1725,6 +1726,12 @@ interface InteractiveContent {
1725
1726
  buttons?: InteractiveButton[];
1726
1727
  sections?: InteractiveListSection[];
1727
1728
  cards?: InteractiveCard[];
1729
+ nativeFlow?: {
1730
+ buttons: {
1731
+ name: string;
1732
+ buttonParamsJson: string;
1733
+ }[];
1734
+ };
1728
1735
  }
1729
1736
  interface Message {
1730
1737
  id: string;
@@ -1854,6 +1861,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1854
1861
  onPin?: (message: Message) => void;
1855
1862
  onStar?: (message: Message, starred: boolean) => void;
1856
1863
  onSelect?: (message: Message) => void;
1864
+ onAction?: (message: Message, action: any) => void;
1857
1865
  onImageClick?: (url: string) => void;
1858
1866
  onLoadMore?: () => void;
1859
1867
  hasMore?: boolean;
@@ -1862,7 +1870,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1862
1870
  dateFormat?: string;
1863
1871
  groupByDate?: boolean;
1864
1872
  }
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;
1873
+ declare function MessageList({ messages, currentUserId, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onAction, onImageClick, onLoadMore, hasMore, isLoadingMore, selectedMessages, dateFormat, groupByDate, ...props }: MessageListProps): react_jsx_runtime.JSX.Element;
1866
1874
 
1867
1875
  interface MessageBubbleProps {
1868
1876
  message: Message;
@@ -1879,10 +1887,11 @@ interface MessageBubbleProps {
1879
1887
  onPin?: () => void;
1880
1888
  onStar?: (starred: boolean) => void;
1881
1889
  onSelect?: () => void;
1890
+ onAction?: (action: any) => void;
1882
1891
  onImageClick?: (url: string) => void;
1883
1892
  isSelected?: boolean;
1884
1893
  }
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;
1894
+ declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onAction, onImageClick, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1886
1895
 
1887
1896
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1888
1897
  value?: string;
package/dist/index.d.ts CHANGED
@@ -1695,6 +1695,7 @@ interface InteractiveButton {
1695
1695
  text: string;
1696
1696
  type: 'reply' | 'url' | 'call';
1697
1697
  payload?: string;
1698
+ params?: any;
1698
1699
  }
1699
1700
  interface InteractiveListSection {
1700
1701
  title?: string;
@@ -1725,6 +1726,12 @@ interface InteractiveContent {
1725
1726
  buttons?: InteractiveButton[];
1726
1727
  sections?: InteractiveListSection[];
1727
1728
  cards?: InteractiveCard[];
1729
+ nativeFlow?: {
1730
+ buttons: {
1731
+ name: string;
1732
+ buttonParamsJson: string;
1733
+ }[];
1734
+ };
1728
1735
  }
1729
1736
  interface Message {
1730
1737
  id: string;
@@ -1854,6 +1861,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1854
1861
  onPin?: (message: Message) => void;
1855
1862
  onStar?: (message: Message, starred: boolean) => void;
1856
1863
  onSelect?: (message: Message) => void;
1864
+ onAction?: (message: Message, action: any) => void;
1857
1865
  onImageClick?: (url: string) => void;
1858
1866
  onLoadMore?: () => void;
1859
1867
  hasMore?: boolean;
@@ -1862,7 +1870,7 @@ interface MessageListProps extends Omit<React__default.HTMLAttributes<HTMLDivEle
1862
1870
  dateFormat?: string;
1863
1871
  groupByDate?: boolean;
1864
1872
  }
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;
1873
+ declare function MessageList({ messages, currentUserId, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onAction, onImageClick, onLoadMore, hasMore, isLoadingMore, selectedMessages, dateFormat, groupByDate, ...props }: MessageListProps): react_jsx_runtime.JSX.Element;
1866
1874
 
1867
1875
  interface MessageBubbleProps {
1868
1876
  message: Message;
@@ -1879,10 +1887,11 @@ interface MessageBubbleProps {
1879
1887
  onPin?: () => void;
1880
1888
  onStar?: (starred: boolean) => void;
1881
1889
  onSelect?: () => void;
1890
+ onAction?: (action: any) => void;
1882
1891
  onImageClick?: (url: string) => void;
1883
1892
  isSelected?: boolean;
1884
1893
  }
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;
1894
+ declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onStar, onSelect, onAction, onImageClick, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1886
1895
 
1887
1896
  interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1888
1897
  value?: string;