@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.
- package/dist/index.es.js +1149 -1123
- package/dist/index.umd.js +68 -68
- package/dist/types/App.d.ts +2 -1
- package/dist/types/components/calls/calls-confirm-incoming.d.ts +1 -1
- package/dist/types/components/calls/calls-nav-buttons.d.ts +1 -1
- package/dist/types/components/calls/calls-screen.d.ts +1 -1
- package/dist/types/components/connectycube-ui/alert-dialog.d.ts +4 -2
- package/dist/types/components/connectycube-ui/attachment.d.ts +1 -1
- package/dist/types/components/connectycube-ui/avatar.d.ts +1 -1
- package/dist/types/components/connectycube-ui/badge.d.ts +2 -2
- package/dist/types/components/connectycube-ui/button.d.ts +2 -2
- package/dist/types/components/connectycube-ui/chat-bubble.d.ts +3 -3
- package/dist/types/components/connectycube-ui/chat-input.d.ts +3 -3
- package/dist/types/components/connectycube-ui/chat-list.d.ts +3 -3
- package/dist/types/components/connectycube-ui/checkbox.d.ts +1 -1
- package/dist/types/components/connectycube-ui/dialog-item.d.ts +6 -6
- package/dist/types/components/connectycube-ui/dialogs-list.d.ts +1 -1
- package/dist/types/components/connectycube-ui/file-picker.d.ts +2 -2
- package/dist/types/components/connectycube-ui/label.d.ts +1 -1
- package/dist/types/components/connectycube-ui/link-preview.d.ts +1 -1
- package/dist/types/components/connectycube-ui/linkify-text.d.ts +1 -1
- package/dist/types/components/connectycube-ui/search.d.ts +2 -2
- package/dist/types/components/connectycube-ui/spinner.d.ts +1 -1
- package/dist/types/components/connectycube-ui/status-call.d.ts +1 -1
- package/dist/types/components/connectycube-ui/status-sent.d.ts +1 -1
- package/dist/types/components/connectycube-ui/stream-view.d.ts +1 -1
- package/dist/types/components/connectycube-ui/utils.d.ts +1 -1
- package/dist/types/components/home/home.d.ts +1 -1
- package/dist/types/components/home/main/ai-dropdown-menu/ai-dropdown-change-tone.d.ts +2 -2
- package/dist/types/components/home/main/ai-dropdown-menu/ai-dropdown-get-summary.d.ts +2 -2
- package/dist/types/components/home/main/chat-ai-button.d.ts +1 -1
- package/dist/types/components/home/main/chat-footer.d.ts +1 -1
- package/dist/types/components/home/main/chat-header/chat-header-avatar.d.ts +1 -1
- package/dist/types/components/home/main/chat-header/chat-header-back-button.d.ts +1 -1
- package/dist/types/components/home/main/chat-header/chat-header-buttons.d.ts +1 -1
- package/dist/types/components/home/main/chat-header/chat-header-titles.d.ts +1 -1
- package/dist/types/components/home/main/chat-header/chat-header.d.ts +1 -1
- package/dist/types/components/home/main/chat-header.d.ts +1 -1
- package/dist/types/components/home/main/chat-info-members.d.ts +1 -1
- package/dist/types/components/home/main/chat-info-user.d.ts +1 -1
- package/dist/types/components/home/main/chat-message.d.ts +1 -1
- package/dist/types/components/home/main/chat-messages-list.d.ts +1 -1
- package/dist/types/components/home/main/group-member.d.ts +1 -1
- package/dist/types/components/home/main/main.d.ts +1 -1
- package/dist/types/components/home/main/my-profile/my-block-list-item.d.ts +1 -1
- package/dist/types/components/home/main/my-profile/my-block-list.d.ts +1 -1
- package/dist/types/components/home/main/my-profile/my-presence-select.d.ts +1 -1
- package/dist/types/components/home/main/my-profile/my-profile.d.ts +1 -1
- package/dist/types/components/home/main/profile-info.d.ts +1 -1
- package/dist/types/components/home/main/quick-actions.d.ts +1 -1
- package/dist/types/components/home/main/report-user-dialog.d.ts +1 -1
- package/dist/types/components/home/main/single-view-form.d.ts +1 -1
- package/dist/types/components/home/sidebar/chat-item.d.ts +1 -1
- package/dist/types/components/home/sidebar/chats-list.d.ts +1 -1
- package/dist/types/components/home/sidebar/new-chat/create-group-chat/create-group-chat.d.ts +1 -1
- package/dist/types/components/home/sidebar/new-chat/create-group-chat/participant.d.ts +1 -1
- package/dist/types/components/home/sidebar/new-chat/new-chat-dialog.d.ts +1 -1
- package/dist/types/components/home/sidebar/new-chat/searched-user.d.ts +1 -1
- package/dist/types/components/home/sidebar/sidebar.d.ts +1 -1
- package/dist/types/components/home/sidebar/tabs/chats-tab.d.ts +1 -1
- package/dist/types/components/home/sidebar/tabs/users-tab.d.ts +1 -1
- package/dist/types/components/home/sidebar/user-item.d.ts +2 -2
- package/dist/types/components/home/sidebar/users-list.d.ts +1 -1
- package/dist/types/components/shared/alert-busy.d.ts +1 -1
- package/dist/types/components/widget/widget-app.d.ts +1 -1
- package/dist/types/components/widget/widget-messages-badge.d.ts +1 -1
- package/dist/types/components/widget/widget-online-badge.d.ts +1 -1
- package/dist/types/helpers/i18n.d.ts +1 -1
- package/dist/types/hooks/store/useActiveTabsStore.d.ts +1 -1
- package/dist/types/hooks/store/useAlertBusyStore.d.ts +1 -1
- package/dist/types/hooks/store/useAppAIStore.d.ts +1 -1
- package/dist/types/hooks/store/useAppDefaultChatStore.d.ts +1 -1
- package/dist/types/hooks/store/useAppInterfaceStore.d.ts +1 -1
- package/dist/types/hooks/store/useAppNotificationStore.d.ts +1 -1
- package/dist/types/hooks/store/useAppQuickActionsStore.d.ts +1 -1
- package/dist/types/hooks/store/useAppSettingsStore.d.ts +1 -1
- package/dist/types/hooks/store/useDraftMessagesStore.d.ts +1 -1
- package/dist/types/hooks/store/useLinkPreviewStore.d.ts +1 -1
- package/dist/types/hooks/store/useOnlineUsersCountStore.d.ts +1 -1
- package/dist/types/hooks/store/useProfileStore.d.ts +1 -1
- package/dist/types/hooks/store/useShadowRootStore.d.ts +1 -1
- package/dist/types/hooks/store/useUnreadCountStore.d.ts +1 -1
- package/dist/types/hooks/store/useUserSettingsStore.d.ts +2 -2
- package/dist/types/hooks/useAppAuthorization.d.ts +1 -1
- package/dist/types/lib/utils.d.ts +1 -1
- package/package.json +6 -5
- package/dist/types/locales/el/translation.json.d.ts +0 -138
- package/dist/types/locales/en/translation.json.d.ts +0 -138
- package/dist/types/locales/es/translation.json.d.ts +0 -138
- package/dist/types/locales/ua/translation.json.d.ts +0 -138
package/dist/types/App.d.ts
CHANGED
|
@@ -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
|
|
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,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(
|
|
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(
|
|
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,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,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
|
|
2
|
-
import { AIDropdownMenuSubKeys } from '
|
|
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
|
|
2
|
-
import { AIDropdownMenuSubKeys } from '
|
|
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;
|
|
@@ -10,6 +10,6 @@ export interface ActiveTabsStoreState {
|
|
|
10
10
|
export declare const activeTabsInitialState: {
|
|
11
11
|
activeTab: AppTab;
|
|
12
12
|
};
|
|
13
|
-
declare const useActiveTabsStore: import(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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;
|