@connectycube/chat-widget 0.22.0 → 0.23.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/CHANGELOG.md +19 -4
- package/README.md +8 -0
- package/dist/index.es.js +16926 -18509
- package/dist/index.umd.js +73 -50
- package/dist/react19/connectycube-chat-widget-sw.js +19 -0
- package/dist/react19/index.es.js +18097 -0
- package/dist/react19/logo.png +0 -0
- package/dist/react19/types/components/app-login.d.ts +8 -0
- package/dist/react19/types/components/app-shadow-root.d.ts +6 -0
- package/dist/react19/types/components/home/sidebar/tabs/users-tab.d.ts +2 -0
- package/dist/{components → react19/types/components}/shadcn-ui/alert-dialog.d.ts +5 -5
- package/dist/{components → react19/types/components}/shadcn-ui/avatar.d.ts +2 -2
- package/dist/{components → react19/types/components}/shadcn-ui/badge.d.ts +2 -2
- package/dist/{components → react19/types/components}/shadcn-ui/button.d.ts +4 -4
- package/dist/{components → react19/types/components}/shadcn-ui/dialog.d.ts +4 -4
- package/dist/{components → react19/types/components}/shadcn-ui/dropdown-menu.d.ts +4 -4
- package/dist/react19/types/components/shadcn-ui/input.d.ts +3 -0
- package/dist/{components → react19/types/components}/shadcn-ui/label.d.ts +2 -2
- package/dist/{components → react19/types/components}/shadcn-ui/switch.d.ts +2 -2
- package/dist/{components → react19/types/components}/shadcn-ui/tabs.d.ts +2 -2
- package/dist/{components → react19/types/components}/shared/avatar.d.ts +1 -1
- package/dist/{components → react19/types/components}/shared/widget-button.d.ts +1 -1
- package/dist/react19/types/components/shared/widget-messages-badge.d.ts +7 -0
- package/dist/react19/types/components/shared/widget-online-badge.d.ts +7 -0
- package/dist/{hooks → react19/types/hooks}/index.d.ts +1 -1
- package/dist/{hooks → react19/types/hooks}/store/useOnlineUsersCountStore.d.ts +3 -0
- package/dist/react19/types/hooks/store/useShadowRootStore.d.ts +7 -0
- package/dist/types/App.d.ts +50 -0
- package/dist/types/components/app-login.d.ts +8 -0
- package/dist/types/components/app-shadow-root.d.ts +6 -0
- package/dist/types/components/home/home.d.ts +2 -0
- package/dist/types/components/home/main/chat-header.d.ts +3 -0
- package/dist/types/components/home/main/chat-info-members.d.ts +3 -0
- package/dist/types/components/home/main/chat-info-user.d.ts +7 -0
- package/dist/types/components/home/main/chat-input.d.ts +8 -0
- package/dist/types/components/home/main/group-member.d.ts +8 -0
- package/dist/types/components/home/main/main.d.ts +2 -0
- package/dist/types/components/home/main/message-attachment.d.ts +8 -0
- package/dist/types/components/home/main/message-body.d.ts +6 -0
- package/dist/types/components/home/main/message-url-preview.d.ts +6 -0
- package/dist/types/components/home/main/message.d.ts +11 -0
- package/dist/types/components/home/main/my-profile/my-block-list-item.d.ts +7 -0
- package/dist/types/components/home/main/my-profile/my-block-list.d.ts +3 -0
- package/dist/types/components/home/main/my-profile/my-profile-settings.d.ts +2 -0
- package/dist/types/components/home/main/my-profile/my-profile.d.ts +3 -0
- package/dist/types/components/home/main/profile-info.d.ts +6 -0
- package/dist/types/components/home/main/quick-actions.d.ts +5 -0
- package/dist/types/components/home/main/report-user-dialog.d.ts +6 -0
- package/dist/types/components/home/sidebar/chat-item.d.ts +7 -0
- package/dist/types/components/home/sidebar/chats-list.d.ts +6 -0
- package/dist/types/components/home/sidebar/new-chat/create-group-chat/create-group-chat.d.ts +8 -0
- package/dist/types/components/home/sidebar/new-chat/create-group-chat/participant.d.ts +7 -0
- package/dist/types/components/home/sidebar/new-chat/new-chat-dialog.d.ts +9 -0
- package/dist/types/components/home/sidebar/new-chat/searched-user.d.ts +13 -0
- package/dist/types/components/home/sidebar/sidebar.d.ts +2 -0
- package/dist/types/components/home/sidebar/tabs/chats-tab.d.ts +2 -0
- package/dist/types/components/home/sidebar/tabs/users-tab.d.ts +2 -0
- package/dist/types/components/home/sidebar/user-item.d.ts +7 -0
- package/dist/types/components/home/sidebar/users-list.d.ts +6 -0
- package/dist/types/components/shadcn-ui/alert-dialog.d.ts +14 -0
- package/dist/types/components/shadcn-ui/avatar.d.ts +6 -0
- package/dist/types/components/shadcn-ui/badge.d.ts +9 -0
- package/dist/types/components/shadcn-ui/button.d.ts +10 -0
- package/dist/types/components/shadcn-ui/dialog.d.ts +13 -0
- package/dist/types/components/shadcn-ui/dropdown-menu.d.ts +25 -0
- package/dist/types/components/shadcn-ui/input.d.ts +3 -0
- package/dist/types/components/shadcn-ui/label.d.ts +4 -0
- package/dist/types/components/shadcn-ui/sonner.d.ts +3 -0
- package/dist/types/components/shadcn-ui/switch.d.ts +4 -0
- package/dist/types/components/shadcn-ui/tabs.d.ts +7 -0
- package/dist/types/components/shared/alert-busy.d.ts +2 -0
- package/dist/types/components/shared/avatar.d.ts +13 -0
- package/dist/types/components/shared/confirmation-alert.d.ts +8 -0
- package/dist/types/components/shared/empty-content-placeholder.d.ts +7 -0
- package/dist/types/components/shared/loader.d.ts +5 -0
- package/dist/types/components/shared/widget-button.d.ts +15 -0
- package/dist/types/components/shared/widget-messages-badge.d.ts +7 -0
- package/dist/types/components/shared/widget-online-badge.d.ts +7 -0
- package/dist/types/helpers/connectycube.d.ts +33 -0
- package/dist/types/helpers/debounce.d.ts +3 -0
- package/dist/types/helpers/i18n.d.ts +2 -0
- package/dist/types/helpers/notifications.d.ts +11 -0
- package/dist/types/helpers/throttle.d.ts +3 -0
- package/dist/types/hooks/index.d.ts +21 -0
- package/dist/types/hooks/store/useActiveTabsStore.d.ts +15 -0
- package/dist/types/hooks/store/useAlertBusyStore.d.ts +11 -0
- package/dist/types/hooks/store/useAppDefaultChatStore.d.ts +21 -0
- package/dist/types/hooks/store/useAppInterfaceStore.d.ts +27 -0
- package/dist/types/hooks/store/useAppNotificationStore.d.ts +34 -0
- package/dist/types/hooks/store/useAppQuickActionsStore.d.ts +17 -0
- package/dist/types/hooks/store/useAppSettingsStore.d.ts +31 -0
- package/dist/types/hooks/store/useDraftMessagesStore.d.ts +14 -0
- package/dist/types/hooks/store/useLinkPreviewStore.d.ts +17 -0
- package/dist/types/hooks/store/useOnlineUsersCountStore.d.ts +14 -0
- package/dist/types/hooks/store/useProfileStore.d.ts +9 -0
- package/dist/types/hooks/store/useShadowRootStore.d.ts +7 -0
- package/dist/types/hooks/store/useUnreadCountStore.d.ts +8 -0
- package/dist/types/hooks/store/useUserSettingsStore.d.ts +14 -0
- package/dist/types/hooks/useAppAuthorization.d.ts +14 -0
- package/dist/types/hooks/useLastActivity.d.ts +2 -0
- package/dist/types/hooks/useNotification.d.ts +8 -0
- package/dist/types/hooks/usePageFocus.d.ts +6 -0
- package/dist/types/hooks/useResizeScreenWidth.d.ts +10 -0
- package/dist/types/hooks/useTypingStatusText.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/utils.d.ts +6 -0
- package/dist/types/locales/el/translation.json.d.ts +65 -0
- package/dist/types/locales/en/translation.json.d.ts +65 -0
- package/dist/types/locales/ua/translation.json.d.ts +65 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/tests/connectycube.test.d.ts +1 -0
- package/package.json +54 -45
- package/dist/components/home/sidebar/tabs/users-tab.d.ts +0 -3
- package/dist/components/login.d.ts +0 -8
- package/dist/components/shadcn-ui/input.d.ts +0 -3
- package/dist/favicon.ico +0 -0
- package/dist/hooks/useValue.d.ts +0 -4
- /package/dist/{App.d.ts → react19/types/App.d.ts} +0 -0
- /package/dist/{components → react19/types/components}/home/home.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/chat-header.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/chat-info-members.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/chat-info-user.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/chat-input.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/group-member.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/main.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/message-attachment.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/message-body.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/message-url-preview.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/message.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/my-profile/my-block-list-item.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/my-profile/my-block-list.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/my-profile/my-profile-settings.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/my-profile/my-profile.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/profile-info.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/quick-actions.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/main/report-user-dialog.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/chat-item.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/chats-list.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/new-chat/create-group-chat/create-group-chat.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/new-chat/create-group-chat/participant.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/new-chat/new-chat-dialog.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/new-chat/searched-user.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/sidebar.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/tabs/chats-tab.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/user-item.d.ts +0 -0
- /package/dist/{components → react19/types/components}/home/sidebar/users-list.d.ts +0 -0
- /package/dist/{components → react19/types/components}/shadcn-ui/sonner.d.ts +0 -0
- /package/dist/{components → react19/types/components}/shared/alert-busy.d.ts +0 -0
- /package/dist/{components → react19/types/components}/shared/confirmation-alert.d.ts +0 -0
- /package/dist/{components → react19/types/components}/shared/empty-content-placeholder.d.ts +0 -0
- /package/dist/{components → react19/types/components}/shared/loader.d.ts +0 -0
- /package/dist/{helpers → react19/types/helpers}/connectycube.d.ts +0 -0
- /package/dist/{helpers → react19/types/helpers}/debounce.d.ts +0 -0
- /package/dist/{helpers → react19/types/helpers}/i18n.d.ts +0 -0
- /package/dist/{helpers → react19/types/helpers}/notifications.d.ts +0 -0
- /package/dist/{helpers → react19/types/helpers}/throttle.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useActiveTabsStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useAlertBusyStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useAppDefaultChatStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useAppInterfaceStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useAppNotificationStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useAppQuickActionsStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useAppSettingsStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useDraftMessagesStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useLinkPreviewStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useProfileStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useUnreadCountStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/store/useUserSettingsStore.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/useAppAuthorization.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/useLastActivity.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/useNotification.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/usePageFocus.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/useResizeScreenWidth.d.ts +0 -0
- /package/dist/{hooks → react19/types/hooks}/useTypingStatusText.d.ts +0 -0
- /package/dist/{index.d.ts → react19/types/index.d.ts} +0 -0
- /package/dist/{lib → react19/types/lib}/utils.d.ts +0 -0
- /package/dist/{locales → react19/types/locales}/el/translation.json.d.ts +0 -0
- /package/dist/{locales → react19/types/locales}/en/translation.json.d.ts +0 -0
- /package/dist/{locales → react19/types/locales}/ua/translation.json.d.ts +0 -0
- /package/dist/{main.d.ts → react19/types/main.d.ts} +0 -0
- /package/dist/{tests → react19/types/tests}/connectycube.test.d.ts +0 -0
|
Binary file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as AlertDialogPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
3
|
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<
|
|
9
|
-
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<
|
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as AvatarPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
3
|
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Badge, badgeVariants };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "default" | "
|
|
4
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export { Button, buttonVariants };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as DialogPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
3
|
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function DialogContent({ className, children, ...props }: React.ComponentProps<typeof DialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<
|
|
10
|
-
declare function DialogFooter({ className, ...props }: React.ComponentProps<
|
|
9
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as DropdownMenuPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,7 @@ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.
|
|
|
7
7
|
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
9
|
inset?: boolean;
|
|
10
|
-
variant?:
|
|
10
|
+
variant?: 'default' | 'destructive';
|
|
11
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,7 +16,7 @@ declare function DropdownMenuLabel({ className, inset, ...props }: React.Compone
|
|
|
16
16
|
inset?: boolean;
|
|
17
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<
|
|
19
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
22
22
|
inset?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as LabelPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
3
|
declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Label };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as SwitchPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
3
|
declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Switch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as TabsPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
3
|
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,7 @@ type WidgetButtonProps = {
|
|
|
7
7
|
badgeStyle?: React.CSSProperties;
|
|
8
8
|
badgeClassName?: string;
|
|
9
9
|
enableOnlineUsersBadge?: boolean;
|
|
10
|
-
|
|
10
|
+
onlineBadgeCount?: number;
|
|
11
11
|
onlineBadgeStyle?: React.CSSProperties;
|
|
12
12
|
onlineBadgeClassName?: string;
|
|
13
13
|
};
|
|
@@ -10,6 +10,7 @@ export { default as useDraftMessagesStore } from './store/useDraftMessagesStore'
|
|
|
10
10
|
export { default as useOnlineUsersCountStore } from './store/useOnlineUsersCountStore';
|
|
11
11
|
export { default as useLinkPreviewStore } from './store/useLinkPreviewStore';
|
|
12
12
|
export { default as useProfileStore } from './store/useProfileStore';
|
|
13
|
+
export { default as useShadowRootStore } from './store/useShadowRootStore';
|
|
13
14
|
export { default as useUnreadCountStore } from './store/useUnreadCountStore';
|
|
14
15
|
export { default as useUserSettingsStore } from './store/useUserSettingsStore';
|
|
15
16
|
export { default as useAppAuthorization } from './useAppAuthorization';
|
|
@@ -18,4 +19,3 @@ export { default as useNotification } from './useNotification';
|
|
|
18
19
|
export { default as usePageFocus } from './usePageFocus';
|
|
19
20
|
export { default as useResizeScreenWidth } from './useResizeScreenWidth';
|
|
20
21
|
export { default as useTypingStatusText } from './useTypingStatusText';
|
|
21
|
-
export { default as useValue } from './useValue';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
interface OnlineUsersCountState {
|
|
2
2
|
requestOnlineUsersInterval: number;
|
|
3
|
+
enableOnlineUsersBadge: boolean;
|
|
3
4
|
onlineUsersCount: number;
|
|
4
5
|
setRequestOnlineUsersInterval: (seconds: number) => void;
|
|
6
|
+
setEnableOnlineUsersBadge: (enable: boolean) => void;
|
|
5
7
|
setOnlineUsersCount: (count: number) => void;
|
|
6
8
|
resetRequestOnlineUsersInterval: () => void;
|
|
9
|
+
resetEnableOnlineUsersBadge: () => void;
|
|
7
10
|
resetOnlineUsersCount: () => void;
|
|
8
11
|
}
|
|
9
12
|
declare const useOnlineUsersCountStore: import('zustand').UseBoundStore<import('zustand').StoreApi<OnlineUsersCountState>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface useShadowRootStoreState {
|
|
2
|
+
shadowRoot: ShadowRoot | Document;
|
|
3
|
+
shadowPortal: DocumentFragment | Element | null | undefined;
|
|
4
|
+
setShadowRoot: (shadowRoot?: ShadowRoot | Document) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const useShadowRootStore: import('zustand').UseBoundStore<import('zustand').StoreApi<useShadowRootStoreState>>;
|
|
7
|
+
export default useShadowRootStore;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Config } from 'connectycube/types';
|
|
2
|
+
import { DefaultChat } from './hooks/store/useAppDefaultChatStore';
|
|
3
|
+
import { QuickActions } from './hooks/store/useAppQuickActionsStore';
|
|
4
|
+
export type AppProps = {
|
|
5
|
+
appId: Config.Credentials['appId'];
|
|
6
|
+
authKey: Config.Credentials['authKey'];
|
|
7
|
+
config?: Config.Options;
|
|
8
|
+
userId?: string;
|
|
9
|
+
userName?: string;
|
|
10
|
+
userAvatar?: string;
|
|
11
|
+
userProfileLink?: string;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
splitView?: boolean;
|
|
14
|
+
showOnlineUsersTab?: boolean;
|
|
15
|
+
hideNewChatButton?: boolean;
|
|
16
|
+
hideNewUserChatOption?: boolean;
|
|
17
|
+
hideNewGroupChatOption?: boolean;
|
|
18
|
+
muted?: boolean;
|
|
19
|
+
showNotifications?: boolean;
|
|
20
|
+
playSound?: boolean;
|
|
21
|
+
webPushNotifications?: boolean;
|
|
22
|
+
webPushVapidPublicKey?: string;
|
|
23
|
+
serviceWorkerPath?: string | URL;
|
|
24
|
+
attachmentsAccept?: string;
|
|
25
|
+
enableLastSeen?: boolean;
|
|
26
|
+
enableContentReporting?: boolean;
|
|
27
|
+
enableBlockList?: boolean;
|
|
28
|
+
enableOnlineUsersBadge?: boolean;
|
|
29
|
+
getOnlineUsersInterval?: number;
|
|
30
|
+
enableUrlPreview?: boolean;
|
|
31
|
+
limitUrlsPreviews?: number;
|
|
32
|
+
quickActions?: QuickActions;
|
|
33
|
+
defaultChat?: DefaultChat;
|
|
34
|
+
hideWidgetButton?: boolean;
|
|
35
|
+
translation?: 'en' | 'el' | 'ua';
|
|
36
|
+
buttonTitle?: string;
|
|
37
|
+
portalStyle?: React.CSSProperties;
|
|
38
|
+
buttonStyle?: React.CSSProperties;
|
|
39
|
+
badgeStyle?: React.CSSProperties;
|
|
40
|
+
onlineBadgeStyle?: React.CSSProperties;
|
|
41
|
+
portalClassName?: string;
|
|
42
|
+
buttonClassName?: string;
|
|
43
|
+
badgeClassName?: string;
|
|
44
|
+
onlineBadgeClassName?: string;
|
|
45
|
+
onOpenChange?: (open: boolean) => void;
|
|
46
|
+
onUnreadCountChange?: (count: number) => void;
|
|
47
|
+
onOnlineUsersCountChange?: (count: number) => void;
|
|
48
|
+
};
|
|
49
|
+
declare const App: React.FC<AppProps>;
|
|
50
|
+
export default App;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Dialogs } from 'connectycube/types';
|
|
3
|
+
export interface ChatInputProps {
|
|
4
|
+
onSendMessage: (message: string, dialog?: Dialogs.Dialog) => void;
|
|
5
|
+
onSendMessageWithAttachment: (files: File[]) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.NamedExoticComponent<ChatInputProps>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Messages } from 'connectycube/types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface MessageAttachmentProps {
|
|
4
|
+
attachment: Messages.Attachment;
|
|
5
|
+
uploading: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const MessageAttachment: React.FC<MessageAttachmentProps>;
|
|
8
|
+
export default MessageAttachment;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Messages } from 'connectycube/types';
|
|
3
|
+
export interface MessageProps {
|
|
4
|
+
message: Messages.Message;
|
|
5
|
+
isGroupChat: boolean;
|
|
6
|
+
dialogName: string;
|
|
7
|
+
senderName: string;
|
|
8
|
+
senderAvatar?: string | null;
|
|
9
|
+
}
|
|
10
|
+
declare const Message: React.FC<MessageProps>;
|
|
11
|
+
export default Message;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Users } from 'connectycube/types';
|
|
3
|
+
export interface CreateGroupChatProps {
|
|
4
|
+
users: Users.User[];
|
|
5
|
+
onCreateChat: (name: string) => Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.NamedExoticComponent<CreateGroupChatProps>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type ChatType = 'private' | 'group';
|
|
3
|
+
export interface NewChatDialogProps {
|
|
4
|
+
chatType: ChatType;
|
|
5
|
+
addUsersMode?: boolean;
|
|
6
|
+
onFinish: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.NamedExoticComponent<NewChatDialogProps>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChatType } from './new-chat-dialog';
|
|
3
|
+
export interface SearchedUserProps {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
chatType: ChatType;
|
|
8
|
+
onStartChat: (userId: number) => void;
|
|
9
|
+
isSelected: boolean;
|
|
10
|
+
onSelectUser: (userId: number, isSelected: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.NamedExoticComponent<SearchedUserProps>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DialogContent({ className, children, ...props }: React.ComponentProps<typeof DialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|