@connectycube/chat-widget 0.26.0 → 0.26.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.
- package/CHANGELOG.md +13 -0
- package/dist/index.es.js +9701 -9691
- package/dist/index.umd.js +50 -50
- package/dist/react19/index.es.js +9369 -9359
- 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 +1 -0
- package/dist/react19/types/hooks/useNotification.d.ts +2 -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 +1 -0
- package/dist/types/hooks/useNotification.d.ts +2 -1
- package/package.json +36 -36
|
@@ -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,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
|
};
|
|
@@ -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,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
|
};
|
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.26.
|
|
4
|
+
"version": "0.26.1",
|
|
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.56.
|
|
103
|
-
"react-i18next": "^15.5.
|
|
102
|
+
"react-hook-form": "^7.56.4",
|
|
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
|
-
"zustand": "^5.0.
|
|
107
|
+
"zustand": "^5.0.5"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"react": "^18 || ^19",
|
|
111
111
|
"react-dom": "^18 || ^19"
|
|
112
112
|
},
|
|
113
113
|
"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.1.
|
|
122
|
-
"eslint": "^9.
|
|
114
|
+
"@eslint/js": "^9.27.0",
|
|
115
|
+
"@tailwindcss/postcss": "^4.1.8",
|
|
116
|
+
"@tailwindcss/vite": "^4.1.8",
|
|
117
|
+
"@types/node": "^22.15.27",
|
|
118
|
+
"@types/react": "^19.1.6",
|
|
119
|
+
"@types/react-dom": "^19.1.5",
|
|
120
|
+
"@vitejs/plugin-react": "^4.5.0",
|
|
121
|
+
"@vitest/coverage-v8": "^3.1.4",
|
|
122
|
+
"eslint": "^9.27.0",
|
|
123
123
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
124
124
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
125
|
-
"globals": "^16.
|
|
125
|
+
"globals": "^16.2.0",
|
|
126
126
|
"prettier": "3.5.3",
|
|
127
127
|
"sonner": "^2.0.3",
|
|
128
|
-
"tailwind-merge": "^3.
|
|
128
|
+
"tailwind-merge": "^3.3.0",
|
|
129
129
|
"tailwind-scrollbar": "^4.0.2",
|
|
130
|
-
"tailwindcss": "^4.1.
|
|
131
|
-
"tw-animate-css": "^1.2
|
|
130
|
+
"tailwindcss": "^4.1.8",
|
|
131
|
+
"tw-animate-css": "^1.3.2",
|
|
132
132
|
"typescript": "^5.8.3",
|
|
133
|
-
"typescript-eslint": "^8.
|
|
133
|
+
"typescript-eslint": "^8.33.0",
|
|
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.1.
|
|
136
|
+
"vite-plugin-dts": "^4.5.4",
|
|
137
|
+
"vitest": "^3.1.4"
|
|
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
|
+
}
|