@greatapps/greatchat-ui 0.1.6 → 0.2.1

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.
Files changed (45) hide show
  1. package/dist/index.d.ts +2 -4
  2. package/dist/index.js +667 -1560
  3. package/dist/index.js.map +1 -1
  4. package/package.json +16 -13
  5. package/src/components/channel-card.tsx +1 -1
  6. package/src/components/channel-create-dialog.tsx +4 -4
  7. package/src/components/channel-edit-dialog.tsx +4 -4
  8. package/src/components/channels-page.tsx +3 -3
  9. package/src/components/chat-dashboard.tsx +5 -5
  10. package/src/components/chat-input.tsx +1 -2
  11. package/src/components/chat-view.tsx +1 -8
  12. package/src/components/contact-avatar.tsx +1 -2
  13. package/src/components/contact-form-dialog.tsx +5 -5
  14. package/src/components/contact-info-panel.tsx +1 -4
  15. package/src/components/contacts-page.tsx +1 -1
  16. package/src/components/contacts-table.tsx +3 -5
  17. package/src/components/data-table.tsx +4 -4
  18. package/src/components/inbox-item.tsx +6 -4
  19. package/src/components/inbox-page.tsx +1 -8
  20. package/src/components/inbox-sidebar.tsx +1 -5
  21. package/src/components/message-bubble.tsx +4 -6
  22. package/src/components/new-conversation-dialog.tsx +2 -6
  23. package/src/components/whatsapp-qr-dialog.tsx +2 -2
  24. package/src/components/whatsapp-status-badge.tsx +1 -1
  25. package/src/index.ts +1 -1
  26. package/src/components/ui/alert-dialog.tsx +0 -167
  27. package/src/components/ui/avatar.tsx +0 -51
  28. package/src/components/ui/badge.tsx +0 -44
  29. package/src/components/ui/button.tsx +0 -62
  30. package/src/components/ui/card.tsx +0 -94
  31. package/src/components/ui/command.tsx +0 -106
  32. package/src/components/ui/dialog.tsx +0 -133
  33. package/src/components/ui/dropdown-menu.tsx +0 -173
  34. package/src/components/ui/input.tsx +0 -19
  35. package/src/components/ui/label.tsx +0 -24
  36. package/src/components/ui/progress.tsx +0 -31
  37. package/src/components/ui/scroll-area.tsx +0 -50
  38. package/src/components/ui/select.tsx +0 -156
  39. package/src/components/ui/separator.tsx +0 -26
  40. package/src/components/ui/skeleton.tsx +0 -16
  41. package/src/components/ui/table.tsx +0 -101
  42. package/src/components/ui/tabs.tsx +0 -64
  43. package/src/components/ui/textarea.tsx +0 -18
  44. package/src/components/ui/tooltip.tsx +0 -58
  45. package/src/lib/utils.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ClassValue } from 'clsx';
1
+ export { cn } from '@greatapps/greatauth-ui/ui';
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import * as _tanstack_query_core from '@tanstack/query-core';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -138,8 +138,6 @@ declare function createGchatClient(config: GchatClientConfig): {
138
138
  provisionChannel: (idAccount: number, id: number) => Promise<ApiResponse<unknown>>;
139
139
  };
140
140
 
141
- declare function cn(...inputs: ClassValue[]): string;
142
-
143
141
  /**
144
142
  * Groups messages by date. Assumes messages are pre-sorted by datetime_add (ascending).
145
143
  */
@@ -587,4 +585,4 @@ interface ChatDashboardProps {
587
585
  }
588
586
  declare function ChatDashboard({ config, userName, onNavigateToInbox, onNavigateToChannels, renderExtraSection, }: ChatDashboardProps): react_jsx_runtime.JSX.Element;
589
587
 
590
- export { type ApiResponse, type Channel, ChannelCard, type ChannelCardProps, ChannelCreateDialog, type ChannelCreateDialogProps, ChannelEditDialog, type ChannelEditDialogProps, ChannelsPage, type ChannelsPageProps, ChatDashboard, type ChatDashboardProps, ChatInput, type ChatInputProps, ChatView, type ChatViewProps, type Contact, ContactAvatar, type ContactAvatarProps, ContactFormDialog, type ContactFormDialogProps, ContactInfoPanel, type ContactInfoPanelProps, ContactsPage, type ContactsPageProps, ContactsTable, type ContactsTableProps, DEFAULT_CHANNEL_STATUS_POLLING, DEFAULT_INBOX_POLLING, DEFAULT_MESSAGES_POLLING, DEFAULT_QR_POLLING, DataTable, type DataTableProps, type GchatClientConfig, type GchatHookConfig, type Inbox, InboxItem, type InboxItemProps, type InboxMessage, InboxPage, type InboxPageProps, InboxSidebar, type InboxSidebarProps, type InboxStats, MessageBubble, type MessageBubbleProps, type MessageContentType, NewConversationDialog, type NewConversationDialogProps, WhatsappIcon, WhatsappQrDialog, type WhatsappQrDialogProps, type WhatsappStatus, WhatsappStatusBadge, type WhatsappStatusBadgeProps, cn, createGchatClient, formatDateGroup, formatMessageTime, groupMessagesByDate, useChannelQR, useChannelWhatsappStatus, useChannels, useConnectChannel, useContacts, useCreateChannel, useCreateContact, useCreateInbox, useDeleteChannel, useDeleteContact, useDeleteInbox, useDisconnectChannel, useEditMessage, useGetContact, useInbox, useInboxMessages, useInboxStats, useInboxes, useLogoutChannel, useRetryMessage, useRevokeMessage, useSendMessage, useUpdateChannel, useUpdateContact, useUpdateInbox };
588
+ export { type ApiResponse, type Channel, ChannelCard, type ChannelCardProps, ChannelCreateDialog, type ChannelCreateDialogProps, ChannelEditDialog, type ChannelEditDialogProps, ChannelsPage, type ChannelsPageProps, ChatDashboard, type ChatDashboardProps, ChatInput, type ChatInputProps, ChatView, type ChatViewProps, type Contact, ContactAvatar, type ContactAvatarProps, ContactFormDialog, type ContactFormDialogProps, ContactInfoPanel, type ContactInfoPanelProps, ContactsPage, type ContactsPageProps, ContactsTable, type ContactsTableProps, DEFAULT_CHANNEL_STATUS_POLLING, DEFAULT_INBOX_POLLING, DEFAULT_MESSAGES_POLLING, DEFAULT_QR_POLLING, DataTable, type DataTableProps, type GchatClientConfig, type GchatHookConfig, type Inbox, InboxItem, type InboxItemProps, type InboxMessage, InboxPage, type InboxPageProps, InboxSidebar, type InboxSidebarProps, type InboxStats, MessageBubble, type MessageBubbleProps, type MessageContentType, NewConversationDialog, type NewConversationDialogProps, WhatsappIcon, WhatsappQrDialog, type WhatsappQrDialogProps, type WhatsappStatus, WhatsappStatusBadge, type WhatsappStatusBadgeProps, createGchatClient, formatDateGroup, formatMessageTime, groupMessagesByDate, useChannelQR, useChannelWhatsappStatus, useChannels, useConnectChannel, useContacts, useCreateChannel, useCreateContact, useCreateInbox, useDeleteChannel, useDeleteContact, useDeleteInbox, useDisconnectChannel, useEditMessage, useGetContact, useInbox, useInboxMessages, useInboxStats, useInboxes, useLogoutChannel, useRetryMessage, useRevokeMessage, useSendMessage, useUpdateChannel, useUpdateContact, useUpdateInbox };