@connectycube/chat-widget 0.39.3 → 0.40.0

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 (90) hide show
  1. package/dist/index.es.js +1149 -1123
  2. package/dist/index.umd.js +68 -68
  3. package/dist/types/App.d.ts +2 -1
  4. package/dist/types/components/calls/calls-confirm-incoming.d.ts +1 -1
  5. package/dist/types/components/calls/calls-nav-buttons.d.ts +1 -1
  6. package/dist/types/components/calls/calls-screen.d.ts +1 -1
  7. package/dist/types/components/connectycube-ui/alert-dialog.d.ts +4 -2
  8. package/dist/types/components/connectycube-ui/attachment.d.ts +1 -1
  9. package/dist/types/components/connectycube-ui/avatar.d.ts +1 -1
  10. package/dist/types/components/connectycube-ui/badge.d.ts +2 -2
  11. package/dist/types/components/connectycube-ui/button.d.ts +2 -2
  12. package/dist/types/components/connectycube-ui/chat-bubble.d.ts +3 -3
  13. package/dist/types/components/connectycube-ui/chat-input.d.ts +3 -3
  14. package/dist/types/components/connectycube-ui/chat-list.d.ts +3 -3
  15. package/dist/types/components/connectycube-ui/checkbox.d.ts +1 -1
  16. package/dist/types/components/connectycube-ui/dialog-item.d.ts +6 -6
  17. package/dist/types/components/connectycube-ui/dialogs-list.d.ts +1 -1
  18. package/dist/types/components/connectycube-ui/file-picker.d.ts +2 -2
  19. package/dist/types/components/connectycube-ui/label.d.ts +1 -1
  20. package/dist/types/components/connectycube-ui/link-preview.d.ts +1 -1
  21. package/dist/types/components/connectycube-ui/linkify-text.d.ts +1 -1
  22. package/dist/types/components/connectycube-ui/search.d.ts +2 -2
  23. package/dist/types/components/connectycube-ui/spinner.d.ts +1 -1
  24. package/dist/types/components/connectycube-ui/status-call.d.ts +1 -1
  25. package/dist/types/components/connectycube-ui/status-sent.d.ts +1 -1
  26. package/dist/types/components/connectycube-ui/stream-view.d.ts +1 -1
  27. package/dist/types/components/connectycube-ui/utils.d.ts +1 -1
  28. package/dist/types/components/home/home.d.ts +1 -1
  29. package/dist/types/components/home/main/ai-dropdown-menu/ai-dropdown-change-tone.d.ts +2 -2
  30. package/dist/types/components/home/main/ai-dropdown-menu/ai-dropdown-get-summary.d.ts +2 -2
  31. package/dist/types/components/home/main/chat-ai-button.d.ts +1 -1
  32. package/dist/types/components/home/main/chat-footer.d.ts +1 -1
  33. package/dist/types/components/home/main/chat-header/chat-header-avatar.d.ts +1 -1
  34. package/dist/types/components/home/main/chat-header/chat-header-back-button.d.ts +1 -1
  35. package/dist/types/components/home/main/chat-header/chat-header-buttons.d.ts +1 -1
  36. package/dist/types/components/home/main/chat-header/chat-header-titles.d.ts +1 -1
  37. package/dist/types/components/home/main/chat-header/chat-header.d.ts +1 -1
  38. package/dist/types/components/home/main/chat-header.d.ts +1 -1
  39. package/dist/types/components/home/main/chat-info-members.d.ts +1 -1
  40. package/dist/types/components/home/main/chat-info-user.d.ts +1 -1
  41. package/dist/types/components/home/main/chat-message.d.ts +1 -1
  42. package/dist/types/components/home/main/chat-messages-list.d.ts +1 -1
  43. package/dist/types/components/home/main/group-member.d.ts +1 -1
  44. package/dist/types/components/home/main/main.d.ts +1 -1
  45. package/dist/types/components/home/main/my-profile/my-block-list-item.d.ts +1 -1
  46. package/dist/types/components/home/main/my-profile/my-block-list.d.ts +1 -1
  47. package/dist/types/components/home/main/my-profile/my-presence-select.d.ts +1 -1
  48. package/dist/types/components/home/main/my-profile/my-profile.d.ts +1 -1
  49. package/dist/types/components/home/main/profile-info.d.ts +1 -1
  50. package/dist/types/components/home/main/quick-actions.d.ts +1 -1
  51. package/dist/types/components/home/main/report-user-dialog.d.ts +1 -1
  52. package/dist/types/components/home/main/single-view-form.d.ts +1 -1
  53. package/dist/types/components/home/sidebar/chat-item.d.ts +1 -1
  54. package/dist/types/components/home/sidebar/chats-list.d.ts +1 -1
  55. package/dist/types/components/home/sidebar/new-chat/create-group-chat/create-group-chat.d.ts +1 -1
  56. package/dist/types/components/home/sidebar/new-chat/create-group-chat/participant.d.ts +1 -1
  57. package/dist/types/components/home/sidebar/new-chat/new-chat-dialog.d.ts +1 -1
  58. package/dist/types/components/home/sidebar/new-chat/searched-user.d.ts +1 -1
  59. package/dist/types/components/home/sidebar/sidebar.d.ts +1 -1
  60. package/dist/types/components/home/sidebar/tabs/chats-tab.d.ts +1 -1
  61. package/dist/types/components/home/sidebar/tabs/users-tab.d.ts +1 -1
  62. package/dist/types/components/home/sidebar/user-item.d.ts +2 -2
  63. package/dist/types/components/home/sidebar/users-list.d.ts +1 -1
  64. package/dist/types/components/shared/alert-busy.d.ts +1 -1
  65. package/dist/types/components/widget/widget-app.d.ts +1 -1
  66. package/dist/types/components/widget/widget-messages-badge.d.ts +1 -1
  67. package/dist/types/components/widget/widget-online-badge.d.ts +1 -1
  68. package/dist/types/helpers/i18n.d.ts +1 -1
  69. package/dist/types/hooks/store/useActiveTabsStore.d.ts +1 -1
  70. package/dist/types/hooks/store/useAlertBusyStore.d.ts +1 -1
  71. package/dist/types/hooks/store/useAppAIStore.d.ts +1 -1
  72. package/dist/types/hooks/store/useAppDefaultChatStore.d.ts +1 -1
  73. package/dist/types/hooks/store/useAppInterfaceStore.d.ts +1 -1
  74. package/dist/types/hooks/store/useAppNotificationStore.d.ts +1 -1
  75. package/dist/types/hooks/store/useAppQuickActionsStore.d.ts +1 -1
  76. package/dist/types/hooks/store/useAppSettingsStore.d.ts +1 -1
  77. package/dist/types/hooks/store/useDraftMessagesStore.d.ts +1 -1
  78. package/dist/types/hooks/store/useLinkPreviewStore.d.ts +1 -1
  79. package/dist/types/hooks/store/useOnlineUsersCountStore.d.ts +1 -1
  80. package/dist/types/hooks/store/useProfileStore.d.ts +1 -1
  81. package/dist/types/hooks/store/useShadowRootStore.d.ts +1 -1
  82. package/dist/types/hooks/store/useUnreadCountStore.d.ts +1 -1
  83. package/dist/types/hooks/store/useUserSettingsStore.d.ts +2 -2
  84. package/dist/types/hooks/useAppAuthorization.d.ts +1 -1
  85. package/dist/types/lib/utils.d.ts +1 -1
  86. package/package.json +6 -5
  87. package/dist/types/locales/el/translation.json.d.ts +0 -138
  88. package/dist/types/locales/en/translation.json.d.ts +0 -138
  89. package/dist/types/locales/es/translation.json.d.ts +0 -138
  90. package/dist/types/locales/ua/translation.json.d.ts +0 -138
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import '@/helpers/i18n';
2
+ import React from 'react';
2
3
  import { Config } from '@connectycube/react';
3
4
  import { AppPresets } from './hooks/useAppPresets';
4
5
  export type AppProps = AppPresets & {
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const CallsConfirmIncoming: React.FC;
3
3
  export default CallsConfirmIncoming;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type CallsNavBarProps = {
3
3
  customButton?: React.ReactNode;
4
4
  };
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const CallsScreen: React.FC;
3
3
  export default CallsScreen;
@@ -1,6 +1,6 @@
1
- import { ButtonProps } from './button';
2
1
  import * as React from 'react';
3
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { type ButtonProps } from './button';
4
4
  interface AlertDialogProps extends AlertDialogPrimitive.AlertDialogProps {
5
5
  title?: string;
6
6
  description?: string;
@@ -9,8 +9,10 @@ interface AlertDialogProps extends AlertDialogPrimitive.AlertDialogProps {
9
9
  onCancel?: () => void;
10
10
  onConfirm?: () => void;
11
11
  rootProps?: AlertDialogPrimitive.AlertDialogProps;
12
- triggerElement: React.ReactElement;
12
+ triggerElement?: React.ReactElement;
13
13
  triggerProps?: AlertDialogPrimitive.AlertDialogTriggerProps;
14
+ open?: boolean;
15
+ onOpenChange?: (open: boolean) => void;
14
16
  portalProps?: AlertDialogPrimitive.AlertDialogPortalProps;
15
17
  overlayProps?: AlertDialogPrimitive.AlertDialogOverlayProps;
16
18
  contentProps?: AlertDialogPrimitive.AlertDialogContentProps;
@@ -1,5 +1,5 @@
1
- import { LucideProps } from 'lucide-react';
2
1
  import * as React from 'react';
2
+ import { type LucideProps } from 'lucide-react';
3
3
  interface AttachmentProps {
4
4
  pending?: boolean;
5
5
  uid?: string;
@@ -1,6 +1,6 @@
1
- import { PresenceStatus, PresenceBadgeProps } from './presence';
2
1
  import * as React from 'react';
3
2
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
+ import { type PresenceStatus, type PresenceBadgeProps } from './presence';
4
4
  interface AvatarProps extends AvatarPrimitive.AvatarProps {
5
5
  src?: string | undefined;
6
6
  name?: string | undefined;
@@ -1,10 +1,10 @@
1
- import { VariantProps } from 'class-variance-authority';
2
1
  import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
3
  interface BadgeProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof badgeVariants> {
4
4
  asChild?: boolean;
5
5
  }
6
6
  declare const badgeVariants: (props?: ({
7
7
  variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
8
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLElement>>;
10
10
  export { Badge, type BadgeProps };
@@ -1,11 +1,11 @@
1
- import { VariantProps } from 'class-variance-authority';
2
1
  import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
3
  interface ButtonProps extends React.ComponentProps<'button'>, VariantProps<typeof buttonVariants> {
4
4
  asChild?: boolean;
5
5
  }
6
6
  declare const buttonVariants: (props?: ({
7
7
  variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
8
8
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
9
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
11
  export { Button, buttonVariants, type ButtonProps };
@@ -1,7 +1,7 @@
1
- import { AvatarProps } from './avatar';
2
- import { FormattedDateProps } from './formatted-date';
3
- import { StatusSentProps } from './status-sent';
4
1
  import * as React from 'react';
2
+ import { type AvatarProps } from './avatar';
3
+ import { type FormattedDateProps } from './formatted-date';
4
+ import { type StatusSentProps } from './status-sent';
5
5
  interface ChatBubbleProps extends React.ComponentProps<'div'> {
6
6
  onView?: () => void;
7
7
  isLast?: boolean;
@@ -1,7 +1,7 @@
1
- import { TextareaAutosizeProps } from 'react-textarea-autosize';
2
- import { LucideProps } from 'lucide-react';
3
- import { LabelProps } from './label';
4
1
  import * as React from 'react';
2
+ import { type TextareaAutosizeProps } from 'react-textarea-autosize';
3
+ import { type LucideProps } from 'lucide-react';
4
+ import { type LabelProps } from './label';
5
5
  interface ChatInputSendProps extends LabelProps {
6
6
  onSend: () => void;
7
7
  iconElement?: React.ReactNode;
@@ -1,7 +1,7 @@
1
- import { VirtualizerProps, VirtualizerHandle } from 'virtua';
2
- import { FilePickerDropzoneProps } from './file-picker';
3
- import { QuickActionsProps } from './quick-actions';
4
1
  import * as React from 'react';
2
+ import { VirtualizerProps, type VirtualizerHandle } from 'virtua';
3
+ import { type FilePickerDropzoneProps } from './file-picker';
4
+ import { type QuickActionsProps } from './quick-actions';
5
5
  interface ChatListProps extends VirtualizerProps {
6
6
  key: string;
7
7
  loading?: boolean;
@@ -1,6 +1,6 @@
1
- import { LucideProps } from 'lucide-react';
2
1
  import * as React from 'react';
3
2
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
+ import { type LucideProps } from 'lucide-react';
4
4
  interface CheckboxProps extends CheckboxPrimitive.CheckboxProps {
5
5
  iconElement?: React.ReactNode;
6
6
  iconProps?: LucideProps;
@@ -1,10 +1,10 @@
1
- import { AvatarProps } from './avatar';
2
- import { LucideProps } from 'lucide-react';
3
- import { FormattedDateProps } from './formatted-date';
4
- import { StatusSentProps } from './status-sent';
5
- import { PresenceStatus } from './presence';
6
- import { BadgeProps } from './badge';
7
1
  import * as React from 'react';
2
+ import { type AvatarProps } from './avatar';
3
+ import { type LucideProps } from 'lucide-react';
4
+ import { type FormattedDateProps } from './formatted-date';
5
+ import { type StatusSentProps } from './status-sent';
6
+ import { type PresenceStatus } from './presence';
7
+ import { type BadgeProps } from './badge';
8
8
  interface DialogItemProps extends React.ComponentProps<'div'> {
9
9
  index?: number;
10
10
  isPrivateDialog?: boolean;
@@ -1,5 +1,5 @@
1
- import { VListHandle, VListProps } from 'virtua';
2
1
  import * as React from 'react';
2
+ import { type VListHandle, type VListProps } from 'virtua';
3
3
  interface DialogsListProps extends VListProps {
4
4
  pending?: boolean;
5
5
  pendingListLength?: number;
@@ -1,6 +1,6 @@
1
- import { LucideProps } from 'lucide-react';
2
- import { LabelProps } from './label';
3
1
  import * as React from 'react';
2
+ import { LucideProps } from 'lucide-react';
3
+ import { type LabelProps } from './label';
4
4
  interface FilePickerInputProps extends React.ComponentProps<'input'> {
5
5
  onSelectFile?: (files: File[]) => void;
6
6
  onInvalidFile?: () => void;
@@ -1,4 +1,4 @@
1
- import { LabelProps } from '@radix-ui/react-label';
2
1
  import * as React from 'react';
2
+ import { type LabelProps } from '@radix-ui/react-label';
3
3
  declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
4
4
  export { Label, type LabelProps };
@@ -1,5 +1,5 @@
1
- import { LucideProps } from 'lucide-react';
2
1
  import * as React from 'react';
2
+ import { type LucideProps } from 'lucide-react';
3
3
  interface LinkPreviewProps extends React.ComponentProps<'a'> {
4
4
  thin?: boolean;
5
5
  title?: string;
@@ -1,5 +1,5 @@
1
- import { Opts } from 'linkifyjs';
2
1
  import * as React from 'react';
2
+ import type { Opts } from 'linkifyjs';
3
3
  interface LinkifyTextProps extends React.ComponentProps<'p'> {
4
4
  text?: string;
5
5
  pending?: boolean;
@@ -1,6 +1,6 @@
1
- import { InputProps } from './input';
2
- import { LucideProps } from 'lucide-react';
3
1
  import * as React from 'react';
2
+ import { type InputProps } from './input';
3
+ import { type LucideProps } from 'lucide-react';
4
4
  interface SearchProps extends InputProps {
5
5
  onSearch?: (value: string) => void;
6
6
  onCancel?: () => void;
@@ -1,5 +1,5 @@
1
- import { LucideProps } from 'lucide-react';
2
1
  import * as React from 'react';
2
+ import { type LucideProps } from 'lucide-react';
3
3
  interface SpinnerProps extends LucideProps {
4
4
  loading?: boolean;
5
5
  type?: 'default' | 'circle';
@@ -1,5 +1,5 @@
1
- import { LucideProps } from 'lucide-react';
2
1
  import * as React from 'react';
2
+ import { type LucideProps } from 'lucide-react';
3
3
  interface StatusCallProps extends LucideProps {
4
4
  fromMe?: boolean;
5
5
  status?: 'reject' | 'notAnswer' | 'hungUp' | 'cancel' | undefined;
@@ -1,5 +1,5 @@
1
- import { LucideProps } from 'lucide-react';
2
1
  import * as React from 'react';
2
+ import { type LucideProps } from 'lucide-react';
3
3
  interface StatusSentProps extends LucideProps {
4
4
  status?: 'wait' | 'sent' | 'read' | 'lost' | null | undefined;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { LucideProps } from 'lucide-react';
2
1
  import * as React from 'react';
2
+ import { type LucideProps } from 'lucide-react';
3
3
  interface StreamViewProps extends React.ComponentProps<'video'> {
4
4
  stream?: MediaStream | null;
5
5
  mirror?: boolean;
@@ -1,4 +1,4 @@
1
- import { ClassValue } from 'clsx';
1
+ import { type ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
3
  export declare function getRandomString(length?: number): string;
4
4
  export declare function capitalize(str?: string): string;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const Home: React.FC;
3
3
  export default Home;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { AIDropdownMenuSubKeys } from '../../../../helpers/widget';
1
+ import React from 'react';
2
+ import { AIDropdownMenuSubKeys } from '@/helpers/widget';
3
3
  import { LanguageModelV3 } from '@ai-sdk/provider';
4
4
  type AIDropdownChangeToneProps = {
5
5
  activeKey: AIDropdownMenuSubKeys;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { AIDropdownMenuSubKeys } from '../../../../helpers/widget';
1
+ import React from 'react';
2
+ import { AIDropdownMenuSubKeys } from '@/helpers/widget';
3
3
  import { LanguageModelV3 } from '@ai-sdk/provider';
4
4
  type AIDropdownGetSummaryProps = {
5
5
  activeKey: AIDropdownMenuSubKeys;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type ChatAIButtonProps = {
3
3
  inputMessage: string;
4
4
  changeInputMessage: (message: string) => void;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { Dialogs } from '@connectycube/react';
3
3
  export interface ChatFooterProps {
4
4
  onSendMessage: (message: string, dialog?: Dialogs.Dialog) => void;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const ChatHeaderAvatar: React.FC;
3
3
  export default ChatHeaderAvatar;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const ChatHeaderBackButton: React.FC;
3
3
  export default ChatHeaderBackButton;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const ChatHeaderButtons: React.FC;
3
3
  export default ChatHeaderButtons;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const ChatHeaderTitles: React.FC;
3
3
  export default ChatHeaderTitles;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const ChatHeader: React.FC;
3
3
  export default ChatHeader;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const _default: React.NamedExoticComponent<{}>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const _default: React.NamedExoticComponent<{}>;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { Users } from '@connectycube/react';
3
3
  export interface ChatInfoUserProps {
4
4
  user?: Users.User | null;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import type React from 'react';
2
2
  import { Messages } from '@connectycube/react';
3
3
  type ChatMessageProps = {
4
4
  message: Messages.Message;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type ChatMessagesListProps = {
3
3
  onSendMessage: (text: string) => void;
4
4
  onSendAttachment: (files: File[]) => void;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface GroupMemberProps {
3
3
  userId: number;
4
4
  name: string;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const Main: React.FC;
3
3
  export default Main;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { Users } from '@connectycube/react';
3
3
  export interface MyBlockListItemProps {
4
4
  user?: Users.User;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const MyBlockList: React.FC;
3
3
  export default MyBlockList;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const MyPresenceSelect: React.FC;
3
3
  export default MyPresenceSelect;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const MyProfile: React.FC;
3
3
  export default MyProfile;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type ProfileInfoProps = {
3
3
  profileClassName: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface QuickActionsProps {
3
3
  sendMessage: (text: string) => void;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface ReportUserDialogProps {
3
3
  userId: number;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface SingleViewFormProps {
3
3
  onSendMessage: (text: string) => void;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { Dialogs } from '@connectycube/react';
3
3
  export interface ChatItemProps {
4
4
  index: number;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const ChatsList: React.FC;
3
3
  export default ChatsList;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { Users } from '@connectycube/react';
3
3
  export interface CreateGroupChatProps {
4
4
  users: Users.User[];
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface ParticipantProps {
3
3
  avatar?: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export type ChatType = 'private' | 'group';
3
3
  export interface NewChatDialogProps {
4
4
  chatType: ChatType;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { ChatType } from './new-chat-dialog';
3
3
  export interface SearchedUserProps {
4
4
  id: number;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const SideBar: React.FC;
3
3
  export default SideBar;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const ChatsTab: React.FC;
3
3
  export default ChatsTab;
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const UsersTab: React.FC;
3
3
  export default UsersTab;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { UserPresence } from '../../../helpers/connectycube';
1
+ import React from 'react';
2
+ import { UserPresence } from '@/helpers/connectycube';
3
3
  export interface UserItemProps {
4
4
  userId: number;
5
5
  userName: string;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface UsersListProps {
3
3
  searchTerm?: string;
4
4
  }
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  declare const AlertBusy: React.FC;
3
3
  export default AlertBusy;
@@ -1,5 +1,5 @@
1
- import { UserData } from '../../helpers/connectycube';
2
1
  import * as React from 'react';
2
+ import { type UserData } from '@/helpers/connectycube';
3
3
  interface WidgetAppProps {
4
4
  user?: UserData;
5
5
  enabledUserLogin?: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type WidgetMessageBadgeProps = {
3
3
  style?: React.CSSProperties;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  type WidgetOnlineBadgeProps = {
3
3
  style?: React.CSSProperties;
4
4
  };
@@ -1,3 +1,3 @@
1
- import { default as i18n } from 'i18next';
1
+ import i18n from 'i18next';
2
2
  export declare const languages: Record<string, string>;
3
3
  export default i18n;
@@ -10,6 +10,6 @@ export interface ActiveTabsStoreState {
10
10
  export declare const activeTabsInitialState: {
11
11
  activeTab: AppTab;
12
12
  };
13
- declare const useActiveTabsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ActiveTabsStoreState>>;
13
+ declare const useActiveTabsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ActiveTabsStoreState>>;
14
14
  export declare const resetActiveTabs: () => void;
15
15
  export default useActiveTabsStore;
@@ -6,6 +6,6 @@ interface AlertBusyState extends AlertBusyStateProps {
6
6
  showAlertBusy: (title: string) => void;
7
7
  hideAlertBusy: () => void;
8
8
  }
9
- declare const useAlertBusyStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AlertBusyState>>;
9
+ declare const useAlertBusyStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AlertBusyState>>;
10
10
  export declare const resetAlertBusyStore: () => void;
11
11
  export default useAlertBusyStore;
@@ -12,7 +12,7 @@ interface AppAIStoreState extends AppAIStoreStateProps {
12
12
  resetApiKey: () => void;
13
13
  }
14
14
  export declare const appAIStoreInitialState: AppAIStoreStateProps;
15
- declare const useAppAIStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppAIStoreState>>;
15
+ declare const useAppAIStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppAIStoreState>>;
16
16
  export declare const setAppDefaultChatStore: (state: Partial<AppAIStoreStateProps>) => void;
17
17
  export declare const resetAppDefaultChatStore: () => void;
18
18
  export default useAppAIStore;
@@ -29,7 +29,7 @@ interface AppDefaultChatState extends AppDefaultChatStateProps {
29
29
  resetSingleViewChat: () => void;
30
30
  }
31
31
  export declare const appDefaultChatInitialState: AppDefaultChatStateProps;
32
- declare const useDefaultChatStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppDefaultChatState>>;
32
+ declare const useDefaultChatStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppDefaultChatState>>;
33
33
  export declare const setAppDefaultChatStore: (state: Partial<AppDefaultChatStateProps>) => void;
34
34
  export declare const resetAppDefaultChatStore: () => void;
35
35
  export default useDefaultChatStore;
@@ -34,7 +34,7 @@ export interface AppInterfaceStoreState extends AppInterfaceStoreProps {
34
34
  resetImgLogoSource: () => void;
35
35
  }
36
36
  export declare const appInterfaceStoreInitialState: AppInterfaceStoreProps;
37
- declare const useAppInterfaceStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppInterfaceStoreState>>;
37
+ declare const useAppInterfaceStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppInterfaceStoreState>>;
38
38
  export declare const setAppInterfaceStore: (state: Partial<AppInterfaceStoreProps>) => void;
39
39
  export declare const resetAppInterfaceStore: () => void;
40
40
  export default useAppInterfaceStore;
@@ -28,7 +28,7 @@ export declare const appNotificationStoreInitialState: {
28
28
  webPushVapidPublicKey: any;
29
29
  serviceWorkerPath: any;
30
30
  };
31
- declare const useAppNotificationStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppNotificationStoreState>>;
31
+ declare const useAppNotificationStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppNotificationStoreState>>;
32
32
  export declare const setAppNotificationStore: (state: Partial<AppNotificationStoreProps>) => void;
33
33
  export declare const resetAppNotificationStore: () => void;
34
34
  export default useAppNotificationStore;
@@ -11,7 +11,7 @@ export interface AppQuickActionsStoreState extends AppQuickActionsStoreProps {
11
11
  resetQuickActions: () => void;
12
12
  }
13
13
  export declare const appQuickActionsStoreInitialState: AppQuickActionsStoreProps;
14
- declare const useAppQuickActionsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppQuickActionsStoreState>>;
14
+ declare const useAppQuickActionsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppQuickActionsStoreState>>;
15
15
  export declare const setAppQuickActionsStore: (state: Partial<AppQuickActionsStoreProps>) => void;
16
16
  export declare const resetAppQuickActionsStore: () => void;
17
17
  export default useAppQuickActionsStore;