@connectycube/chat-widget 0.26.0 → 0.27.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 -0
- package/dist/index.es.js +9978 -9954
- package/dist/index.umd.js +52 -50
- package/dist/react19/index.es.js +9709 -9685
- package/dist/react19/types/components/home/main/chat-messages-list.d.ts +6 -0
- package/dist/react19/types/components/home/main/message/message.d.ts +3 -3
- package/dist/react19/types/helpers/widget.d.ts +3 -0
- package/dist/react19/types/hooks/useNotification.d.ts +2 -1
- package/dist/react19/types/locales/el/translation.json.d.ts +1 -1
- package/dist/react19/types/locales/en/translation.json.d.ts +1 -1
- package/dist/react19/types/locales/ua/translation.json.d.ts +1 -1
- package/dist/types/components/home/main/chat-messages-list.d.ts +6 -0
- package/dist/types/components/home/main/message/message.d.ts +3 -3
- package/dist/types/helpers/widget.d.ts +3 -0
- package/dist/types/hooks/useNotification.d.ts +2 -1
- package/dist/types/locales/el/translation.json.d.ts +1 -1
- package/dist/types/locales/en/translation.json.d.ts +1 -1
- package/dist/types/locales/ua/translation.json.d.ts +1 -1
- package/package.json +37 -37
|
@@ -2,10 +2,10 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { Messages } from 'connectycube/types';
|
|
3
3
|
export interface MessageProps {
|
|
4
4
|
message: Messages.Message;
|
|
5
|
-
|
|
6
|
-
dialogName: string;
|
|
7
|
-
senderName: string;
|
|
5
|
+
senderName?: string;
|
|
8
6
|
senderAvatar?: string | null;
|
|
7
|
+
isPlaceholder: boolean;
|
|
8
|
+
isCurrentUserSender: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const Message: React.FC<MessageProps>;
|
|
11
11
|
export default Message;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export declare const sleep: (ms: number) => Promise<void>;
|
|
1
2
|
export declare const stripSpecificTailwindSupports: (css: string) => string;
|
|
2
3
|
export declare enum dataPrefix {
|
|
3
4
|
WRAPPER = "data-connectycube-chat-widget-wrapper",
|
|
4
5
|
FOCUSED = "data-connectycube-chat-widget-focused"
|
|
5
6
|
}
|
|
7
|
+
export declare const widgetFontSize = "15px";
|
|
8
|
+
export declare const widgetFontWeight = "400";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Chat } from 'connectycube/types';
|
|
2
2
|
type NotificationHook = {
|
|
3
|
-
showNotification: (title
|
|
3
|
+
showNotification: (title?: string, body?: string, icon?: string) => Promise<Notification | void>;
|
|
4
|
+
notifyWithSound: (title?: string, body?: string, icon?: string) => Promise<Notification | void>;
|
|
4
5
|
notifyOnMessage: (userId: number, message: Chat.Message) => Promise<Notification | void>;
|
|
5
6
|
playAudio: () => void;
|
|
6
7
|
};
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"Chat": "Συνομιλία",
|
|
9
9
|
"Chats": "Συνομιλίες",
|
|
10
10
|
"ChooseChat": "Επιλέξτε συνομιλία",
|
|
11
|
-
"
|
|
11
|
+
"Continue": "Συνέχεια",
|
|
12
12
|
"CreateGroupChat": "Δημιουργία ομαδικής συνομιλίας",
|
|
13
13
|
"Delete": "Διαγραφή",
|
|
14
14
|
"Draft": "Πρόχειρο",
|
|
@@ -2,10 +2,10 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { Messages } from 'connectycube/types';
|
|
3
3
|
export interface MessageProps {
|
|
4
4
|
message: Messages.Message;
|
|
5
|
-
|
|
6
|
-
dialogName: string;
|
|
7
|
-
senderName: string;
|
|
5
|
+
senderName?: string;
|
|
8
6
|
senderAvatar?: string | null;
|
|
7
|
+
isPlaceholder: boolean;
|
|
8
|
+
isCurrentUserSender: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const Message: React.FC<MessageProps>;
|
|
11
11
|
export default Message;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export declare const sleep: (ms: number) => Promise<void>;
|
|
1
2
|
export declare const stripSpecificTailwindSupports: (css: string) => string;
|
|
2
3
|
export declare enum dataPrefix {
|
|
3
4
|
WRAPPER = "data-connectycube-chat-widget-wrapper",
|
|
4
5
|
FOCUSED = "data-connectycube-chat-widget-focused"
|
|
5
6
|
}
|
|
7
|
+
export declare const widgetFontSize = "15px";
|
|
8
|
+
export declare const widgetFontWeight = "400";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Chat } from 'connectycube/types';
|
|
2
2
|
type NotificationHook = {
|
|
3
|
-
showNotification: (title
|
|
3
|
+
showNotification: (title?: string, body?: string, icon?: string) => Promise<Notification | void>;
|
|
4
|
+
notifyWithSound: (title?: string, body?: string, icon?: string) => Promise<Notification | void>;
|
|
4
5
|
notifyOnMessage: (userId: number, message: Chat.Message) => Promise<Notification | void>;
|
|
5
6
|
playAudio: () => void;
|
|
6
7
|
};
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
"Chat": "Συνομιλία",
|
|
9
9
|
"Chats": "Συνομιλίες",
|
|
10
10
|
"ChooseChat": "Επιλέξτε συνομιλία",
|
|
11
|
-
"
|
|
11
|
+
"Continue": "Συνέχεια",
|
|
12
12
|
"CreateGroupChat": "Δημιουργία ομαδικής συνομιλίας",
|
|
13
13
|
"Delete": "Διαγραφή",
|
|
14
14
|
"Draft": "Πρόχειρο",
|
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.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"homepage": "https://github.com/ConnectyCube/connectycube-chat-widget#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -79,70 +79,70 @@
|
|
|
79
79
|
"version": "sh ./fetch-version.sh"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@connectycube/use-chat": "^0.23.
|
|
83
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
84
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
85
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
86
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
87
|
-
"@radix-ui/react-label": "^2.1.
|
|
88
|
-
"@radix-ui/react-slot": "^1.2.
|
|
89
|
-
"@radix-ui/react-switch": "^1.2.
|
|
90
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
91
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
82
|
+
"@connectycube/use-chat": "^0.23.1",
|
|
83
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
84
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
85
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
86
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
87
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
88
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
89
|
+
"@radix-ui/react-switch": "^1.2.5",
|
|
90
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
91
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
92
92
|
"class-variance-authority": "^0.7.1",
|
|
93
93
|
"clsx": "^2.1.1",
|
|
94
94
|
"connectycube": "^4.3.0",
|
|
95
95
|
"get-browser-fingerprint": "^4.1.0",
|
|
96
|
-
"i18next": "^25.1
|
|
96
|
+
"i18next": "^25.2.1",
|
|
97
97
|
"jsdom": "^26.1.0",
|
|
98
98
|
"linkify-react": "^4.3.1",
|
|
99
99
|
"linkifyjs": "^4.3.1",
|
|
100
|
-
"lucide-react": "^0.
|
|
100
|
+
"lucide-react": "^0.511.0",
|
|
101
101
|
"next-themes": "^0.4.6",
|
|
102
|
-
"react-hook-form": "^7.
|
|
103
|
-
"react-i18next": "^15.5.
|
|
102
|
+
"react-hook-form": "^7.57.0",
|
|
103
|
+
"react-i18next": "^15.5.2",
|
|
104
104
|
"react-icons": "^5.5.0",
|
|
105
105
|
"react-intersection-observer": "^9.16.0",
|
|
106
106
|
"react-player": "^2.16.0",
|
|
107
|
-
"
|
|
107
|
+
"sonner": "^2.0.5",
|
|
108
|
+
"zustand": "^5.0.5"
|
|
108
109
|
},
|
|
109
110
|
"peerDependencies": {
|
|
110
111
|
"react": "^18 || ^19",
|
|
111
112
|
"react-dom": "^18 || ^19"
|
|
112
113
|
},
|
|
113
114
|
"devDependencies": {
|
|
114
|
-
"@eslint/js": "^9.
|
|
115
|
-
"@tailwindcss/postcss": "^4.1.
|
|
116
|
-
"@tailwindcss/vite": "^4.1.
|
|
117
|
-
"@types/node": "^22.15.
|
|
118
|
-
"@types/react": "^19.1.
|
|
119
|
-
"@types/react-dom": "^19.1.
|
|
120
|
-
"@vitejs/plugin-react": "^4.
|
|
121
|
-
"@vitest/coverage-v8": "^3.
|
|
122
|
-
"eslint": "^9.
|
|
115
|
+
"@eslint/js": "^9.28.0",
|
|
116
|
+
"@tailwindcss/postcss": "^4.1.8",
|
|
117
|
+
"@tailwindcss/vite": "^4.1.8",
|
|
118
|
+
"@types/node": "^22.15.29",
|
|
119
|
+
"@types/react": "^19.1.6",
|
|
120
|
+
"@types/react-dom": "^19.1.5",
|
|
121
|
+
"@vitejs/plugin-react": "^4.5.1",
|
|
122
|
+
"@vitest/coverage-v8": "^3.2.0",
|
|
123
|
+
"eslint": "^9.28.0",
|
|
123
124
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
124
125
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
125
|
-
"globals": "^16.
|
|
126
|
+
"globals": "^16.2.0",
|
|
126
127
|
"prettier": "3.5.3",
|
|
127
|
-
"
|
|
128
|
-
"tailwind-merge": "^3.2.0",
|
|
128
|
+
"tailwind-merge": "^3.3.0",
|
|
129
129
|
"tailwind-scrollbar": "^4.0.2",
|
|
130
|
-
"tailwindcss": "^4.1.
|
|
131
|
-
"tw-animate-css": "^1.
|
|
130
|
+
"tailwindcss": "^4.1.8",
|
|
131
|
+
"tw-animate-css": "^1.3.3",
|
|
132
132
|
"typescript": "^5.8.3",
|
|
133
|
-
"typescript-eslint": "^8.
|
|
133
|
+
"typescript-eslint": "^8.33.1",
|
|
134
134
|
"vite": "^6.3.5",
|
|
135
135
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
136
|
-
"vite-plugin-dts": "^4.5.
|
|
137
|
-
"vitest": "^3.
|
|
136
|
+
"vite-plugin-dts": "^4.5.4",
|
|
137
|
+
"vitest": "^3.2.0"
|
|
138
138
|
},
|
|
139
139
|
"optionalDependencies": {
|
|
140
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
141
|
-
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.
|
|
142
|
-
"lightningcss-linux-x64-gnu": "^1.
|
|
140
|
+
"@rollup/rollup-linux-x64-gnu": "4.41.1",
|
|
141
|
+
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.8",
|
|
142
|
+
"lightningcss-linux-x64-gnu": "^1.30.1"
|
|
143
143
|
},
|
|
144
144
|
"engines": {
|
|
145
145
|
"node": ">=20.0.0",
|
|
146
146
|
"npm": ">=10.0.0"
|
|
147
147
|
}
|
|
148
|
-
}
|
|
148
|
+
}
|