@connectycube/chat-widget 0.30.2 → 0.31.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 +15 -0
- package/dist/connectycube-chat-widget-sw.js +26 -1
- package/dist/index.es.js +6009 -5622
- package/dist/index.umd.js +45 -45
- package/dist/react19/connectycube-chat-widget-sw.js +26 -1
- package/dist/react19/index.es.js +6926 -6539
- package/dist/react19/types/components/home/main/message/message-attachment.d.ts +3 -2
- package/dist/react19/types/components/home/main/message/message-url-preview.d.ts +1 -0
- package/dist/react19/types/components/home/main/message/message.d.ts +2 -0
- package/dist/react19/types/components/home/sidebar/chat-item.d.ts +1 -0
- package/dist/react19/types/components/home/sidebar/chats-list.d.ts +1 -4
- package/dist/react19/types/hooks/store/useLinkPreviewStore.d.ts +1 -0
- package/dist/react19/types/index.d.ts +9 -0
- package/dist/types/components/home/main/message/message-attachment.d.ts +3 -2
- package/dist/types/components/home/main/message/message-url-preview.d.ts +1 -0
- package/dist/types/components/home/main/message/message.d.ts +2 -0
- package/dist/types/components/home/sidebar/chat-item.d.ts +1 -0
- package/dist/types/components/home/sidebar/chats-list.d.ts +1 -4
- package/dist/types/hooks/store/useLinkPreviewStore.d.ts +1 -0
- package/dist/types/index.d.ts +9 -0
- package/package.json +10 -9
|
@@ -3,6 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
export interface MessageAttachmentProps {
|
|
4
4
|
attachment: Messages.Attachment;
|
|
5
5
|
uploading: boolean;
|
|
6
|
+
stickToBottom?: (skipOnce?: boolean) => void;
|
|
6
7
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
8
|
+
declare const _default: React.NamedExoticComponent<MessageAttachmentProps>;
|
|
9
|
+
export default _default;
|
|
@@ -8,6 +8,8 @@ export interface MessageProps {
|
|
|
8
8
|
isPlaceholder: boolean;
|
|
9
9
|
isSameUserSender: boolean;
|
|
10
10
|
isCurrentUserSender: boolean;
|
|
11
|
+
enableUrlPreview?: boolean;
|
|
12
|
+
stickToBottom?: (id: string, skipOnce?: boolean) => void;
|
|
11
13
|
}
|
|
12
14
|
declare const Message: React.FC<MessageProps>;
|
|
13
15
|
export default Message;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
export type ChatWidgetInWindow = {
|
|
2
|
+
initialNotification?: MessageEvent['data'];
|
|
3
|
+
open?: () => void;
|
|
4
|
+
close?: () => void;
|
|
5
|
+
toggle?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export type WindowWithChatWidget = Window & typeof globalThis & {
|
|
8
|
+
ConnectyCubeChatWidget?: ChatWidgetInWindow;
|
|
9
|
+
};
|
|
1
10
|
export { default } from './App';
|
|
@@ -3,6 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
export interface MessageAttachmentProps {
|
|
4
4
|
attachment: Messages.Attachment;
|
|
5
5
|
uploading: boolean;
|
|
6
|
+
stickToBottom?: (skipOnce?: boolean) => void;
|
|
6
7
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
8
|
+
declare const _default: React.NamedExoticComponent<MessageAttachmentProps>;
|
|
9
|
+
export default _default;
|
|
@@ -8,6 +8,8 @@ export interface MessageProps {
|
|
|
8
8
|
isPlaceholder: boolean;
|
|
9
9
|
isSameUserSender: boolean;
|
|
10
10
|
isCurrentUserSender: boolean;
|
|
11
|
+
enableUrlPreview?: boolean;
|
|
12
|
+
stickToBottom?: (id: string, skipOnce?: boolean) => void;
|
|
11
13
|
}
|
|
12
14
|
declare const Message: React.FC<MessageProps>;
|
|
13
15
|
export default Message;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
+
export type ChatWidgetInWindow = {
|
|
2
|
+
initialNotification?: MessageEvent['data'];
|
|
3
|
+
open?: () => void;
|
|
4
|
+
close?: () => void;
|
|
5
|
+
toggle?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export type WindowWithChatWidget = Window & typeof globalThis & {
|
|
8
|
+
ConnectyCubeChatWidget?: ChatWidgetInWindow;
|
|
9
|
+
};
|
|
1
10
|
export { default } from './App';
|
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.31.0",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"homepage": "https://github.com/ConnectyCube/connectycube-chat-widget#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@connectycube/use-calls": "^0.11.1",
|
|
83
|
-
"@connectycube/use-chat": "^0.26.
|
|
83
|
+
"@connectycube/use-chat": "^0.26.1",
|
|
84
84
|
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
85
85
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
86
86
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
93
93
|
"class-variance-authority": "^0.7.1",
|
|
94
94
|
"clsx": "^2.1.1",
|
|
95
|
-
"connectycube": "^4.6.
|
|
95
|
+
"connectycube": "^4.6.2",
|
|
96
96
|
"get-browser-fingerprint": "^4.1.0",
|
|
97
97
|
"i18next": "^25.2.1",
|
|
98
98
|
"jsdom": "^26.1.0",
|
|
99
99
|
"linkify-react": "^4.3.1",
|
|
100
100
|
"linkifyjs": "^4.3.1",
|
|
101
|
-
"lucide-react": "^0.
|
|
101
|
+
"lucide-react": "^0.523.0",
|
|
102
102
|
"next-themes": "^0.4.6",
|
|
103
103
|
"react-hook-form": "^7.58.1",
|
|
104
104
|
"react-i18next": "^15.5.3",
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"react-intersection-observer": "^9.16.0",
|
|
107
107
|
"react-player": "^2.16.0",
|
|
108
108
|
"sonner": "^2.0.5",
|
|
109
|
+
"virtua": "^0.41.5",
|
|
109
110
|
"zustand": "^5.0.5"
|
|
110
111
|
},
|
|
111
112
|
"peerDependencies": {
|
|
@@ -116,29 +117,29 @@
|
|
|
116
117
|
"@eslint/js": "^9.29.0",
|
|
117
118
|
"@tailwindcss/postcss": "^4.1.10",
|
|
118
119
|
"@tailwindcss/vite": "^4.1.10",
|
|
119
|
-
"@types/node": "^24.0.
|
|
120
|
+
"@types/node": "^24.0.4",
|
|
120
121
|
"@types/react": "^19.1.8",
|
|
121
122
|
"@types/react-dom": "^19.1.6",
|
|
122
|
-
"@vitejs/plugin-react": "^4.
|
|
123
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
123
124
|
"@vitest/coverage-v8": "^3.2.4",
|
|
124
125
|
"eslint": "^9.29.0",
|
|
125
126
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
126
127
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
127
128
|
"globals": "^16.2.0",
|
|
128
|
-
"prettier": "3.
|
|
129
|
+
"prettier": "3.6.1",
|
|
129
130
|
"tailwind-merge": "^3.3.1",
|
|
130
131
|
"tailwind-scrollbar": "^4.0.2",
|
|
131
132
|
"tailwindcss": "^4.1.10",
|
|
132
133
|
"tw-animate-css": "^1.3.4",
|
|
133
134
|
"typescript": "^5.8.3",
|
|
134
|
-
"typescript-eslint": "^8.
|
|
135
|
+
"typescript-eslint": "^8.35.0",
|
|
135
136
|
"vite": "^6.3.5",
|
|
136
137
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
137
138
|
"vite-plugin-dts": "^4.5.4",
|
|
138
139
|
"vitest": "^3.2.4"
|
|
139
140
|
},
|
|
140
141
|
"optionalDependencies": {
|
|
141
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
142
|
+
"@rollup/rollup-linux-x64-gnu": "4.44.1",
|
|
142
143
|
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.10",
|
|
143
144
|
"lightningcss-linux-x64-gnu": "^1.30.1"
|
|
144
145
|
},
|