@connectycube/chat-widget 0.29.0 → 0.30.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.
@@ -4,7 +4,9 @@ export interface MessageProps {
4
4
  message: Messages.Message;
5
5
  senderName?: string;
6
6
  senderAvatar?: string | null;
7
+ isLastMessage: boolean;
7
8
  isPlaceholder: boolean;
9
+ isSameUserSender: boolean;
8
10
  isCurrentUserSender: boolean;
9
11
  }
10
12
  declare const Message: React.FC<MessageProps>;
@@ -11,13 +11,13 @@ export declare enum USER_STATUS {
11
11
  export declare const SESSION_KEY = "@connectycube/chat-widget:session";
12
12
  export declare const initConnectyCubeSDK: (credentials: Config.Credentials, config?: Config.Options) => void;
13
13
  export declare const tryReuseSession: (userName?: string, userId?: string, userAvatar?: string, userProfileLink?: string) => Promise<boolean>;
14
- export declare const tryRestoreSession: () => Promise<Auth.Session | null>;
14
+ export declare const restoreSession: () => Promise<Auth.Session | null>;
15
15
  export declare const createUserSession: (login: string, password: string) => Promise<Auth.Session>;
16
16
  export declare const createSession: (userId?: string, userName?: string, userAvatar?: string, userProfileLink?: string) => Promise<Auth.Session | null>;
17
- export declare const restoreSession: (userId?: string, userName?: string, userAvatar?: string, userProfileLink?: string) => Promise<Auth.Session | null>;
18
17
  export declare const destroyUserSession: () => Promise<void>;
19
18
  export declare const userSignup: (login: string, password: string, name?: string, externalId?: string, userAvatar?: string, userProfileLink?: string) => Promise<Auth.Session>;
20
- export declare const chatCredentials: () => Chat.ConnectionParams | null;
19
+ export declare const upsertConnectyCubeConfig: (config?: Config.Options) => void;
20
+ export declare const autoconnect: (connect: (credentials: Chat.ConnectionParams) => Promise<void>, session?: Auth.Session | null) => Promise<void>;
21
21
  export declare const updateUserProfileIfNeeded: (session: Auth.Session, name?: string, externalId?: string, avatar?: string, userProfileLink?: string) => Promise<Auth.Session>;
22
22
  export declare const setSessionToLocalStorage: (session: Auth.Session) => void;
23
23
  export declare const getSessionFromLocalStorage: () => Auth.Session | null;
@@ -4,7 +4,9 @@ export interface MessageProps {
4
4
  message: Messages.Message;
5
5
  senderName?: string;
6
6
  senderAvatar?: string | null;
7
+ isLastMessage: boolean;
7
8
  isPlaceholder: boolean;
9
+ isSameUserSender: boolean;
8
10
  isCurrentUserSender: boolean;
9
11
  }
10
12
  declare const Message: React.FC<MessageProps>;
@@ -11,13 +11,13 @@ export declare enum USER_STATUS {
11
11
  export declare const SESSION_KEY = "@connectycube/chat-widget:session";
12
12
  export declare const initConnectyCubeSDK: (credentials: Config.Credentials, config?: Config.Options) => void;
13
13
  export declare const tryReuseSession: (userName?: string, userId?: string, userAvatar?: string, userProfileLink?: string) => Promise<boolean>;
14
- export declare const tryRestoreSession: () => Promise<Auth.Session | null>;
14
+ export declare const restoreSession: () => Promise<Auth.Session | null>;
15
15
  export declare const createUserSession: (login: string, password: string) => Promise<Auth.Session>;
16
16
  export declare const createSession: (userId?: string, userName?: string, userAvatar?: string, userProfileLink?: string) => Promise<Auth.Session | null>;
17
- export declare const restoreSession: (userId?: string, userName?: string, userAvatar?: string, userProfileLink?: string) => Promise<Auth.Session | null>;
18
17
  export declare const destroyUserSession: () => Promise<void>;
19
18
  export declare const userSignup: (login: string, password: string, name?: string, externalId?: string, userAvatar?: string, userProfileLink?: string) => Promise<Auth.Session>;
20
- export declare const chatCredentials: () => Chat.ConnectionParams | null;
19
+ export declare const upsertConnectyCubeConfig: (config?: Config.Options) => void;
20
+ export declare const autoconnect: (connect: (credentials: Chat.ConnectionParams) => Promise<void>, session?: Auth.Session | null) => Promise<void>;
21
21
  export declare const updateUserProfileIfNeeded: (session: Auth.Session, name?: string, externalId?: string, avatar?: string, userProfileLink?: string) => Promise<Auth.Session>;
22
22
  export declare const setSessionToLocalStorage: (session: Auth.Session) => void;
23
23
  export declare const getSessionFromLocalStorage: () => Auth.Session | null;
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.29.0",
4
+ "version": "0.30.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.0",
83
- "@connectycube/use-chat": "^0.23.2",
83
+ "@connectycube/use-chat": "^0.25.0",
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,16 +92,16 @@
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.4.0",
95
+ "connectycube": "^4.5.0",
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.514.0",
101
+ "lucide-react": "^0.515.0",
102
102
  "next-themes": "^0.4.6",
103
103
  "react-hook-form": "^7.57.0",
104
- "react-i18next": "^15.5.2",
104
+ "react-i18next": "^15.5.3",
105
105
  "react-icons": "^5.5.0",
106
106
  "react-intersection-observer": "^9.16.0",
107
107
  "react-player": "^2.16.0",
@@ -114,9 +114,9 @@
114
114
  },
115
115
  "devDependencies": {
116
116
  "@eslint/js": "^9.28.0",
117
- "@tailwindcss/postcss": "^4.1.9",
118
- "@tailwindcss/vite": "^4.1.9",
119
- "@types/node": "^24.0.0",
117
+ "@tailwindcss/postcss": "^4.1.10",
118
+ "@tailwindcss/vite": "^4.1.10",
119
+ "@types/node": "^24.0.1",
120
120
  "@types/react": "^19.1.8",
121
121
  "@types/react-dom": "^19.1.6",
122
122
  "@vitejs/plugin-react": "^4.5.2",
@@ -128,7 +128,7 @@
128
128
  "prettier": "3.5.3",
129
129
  "tailwind-merge": "^3.3.1",
130
130
  "tailwind-scrollbar": "^4.0.2",
131
- "tailwindcss": "^4.1.9",
131
+ "tailwindcss": "^4.1.10",
132
132
  "tw-animate-css": "^1.3.4",
133
133
  "typescript": "^5.8.3",
134
134
  "typescript-eslint": "^8.34.0",
@@ -139,7 +139,7 @@
139
139
  },
140
140
  "optionalDependencies": {
141
141
  "@rollup/rollup-linux-x64-gnu": "4.43.0",
142
- "@tailwindcss/oxide-linux-x64-gnu": "^4.1.9",
142
+ "@tailwindcss/oxide-linux-x64-gnu": "^4.1.10",
143
143
  "lightningcss-linux-x64-gnu": "^1.30.1"
144
144
  },
145
145
  "engines": {