@connectycube/chat-widget 0.14.4 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +18 -118
  2. package/dist/AppContainer.d.ts +6 -2
  3. package/dist/components/home/main/chat-input.d.ts +3 -3
  4. package/dist/components/home/main/message-attachment.d.ts +8 -0
  5. package/dist/components/home/main/message-body.d.ts +5 -0
  6. package/dist/components/home/sidebar/chats-list.d.ts +2 -2
  7. package/dist/components/home/sidebar/sidebar.d.ts +1 -3
  8. package/dist/components/home/sidebar/tabs/users-tab.d.ts +1 -3
  9. package/dist/components/home/sidebar/user-item.d.ts +5 -5
  10. package/dist/components/home/sidebar/users-list.d.ts +2 -3
  11. package/dist/components/shadcn-ui/alert-dialog.d.ts +11 -17
  12. package/dist/components/shadcn-ui/avatar.d.ts +3 -3
  13. package/dist/components/shadcn-ui/badge.d.ts +4 -4
  14. package/dist/components/shadcn-ui/button.d.ts +3 -4
  15. package/dist/components/shadcn-ui/dialog.d.ts +11 -17
  16. package/dist/components/shadcn-ui/dropdown-menu.d.ts +20 -22
  17. package/dist/components/shadcn-ui/input.d.ts +1 -1
  18. package/dist/components/shadcn-ui/label.d.ts +1 -2
  19. package/dist/components/shadcn-ui/switch.d.ts +2 -2
  20. package/dist/components/shadcn-ui/tabs.d.ts +4 -4
  21. package/dist/components/shared/widget-button.d.ts +11 -0
  22. package/dist/favicon.ico +0 -0
  23. package/dist/hooks/index.d.ts +6 -0
  24. package/dist/hooks/useValue.d.ts +4 -0
  25. package/dist/index.es.js +14449 -13321
  26. package/dist/index.umd.js +51 -65
  27. package/dist/lib/utils.d.ts +2 -0
  28. package/dist/{public/locales → locales}/el/translation.json.d.ts +8 -8
  29. package/dist/{public/locales → locales}/en/translation.json.d.ts +1 -1
  30. package/dist/{public/locales → locales}/ua/translation.json.d.ts +1 -1
  31. package/dist/main.d.ts +1 -0
  32. package/dist/redux/slices/app.d.ts +6 -0
  33. package/dist/redux/store.d.ts +4 -0
  34. package/package.json +28 -22
@@ -1,2 +1,4 @@
1
+ import { Dialogs } from '../../../../node_modules/connectycube/dist/types/types';
1
2
  import { ClassValue } from 'clsx';
2
3
  export declare function cn(...inputs: ClassValue[]): string;
4
+ export declare function createTempChat(id: string, name: string, type: 3 | 2, occupantsIds: number[], currentUserId: number, photo?: string): Dialogs.Dialog;
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "AddMembers": "Προσθήκη μελών",
3
3
  "Admin": "Διαχειριστής",
4
- "areTyping": "πληκτρολογούν",
4
+ "areTyping": "είναι",
5
5
  "Cancel": "Ακύρωση",
6
6
  "ChatName": "Όνομα συνομιλίας",
7
7
  "ChatNameRequired": "Το όνομα συνομιλίας είναι υποχρεωτικό",
@@ -12,22 +12,22 @@ declare const _default: {
12
12
  "CreateGroupChat": "Δημιουργία ομαδικής συνομιλίας",
13
13
  "Delete": "Διαγραφή",
14
14
  "Draft": "Πρόχειρο",
15
- "EnterMessage": "Εισαγάγετε μήνυμα",
16
- "EnterUserName": "Εισαγάγετε όνομα χρήστη",
15
+ "EnterMessage": "Εισάγετε μήνυμα",
16
+ "EnterUserName": "Εισάγετε όνομα χρήστη",
17
17
  "ExitChat": "Έξοδος από τη συνομιλία",
18
- "FileTypeNotSupported": "Η μορφή αρχείου δεν υποστηρίζεται. Υποστηρίζονται μόνο εικόνες.",
19
- "isTyping": "πληκτρολογεί",
18
+ "FileTypeNotSupported": "Η μορφή αρχείου δεν υποστηρίζεται",
19
+ "isTyping": "είναι",
20
20
  "me": "εγώ",
21
21
  "Members": "Μέλη",
22
22
  "members": "μέλη",
23
23
  "NewGroup": "Νέα ομάδα",
24
24
  "NewMessage": "Νέο μήνυμα",
25
- "NoChats": "Ξεκινήστε την πρώτη σας συνομιλία και δείτε τι θα συμβεί!",
26
- "NoMessages": "Δεν υπάρχουν ακόμη μηνύματα",
25
+ "NoChats": "Επιλέξτε κάποιο χρήστη από τη λίστα Χρήστες και ξεκινήστε την πρώτη σας συνομιλία!",
26
+ "NoMessages": "Δεν υπάρχουν μηνύματα",
27
27
  "NoOnlineUsers": "Δεν υπάρχουν συνδεδεμένοι χρήστες",
28
28
  "Profile": "Προφίλ",
29
29
  "RemoveMembers": "Αφαίρεση μελών",
30
- "RemoveMembers?": "Είστε σίγουροι ότι θέλετε να αφαιρέσετε μέλη;",
30
+ "RemoveMembers?": "Είστε σίγουροι ότι θέλετε να αφαιρέσετε τα μέλη;",
31
31
  "Reset": "Επαναφορά",
32
32
  "Search": "Αναζήτηση",
33
33
  "Select": "Επιλογή",
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  "EnterMessage": "Enter message",
16
16
  "EnterUserName": "Enter user name",
17
17
  "ExitChat": "Exit chat",
18
- "FileTypeNotSupported": "File format is not supported. Only images supported.",
18
+ "FileTypeNotSupported": "File format is not supported",
19
19
  "isTyping": "is typing",
20
20
  "me": "me",
21
21
  "Members": "Members",
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  "EnterMessage": "Введіть повідомлення",
16
16
  "EnterUserName": "Введіть ім'я користувача",
17
17
  "ExitChat": "Вийти з чату",
18
- "FileTypeNotSupported": "Формат файлу не підтримується. Підтримуються лише зображення.",
18
+ "FileTypeNotSupported": "Формат файлу не підтримується",
19
19
  "isTyping": "пише",
20
20
  "me": "я",
21
21
  "Members": "Учасники",
package/dist/main.d.ts CHANGED
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,14 @@
1
+ export declare enum Tab {
2
+ CHATS = "chats",
3
+ USERS = "users"
4
+ }
1
5
  export declare const muted: import('redux').Reducer<boolean>;
2
6
  export declare const setMuted: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "muted/setMuted">, resetMuted: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"muted/resetMuted">;
3
7
  export declare const splitView: import('redux').Reducer<boolean>;
4
8
  export declare const setSplitView: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "splitView/setSplitView">, resetSplitView: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"splitView/resetSplitView">;
5
9
  export declare const showOnlineUsersTab: import('redux').Reducer<boolean>;
6
10
  export declare const setShowOnlineUsersTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "showOnlineUsersTab/setShowOnlineUsersTab">, resetShowOnlineUsersTab: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"showOnlineUsersTab/resetShowOnlineUsersTab">;
11
+ export declare const activeTab: import('redux').Reducer<Tab>;
12
+ export declare const setActiveTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<Tab, "activeTab/setActiveTab">, resetActiveTab: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"activeTab/resetActiveTab">;
7
13
  export declare const hideNewChatButton: import('redux').Reducer<boolean>;
8
14
  export declare const setHideNewChatButton: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "hideNewChatButton/setHideNewChatButton">, resetHideNewChatButton: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"hideNewChatButton/resetHideNewChatButton">;
@@ -3,6 +3,7 @@ export declare const rootReducer: import('redux').Reducer<{
3
3
  muted: boolean;
4
4
  splitView: boolean;
5
5
  showOnlineUsersTab: boolean;
6
+ activeTab: import('./slices/app').Tab;
6
7
  hideNewChatButton: boolean;
7
8
  draftMessages: {
8
9
  [dialogId: string]: string;
@@ -13,6 +14,7 @@ export declare const rootReducer: import('redux').Reducer<{
13
14
  muted: boolean | undefined;
14
15
  splitView: boolean | undefined;
15
16
  showOnlineUsersTab: boolean | undefined;
17
+ activeTab: import('./slices/app').Tab | undefined;
16
18
  hideNewChatButton: boolean | undefined;
17
19
  draftMessages: {
18
20
  [dialogId: string]: string;
@@ -24,6 +26,7 @@ export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
24
26
  muted: boolean;
25
27
  splitView: boolean;
26
28
  showOnlineUsersTab: boolean;
29
+ activeTab: import('./slices/app').Tab;
27
30
  hideNewChatButton: boolean;
28
31
  draftMessages: {
29
32
  [dialogId: string]: string;
@@ -35,6 +38,7 @@ export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
35
38
  muted: boolean;
36
39
  splitView: boolean;
37
40
  showOnlineUsersTab: boolean;
41
+ activeTab: import('./slices/app').Tab;
38
42
  hideNewChatButton: boolean;
39
43
  draftMessages: {
40
44
  [dialogId: string]: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@connectycube/chat-widget",
3
3
  "description": "A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—without the overhead of building a complete chat system from scratch.",
4
- "version": "0.14.4",
4
+ "version": "0.15.1",
5
5
  "keywords": [
6
6
  "chat-widget",
7
7
  "widget",
@@ -44,16 +44,17 @@
44
44
  "vite:build": "tsc -b && vite build",
45
45
  "vite:preview": "vite preview",
46
46
  "test": "vitest",
47
+ "test:ci": "vitest run",
47
48
  "coverage": "vitest run --coverage",
48
- "tailwindcss:watch": "npx tailwindcss -i ./src/index.css -o ./src/styles.css --watch",
49
- "tailwindcss:minify": "npx tailwindcss -i ./src/index.css -o ./src/styles.css --minify",
49
+ "tailwindcss:watch": "npx @tailwindcss/cli -i ./src/index.css -o ./src/styles.css --watch",
50
+ "tailwindcss:minify": "npx @tailwindcss/cli -i ./src/index.css -o ./src/styles.css --minify",
50
51
  "dev": "npm-run-all --parallel vite:dev tailwindcss:watch",
51
52
  "build": "npm run tailwindcss:minify & npm run vite:build",
52
53
  "preview": "npm run tailwindcss:minify & npm run vite:preview",
53
54
  "lint": "eslint ."
54
55
  },
55
56
  "dependencies": {
56
- "@connectycube/use-chat": "^0.13.0",
57
+ "@connectycube/use-chat": "^0.14.4",
57
58
  "@radix-ui/react-alert-dialog": "^1.1.6",
58
59
  "@radix-ui/react-avatar": "^1.1.3",
59
60
  "@radix-ui/react-dialog": "^1.1.6",
@@ -65,47 +66,52 @@
65
66
  "@reduxjs/toolkit": "^2.5.1",
66
67
  "class-variance-authority": "^0.7.1",
67
68
  "clsx": "^2.1.1",
68
- "connectycube": "^4.1.0",
69
+ "connectycube": "^4.1.2",
69
70
  "i18next": "^24.2.2",
70
71
  "jsdom": "^26.0.0",
72
+ "linkify-react": "^4.2.0",
73
+ "linkifyjs": "^4.2.0",
71
74
  "lucide-react": "^0.475.0",
72
75
  "react": "^18.3.1",
73
76
  "react-dom": "^18.3.1",
74
77
  "react-hook-form": "^7.54.2",
75
- "react-i18next": "^15.4.0",
78
+ "react-i18next": "^15.4.1",
76
79
  "react-icons": "^5.4.0",
77
80
  "react-intersection-observer": "^9.15.1",
78
81
  "react-redux": "^9.2.0",
79
82
  "react-router": "^7.1.5",
80
- "react-router-dom": "^7.1.3",
81
- "react-scroll": "^1.9.2",
83
+ "react-router-dom": "^7.1.5",
84
+ "react-scroll": "^1.9.3",
82
85
  "redux": "^5.0.1"
83
86
  },
84
87
  "devDependencies": {
85
88
  "@eslint/js": "^9.20.0",
86
- "@types/node": "^22.13.1",
89
+ "@tailwindcss/postcss": "^4.0.7",
90
+ "@tailwindcss/vite": "^4.0.7",
91
+ "@types/node": "^22.13.4",
87
92
  "@types/react": "18.3.12",
88
93
  "@types/react-dom": "^18.3.5",
89
- "@types/react-i18next": "^7.8.3",
94
+ "@types/react-i18next": "^8.1.0",
90
95
  "@types/react-scroll": "^1.8.10",
91
96
  "@vitejs/plugin-react": "^4.3.4",
92
- "@vitest/coverage-v8": "^3.0.5",
93
- "autoprefixer": "^10.4.20",
94
- "eslint": "^9.20.0",
97
+ "@vitest/coverage-v8": "^3.0.6",
98
+ "eslint": "^9.20.1",
95
99
  "eslint-plugin-react-hooks": "^5.1.0",
96
100
  "eslint-plugin-react-refresh": "^0.4.19",
97
- "globals": "^15.14.0",
101
+ "globals": "^15.15.0",
98
102
  "npm-run-all": "^4.1.5",
99
- "postcss": "^8.5.2",
100
- "prettier": "3.5.0",
101
- "tailwind-merge": "^2.6.0",
102
- "tailwindcss": "^3.4.17",
103
+ "prettier": "3.5.1",
104
+ "tailwind-merge": "^3.0.1",
105
+ "tailwindcss": "^4.0.7",
103
106
  "tailwindcss-animate": "^1.0.7",
104
107
  "typescript": "~5.7.3",
105
- "typescript-eslint": "^8.24.0",
106
- "vite": "^6.1.0",
108
+ "typescript-eslint": "^8.24.1",
109
+ "vite": "^6.1.1",
107
110
  "vite-plugin-css-injected-by-js": "^3.5.2",
108
111
  "vite-plugin-dts": "^4.5.0",
109
- "vitest": "^3.0.5"
112
+ "vitest": "^3.0.6"
113
+ },
114
+ "optionalDependencies": {
115
+ "@rollup/rollup-linux-x64-gnu": "^4.34.8"
110
116
  }
111
- }
117
+ }