@connectycube/chat-widget 0.39.2 → 0.39.5
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 +5657 -5525
- package/dist/index.umd.js +94 -66
- package/dist/types/App.d.ts +4 -2
- 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 +29 -0
- package/dist/types/components/connectycube-ui/attachment.d.ts +43 -0
- package/dist/types/components/connectycube-ui/avatar.d.ts +16 -0
- package/dist/types/components/connectycube-ui/badge.d.ts +10 -0
- package/dist/types/components/connectycube-ui/button.d.ts +11 -0
- package/dist/types/components/connectycube-ui/chat-bubble.d.ts +31 -0
- package/dist/types/components/connectycube-ui/chat-input.d.ts +26 -0
- package/dist/types/components/connectycube-ui/chat-list.d.ts +30 -0
- package/dist/types/components/connectycube-ui/checkbox.d.ts +10 -0
- package/dist/types/components/connectycube-ui/dialog-item.d.ts +45 -0
- package/dist/types/components/connectycube-ui/dialogs-list.d.ts +13 -0
- package/dist/types/components/connectycube-ui/dismiss-layer.d.ts +10 -0
- package/dist/types/components/connectycube-ui/file-picker.d.ts +21 -0
- package/dist/types/components/connectycube-ui/formatted-date.d.ts +8 -0
- package/dist/types/components/connectycube-ui/input.d.ts +4 -0
- package/dist/types/components/connectycube-ui/label.d.ts +4 -0
- package/dist/types/components/connectycube-ui/link-preview.d.ts +20 -0
- package/dist/types/components/connectycube-ui/linkify-text.d.ts +13 -0
- package/dist/types/components/connectycube-ui/placeholder-text.d.ts +8 -0
- package/dist/types/components/connectycube-ui/presence.d.ts +21 -0
- package/dist/types/components/connectycube-ui/quick-actions.d.ts +13 -0
- package/dist/types/components/connectycube-ui/search.d.ts +14 -0
- package/dist/types/components/connectycube-ui/spinner.d.ts +9 -0
- package/dist/types/components/connectycube-ui/status-call.d.ts +8 -0
- package/dist/types/components/connectycube-ui/status-indicator.d.ts +19 -0
- package/dist/types/components/connectycube-ui/status-sent.d.ts +7 -0
- package/dist/types/components/connectycube-ui/stream-view.d.ts +19 -36
- package/dist/types/components/connectycube-ui/switch.d.ts +5 -0
- package/dist/types/components/connectycube-ui/utils.d.ts +2 -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 +4 -4
- package/dist/types/components/home/main/ai-dropdown-menu/ai-dropdown-get-summary.d.ts +4 -4
- package/dist/types/components/home/main/chat-ai-button.d.ts +1 -1
- package/dist/types/components/home/main/chat-footer.d.ts +12 -0
- 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 +10 -0
- package/dist/types/components/home/main/chat-messages-list.d.ts +6 -2
- package/dist/types/components/home/main/group-member.d.ts +1 -1
- package/dist/types/components/home/main/link-previews-list.d.ts +7 -0
- 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 +3 -0
- 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 +2 -2
- package/dist/types/components/home/sidebar/chats-list.d.ts +3 -3
- 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 +3 -3
- 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 +4 -6
- package/dist/types/components/widget/widget-button.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/connectycube.d.ts +18 -10
- package/dist/types/helpers/i18n.d.ts +2 -6
- package/dist/types/helpers/widget.d.ts +2 -1
- package/dist/types/hooks/index.d.ts +1 -0
- 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 +4 -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 +3 -7
- 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 +4 -4
- package/dist/types/hooks/useAppAuthorization.d.ts +2 -7
- package/dist/types/hooks/useAppPresets.d.ts +3 -2
- package/dist/types/hooks/useCallActions.d.ts +4 -0
- package/dist/types/lib/utils.d.ts +1 -1
- package/package.json +38 -34
- package/dist/types/components/calls/calls-buttons.d.ts +0 -3
- package/dist/types/components/home/main/chat-input-file.d.ts +0 -6
- package/dist/types/components/home/main/chat-input.d.ts +0 -9
- package/dist/types/components/home/main/message/call-message.d.ts +0 -13
- package/dist/types/components/home/main/message/message-attachment.d.ts +0 -9
- package/dist/types/components/home/main/message/message-body.d.ts +0 -7
- package/dist/types/components/home/main/message/message-status-mark.d.ts +0 -7
- package/dist/types/components/home/main/message/message-text-summary.d.ts +0 -9
- package/dist/types/components/home/main/message/message-url-preview.d.ts +0 -8
- package/dist/types/components/home/main/message/message.d.ts +0 -16
- package/dist/types/components/home/main/user-status/user-status-badge.d.ts +0 -8
- package/dist/types/components/home/main/user-status/user-status-select.d.ts +0 -3
- package/dist/types/components/home/main/user-status/user-status.d.ts +0 -7
- package/dist/types/components/shadcn-ui/avatar.d.ts +0 -6
- package/dist/types/components/shadcn-ui/badge.d.ts +0 -9
- package/dist/types/components/shadcn-ui/button.d.ts +0 -10
- package/dist/types/components/shadcn-ui/checkbox.d.ts +0 -4
- package/dist/types/components/shadcn-ui/class-names.d.ts +0 -50
- package/dist/types/components/shadcn-ui/input.d.ts +0 -3
- package/dist/types/components/shadcn-ui/label.d.ts +0 -4
- package/dist/types/components/shadcn-ui/skeleton.d.ts +0 -2
- package/dist/types/components/shadcn-ui/switch.d.ts +0 -4
- package/dist/types/components/shadcn-ui/tooltip.d.ts +0 -7
- package/dist/types/components/shared/avatar.d.ts +0 -15
- package/dist/types/components/shared/chat-status-mark.d.ts +0 -3
- package/dist/types/components/shared/confirmation-alert.d.ts +0 -8
- package/dist/types/components/shared/empty-content-placeholder.d.ts +0 -7
- package/dist/types/components/shared/loader.d.ts +0 -6
- package/dist/types/components/widget/widget-overlay.d.ts +0 -8
- package/dist/types/locales/el/translation.json.d.ts +0 -134
- package/dist/types/locales/en/translation.json.d.ts +0 -134
- package/dist/types/locales/es/translation.json.d.ts +0 -135
- package/dist/types/locales/ua/translation.json.d.ts +0 -134
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserPresence } from '@/helpers/connectycube';
|
|
2
2
|
type UserSettingsStateProps = {
|
|
3
|
-
userStatus:
|
|
3
|
+
userStatus: UserPresence;
|
|
4
4
|
isNotifications: boolean;
|
|
5
5
|
isNotificationSound: boolean;
|
|
6
6
|
isPushNotifications: boolean;
|
|
7
7
|
};
|
|
8
8
|
interface UserSettingsState extends UserSettingsStateProps {
|
|
9
|
-
setUserStatus: (status:
|
|
9
|
+
setUserStatus: (status: UserPresence, onlyLocal?: boolean) => Promise<void>;
|
|
10
10
|
setIsNotifications: (enabled: boolean, onlyLocal?: boolean) => Promise<void>;
|
|
11
11
|
setIsNotificationSound: (enabled: boolean, onlyLocal?: boolean) => Promise<void>;
|
|
12
12
|
setIsPushNotifications: (enabled: boolean, onlyLocal?: boolean) => Promise<void>;
|
|
13
13
|
}
|
|
14
|
-
declare const useUserSettingsStore: import(
|
|
14
|
+
declare const useUserSettingsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<UserSettingsState>>;
|
|
15
15
|
export declare const managePushNotificationsSubscription: (enable: boolean) => Promise<boolean>;
|
|
16
16
|
export declare const restoreUserSettingsStore: () => Promise<void>;
|
|
17
17
|
export default useUserSettingsStore;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { Config } from '@connectycube/react';
|
|
2
|
-
type
|
|
3
|
-
id?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
avatar?: string;
|
|
6
|
-
userProfileLink?: string;
|
|
7
|
-
};
|
|
2
|
+
import { type UserData } from '@/helpers/connectycube';
|
|
8
3
|
type AppAuthorizationProps = {
|
|
9
4
|
creds: Config.Credentials;
|
|
10
5
|
config?: Config.Options;
|
|
11
|
-
user?:
|
|
6
|
+
user?: UserData;
|
|
12
7
|
enableUserLogin: boolean;
|
|
13
8
|
};
|
|
14
9
|
declare const useAppAuthorization: ({ creds, config, user, enableUserLogin }: AppAuthorizationProps) => void;
|
|
@@ -6,6 +6,7 @@ export type AppPresets = {
|
|
|
6
6
|
splitView?: boolean;
|
|
7
7
|
singleView?: boolean;
|
|
8
8
|
showChatStatus?: boolean;
|
|
9
|
+
showChatActionsAsMenu?: boolean;
|
|
9
10
|
showOnlineUsersTab?: boolean;
|
|
10
11
|
hideNewChatButton?: boolean;
|
|
11
12
|
hideNewUserChatOption?: boolean;
|
|
@@ -17,7 +18,7 @@ export type AppPresets = {
|
|
|
17
18
|
webPushNotifications?: boolean;
|
|
18
19
|
webPushVapidPublicKey?: string;
|
|
19
20
|
serviceWorkerPath?: string | URL;
|
|
20
|
-
attachmentsAccept?: string
|
|
21
|
+
attachmentsAccept?: string;
|
|
21
22
|
enableUserLogin?: boolean;
|
|
22
23
|
enableCalls?: boolean;
|
|
23
24
|
enableUserStatuses?: boolean;
|
|
@@ -41,5 +42,5 @@ export type AppPresets = {
|
|
|
41
42
|
onOnlineUsersCountChange?: (count: number) => void;
|
|
42
43
|
onOpenChange?: (open: boolean) => void;
|
|
43
44
|
};
|
|
44
|
-
declare const useAppPresets: ({ open, embedView, splitView, singleView, showChatStatus, showOnlineUsersTab, hideNewChatButton, hideNewUserChatOption, hideNewGroupChatOption, imgLogoSource, muted, showNotifications, playSound, webPushNotifications, serviceWorkerPath, webPushVapidPublicKey, attachmentsAccept, enableUserLogin, enableCalls, enableUserStatuses, enableLastSeen, enableContentReporting, enableBlockList, enableUrlPreview, limitUrlsPreviews, termsAndConditions, quickActions, defaultChat, singleViewChat, enableOnlineUsersBadge, getOnlineUsersInterval, ai, onUnreadCountChange, onOnlineUsersCountChange, onOpenChange, }: AppPresets) => void;
|
|
45
|
+
declare const useAppPresets: ({ open, embedView, splitView, singleView, showChatStatus, showChatActionsAsMenu, showOnlineUsersTab, hideNewChatButton, hideNewUserChatOption, hideNewGroupChatOption, imgLogoSource, muted, showNotifications, playSound, webPushNotifications, serviceWorkerPath, webPushVapidPublicKey, attachmentsAccept, enableUserLogin, enableCalls, enableUserStatuses, enableLastSeen, enableContentReporting, enableBlockList, enableUrlPreview, limitUrlsPreviews, termsAndConditions, quickActions, defaultChat, singleViewChat, enableOnlineUsersBadge, getOnlineUsersInterval, ai, onUnreadCountChange, onOnlineUsersCountChange, onOpenChange, }: AppPresets) => void;
|
|
45
46
|
export default useAppPresets;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dialogs } from '@connectycube/react';
|
|
2
|
-
import { ClassValue } from 'clsx';
|
|
2
|
+
import { type ClassValue } from 'clsx';
|
|
3
3
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
4
4
|
export declare function createTempChat(id: string, name: string, type: 3 | 2, occupantsIds: number[], currentUserId: number, photo?: string, extensions?: {
|
|
5
5
|
[key: string]: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectycube/chat-widget",
|
|
3
3
|
"description": "A customizable React chat widget built on the ConnectyCube platform, enabling real-time messaging, calls, and user engagement in any web app.",
|
|
4
|
-
"version": "0.39.
|
|
4
|
+
"version": "0.39.5",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"homepage": "https://github.com/ConnectyCube/connectycube-chat-widget/chat-widget#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -70,41 +70,45 @@
|
|
|
70
70
|
"tailwindcss:watch": "npx @tailwindcss/cli -i ./src/index.css -o ./src/widget.css --watch",
|
|
71
71
|
"tailwindcss:minify": "npx @tailwindcss/cli -i ./src/index.css -o ./src/widget.css --minify",
|
|
72
72
|
"dev": "npx npm-run-all --parallel vite:dev tailwindcss:watch",
|
|
73
|
-
"build": "npm run tailwindcss:minify && npm run vite:build:es && KEEP_DIST=1 npm run vite:build:umd",
|
|
73
|
+
"build": "npm run tailwindcss:minify && npm run vite:build:es && KEEP_DIST=1 npm run vite:build:umd && npm run types",
|
|
74
|
+
"types": "tsc -p tsconfig.declaration.json",
|
|
74
75
|
"lint": "eslint .",
|
|
75
76
|
"test": "vitest",
|
|
76
77
|
"test:ci": "vitest run",
|
|
77
78
|
"coverage": "vitest run --coverage"
|
|
78
79
|
},
|
|
79
80
|
"dependencies": {
|
|
80
|
-
"@ai-sdk/google": "^
|
|
81
|
-
"@connectycube/react": "^
|
|
81
|
+
"@ai-sdk/google": "^3.0.30",
|
|
82
|
+
"@connectycube/react": "^6.0.0",
|
|
82
83
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
83
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
84
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
84
85
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
85
86
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
86
87
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
87
|
-
"@radix-ui/react-label": "^2.1.
|
|
88
|
-
"@radix-ui/react-slot": "^1.2.
|
|
88
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
89
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
89
90
|
"@radix-ui/react-switch": "^1.2.6",
|
|
90
91
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
91
92
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
92
|
-
"ai": "^
|
|
93
|
+
"ai": "^6.0.94",
|
|
93
94
|
"class-variance-authority": "^0.7.1",
|
|
94
95
|
"clsx": "^2.1.1",
|
|
96
|
+
"date-fns": "^4.1.0",
|
|
95
97
|
"get-browser-fingerprint": "^4.1.1",
|
|
96
|
-
"i18next": "^25.
|
|
98
|
+
"i18next": "^25.8.11",
|
|
97
99
|
"linkify-react": "^4.3.2",
|
|
98
100
|
"linkifyjs": "^4.3.2",
|
|
99
|
-
"lucide-react": "^0.
|
|
101
|
+
"lucide-react": "^0.575.0",
|
|
100
102
|
"next-themes": "^0.4.6",
|
|
101
|
-
"react-hook-form": "^7.
|
|
102
|
-
"react-i18next": "^16.
|
|
103
|
+
"react-hook-form": "^7.71.1",
|
|
104
|
+
"react-i18next": "^16.5.4",
|
|
103
105
|
"react-icons": "^5.5.0",
|
|
104
|
-
"react-intersection-observer": "^10.0.
|
|
106
|
+
"react-intersection-observer": "^10.0.3",
|
|
107
|
+
"react-textarea-autosize": "^8.5.9",
|
|
105
108
|
"sonner": "^2.0.7",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
109
|
+
"tailwind-merge": "^3.5.0",
|
|
110
|
+
"virtua": "^0.48.6",
|
|
111
|
+
"zustand": "^5.0.11"
|
|
108
112
|
},
|
|
109
113
|
"peerDependencies": {
|
|
110
114
|
"react": ">=18",
|
|
@@ -112,35 +116,35 @@
|
|
|
112
116
|
},
|
|
113
117
|
"devDependencies": {
|
|
114
118
|
"@eslint/js": "^9.39.2",
|
|
115
|
-
"@tailwindcss/cli": "^4.
|
|
116
|
-
"@tailwindcss/postcss": "^4.
|
|
117
|
-
"@tailwindcss/vite": "^4.
|
|
118
|
-
"@types/node": "^25.0
|
|
119
|
-
"@types/react": "^19.2.
|
|
119
|
+
"@tailwindcss/cli": "^4.2.0",
|
|
120
|
+
"@tailwindcss/postcss": "^4.2.0",
|
|
121
|
+
"@tailwindcss/vite": "^4.2.0",
|
|
122
|
+
"@types/node": "^25.3.0",
|
|
123
|
+
"@types/react": "^19.2.14",
|
|
120
124
|
"@types/react-dom": "^19.2.3",
|
|
121
|
-
"@vitejs/plugin-react": "^5.1.
|
|
122
|
-
"@vitest/coverage-v8": "^4.0.
|
|
125
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
126
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
127
|
+
"baseline-browser-mapping": "^2.10.0",
|
|
123
128
|
"eslint": "^9.39.2",
|
|
124
129
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
125
|
-
"eslint-plugin-react-refresh": "^0.
|
|
126
|
-
"globals": "^17.
|
|
127
|
-
"jsdom": "^
|
|
128
|
-
"prettier": "3.8.
|
|
129
|
-
"tailwind-merge": "^3.4.0",
|
|
130
|
+
"eslint-plugin-react-refresh": "^0.5.0",
|
|
131
|
+
"globals": "^17.3.0",
|
|
132
|
+
"jsdom": "^28.1.0",
|
|
133
|
+
"prettier": "3.8.1",
|
|
130
134
|
"tailwind-scrollbar": "^4.0.2",
|
|
131
|
-
"tailwindcss": "^4.
|
|
135
|
+
"tailwindcss": "^4.2.0",
|
|
132
136
|
"tw-animate-css": "^1.4.0",
|
|
133
137
|
"typescript": "^5.9.3",
|
|
134
|
-
"typescript-eslint": "^8.
|
|
138
|
+
"typescript-eslint": "^8.56.0",
|
|
135
139
|
"vite": "^7.3.1",
|
|
136
140
|
"vite-plugin-dts": "^4.5.4",
|
|
137
|
-
"vitest": "^4.0.
|
|
141
|
+
"vitest": "^4.0.18"
|
|
138
142
|
},
|
|
139
143
|
"optionalDependencies": {
|
|
140
|
-
"@parcel/watcher-linux-x64-glibc": "^2.5.
|
|
141
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
142
|
-
"@tailwindcss/oxide-linux-x64-gnu": "^4.
|
|
143
|
-
"lightningcss-linux-x64-gnu": "^1.
|
|
144
|
+
"@parcel/watcher-linux-x64-glibc": "^2.5.6",
|
|
145
|
+
"@rollup/rollup-linux-x64-gnu": "4.57.1",
|
|
146
|
+
"@tailwindcss/oxide-linux-x64-gnu": "^4.2.0",
|
|
147
|
+
"lightningcss-linux-x64-gnu": "^1.31.1"
|
|
144
148
|
},
|
|
145
149
|
"engines": {
|
|
146
150
|
"node": ">=20.0.0",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Dialogs } from '@connectycube/react';
|
|
3
|
-
export interface ChatInputProps {
|
|
4
|
-
onSendMessage: (message: string, dialog?: Dialogs.Dialog) => void;
|
|
5
|
-
onSendAttachment: (files: File[]) => void;
|
|
6
|
-
setTextareaScrollOffset: React.Dispatch<React.SetStateAction<number>>;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: React.NamedExoticComponent<ChatInputProps>;
|
|
9
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CallType } from '@connectycube/react';
|
|
3
|
-
import { CallHistorySignal } from '../../../../hooks/useCallHistory';
|
|
4
|
-
export interface CallMessageProps {
|
|
5
|
-
signal: CallHistorySignal;
|
|
6
|
-
duration: number;
|
|
7
|
-
callType: CallType;
|
|
8
|
-
sentTime: string;
|
|
9
|
-
isCurrentUserSender: boolean;
|
|
10
|
-
isLastMessage: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const CallMessage: React.FC<CallMessageProps>;
|
|
13
|
-
export default CallMessage;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Messages } from '@connectycube/react';
|
|
3
|
-
export interface MessageAttachmentProps {
|
|
4
|
-
attachment: Messages.Attachment;
|
|
5
|
-
uploading: boolean;
|
|
6
|
-
stickToBottom?: (skipOnce?: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: React.NamedExoticComponent<MessageAttachmentProps>;
|
|
9
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type MessageTextSummaryProps = {
|
|
3
|
-
stickToBottom?: (skipOnce?: boolean) => void;
|
|
4
|
-
loading?: boolean;
|
|
5
|
-
message: string;
|
|
6
|
-
id: string;
|
|
7
|
-
};
|
|
8
|
-
declare const MessageTextSummary: React.FC<MessageTextSummaryProps>;
|
|
9
|
-
export default MessageTextSummary;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type MessageUrlPreviewProps = {
|
|
3
|
-
message: string;
|
|
4
|
-
id: string;
|
|
5
|
-
stickToBottom?: (skipOnce?: boolean) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const MessageUrlPreview: React.FC<MessageUrlPreviewProps>;
|
|
8
|
-
export default MessageUrlPreview;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Messages } from '@connectycube/react';
|
|
3
|
-
export interface MessageProps {
|
|
4
|
-
message: Messages.Message;
|
|
5
|
-
senderName?: string;
|
|
6
|
-
senderAvatar?: string | null;
|
|
7
|
-
isLastMessage: boolean;
|
|
8
|
-
isPlaceholder: boolean;
|
|
9
|
-
isSameUserSender: boolean;
|
|
10
|
-
isCurrentUserSender: boolean;
|
|
11
|
-
enableUrlPreview?: boolean;
|
|
12
|
-
sentTime: string;
|
|
13
|
-
stickToBottom?: (id: string, skipOnce?: boolean) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const Message: React.FC<MessageProps>;
|
|
16
|
-
export default Message;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { USER_STATUS } from '../../../../helpers/connectycube';
|
|
3
|
-
type UserStatusBadgeProps = {
|
|
4
|
-
status: USER_STATUS;
|
|
5
|
-
size?: number;
|
|
6
|
-
};
|
|
7
|
-
declare const UserStatusBadge: React.FC<UserStatusBadgeProps>;
|
|
8
|
-
export default UserStatusBadge;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 };
|
|
@@ -1,9 +0,0 @@
|
|
|
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 };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | 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 };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
|
-
export declare const shadcnClassNames: {
|
|
3
|
-
alertDialogOverlay: ClassValue;
|
|
4
|
-
alertDialogContent: ClassValue;
|
|
5
|
-
alertDialogHeader: ClassValue;
|
|
6
|
-
alertDialogFooter: ClassValue;
|
|
7
|
-
alertDialogTitle: ClassValue;
|
|
8
|
-
alertDialogDescription: ClassValue;
|
|
9
|
-
avatar: ClassValue;
|
|
10
|
-
avatarImage: ClassValue;
|
|
11
|
-
avatarFallback: ClassValue;
|
|
12
|
-
badge: ClassValue;
|
|
13
|
-
button: ClassValue;
|
|
14
|
-
card: ClassValue;
|
|
15
|
-
cardHeader: ClassValue;
|
|
16
|
-
cardTitle: ClassValue;
|
|
17
|
-
cardDescription: ClassValue;
|
|
18
|
-
cardAction: ClassValue;
|
|
19
|
-
cardContent: ClassValue;
|
|
20
|
-
cardFooter: ClassValue;
|
|
21
|
-
checkbox: ClassValue;
|
|
22
|
-
dialogOverlay: ClassValue;
|
|
23
|
-
dialogContent: ClassValue;
|
|
24
|
-
dialogHeader: ClassValue;
|
|
25
|
-
dialogFooter: ClassValue;
|
|
26
|
-
dialogTitle: ClassValue;
|
|
27
|
-
dialogDescription: ClassValue;
|
|
28
|
-
dropdownMenuContent: ClassValue;
|
|
29
|
-
dropdownMenuItem: ClassValue;
|
|
30
|
-
dropdownMenuCheckboxItem: ClassValue;
|
|
31
|
-
dropdownMenuRadioItem: ClassValue;
|
|
32
|
-
dropdownMenuLabel: ClassValue;
|
|
33
|
-
dropdownMenuSeparator: ClassValue;
|
|
34
|
-
dropdownMenuShortcut: ClassValue;
|
|
35
|
-
dropdownMenuSubTrigger: ClassValue;
|
|
36
|
-
dropdownMenuSubContent: ClassValue;
|
|
37
|
-
input: ClassValue[];
|
|
38
|
-
inputSelection: {
|
|
39
|
-
blue: string;
|
|
40
|
-
};
|
|
41
|
-
label: ClassValue;
|
|
42
|
-
skeleton: ClassValue;
|
|
43
|
-
switch: ClassValue;
|
|
44
|
-
switchThumb: ClassValue;
|
|
45
|
-
tabs: ClassValue;
|
|
46
|
-
tabsList: ClassValue;
|
|
47
|
-
tabsTrigger: ClassValue;
|
|
48
|
-
tabsContent: ClassValue;
|
|
49
|
-
tooltipContent: ClassValue;
|
|
50
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
-
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { USER_STATUS } from '../../helpers/connectycube';
|
|
3
|
-
interface BaseAvatarProps {
|
|
4
|
-
imageUIDOrUrl?: string | null;
|
|
5
|
-
name?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
interface AvatarWithStatusProps extends BaseAvatarProps {
|
|
9
|
-
isOnline?: boolean;
|
|
10
|
-
status?: USER_STATUS | null;
|
|
11
|
-
}
|
|
12
|
-
declare const Avatar: React.FC<BaseAvatarProps> & {
|
|
13
|
-
WithStatus: React.NamedExoticComponent<AvatarWithStatusProps>;
|
|
14
|
-
};
|
|
15
|
-
export default Avatar;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactElement } from 'react';
|
|
2
|
-
export interface ConfirmationAlertProps {
|
|
3
|
-
triggerChild: ReactElement;
|
|
4
|
-
title: string;
|
|
5
|
-
body: string;
|
|
6
|
-
onConfirm: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const ConfirmationAlert: React.FC<ConfirmationAlertProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type EmptyContentPlaceholderProps = {
|
|
3
|
-
title: string | string[];
|
|
4
|
-
className?: React.HTMLAttributes<HTMLDivElement>['className'];
|
|
5
|
-
};
|
|
6
|
-
declare const _default: React.NamedExoticComponent<EmptyContentPlaceholderProps>;
|
|
7
|
-
export default _default;
|