@connectycube/chat-widget 0.34.0 → 0.35.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.
@@ -40,7 +40,7 @@ export declare const updateUserSettings: (settings: {
40
40
  export declare const getSessionToken: () => string | null;
41
41
  export declare const getSessionUserId: () => number | null;
42
42
  export declare const isSessionExpired: () => boolean;
43
- export declare const isUserIdChanged: (userId?: string) => boolean;
43
+ export declare const isUserIdChanged: (userId?: string | number | null) => boolean;
44
44
  export declare const sha256: (str: string) => Promise<string>;
45
45
  export declare const getUserName: (user: Users.User | null | undefined, force?: boolean) => string;
46
46
  export declare const getPhotoUrl: (photoOrAvatar?: string | null) => 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.34.0",
4
+ "version": "0.35.0",
5
5
  "license": "GPL-3.0-only",
6
6
  "homepage": "https://github.com/ConnectyCube/connectycube-chat-widget#readme",
7
7
  "bugs": {
@@ -45,8 +45,13 @@
45
45
  },
46
46
  "./react19": {
47
47
  "types": "./dist/types/index.d.ts",
48
- "import": "./dist/react19.es.js",
49
- "default": "./dist/react19.es.js"
48
+ "import": "./dist/index.es.js",
49
+ "default": "./dist/index.es.js"
50
+ },
51
+ "./react18": {
52
+ "types": "./dist/types/index.d.ts",
53
+ "import": "./dist/react18.es.js",
54
+ "default": "./dist/react18.es.js"
50
55
  }
51
56
  },
52
57
  "files": [
@@ -67,13 +72,13 @@
67
72
  "tailwindcss": "npx @tailwindcss/cli -i ./src/index.css -o ./src/widget.css",
68
73
  "tailwindcss:watch": "npx @tailwindcss/cli -i ./src/index.css -o ./src/widget.css --watch",
69
74
  "tailwindcss:minify": "npx @tailwindcss/cli -i ./src/index.css -o ./src/widget.css --minify",
70
- "dev": "npx npm-run-all --parallel vite:dev tailwindcss:watch",
71
75
  "dev:18": "npm run react:18 && REACT_VERSION=18 BUNDLE_FORMAT=es vite",
72
76
  "dev:19": "npm run react:19 && REACT_VERSION=19 BUNDLE_FORMAT=es vite",
73
- "build": "npm run tailwindcss:minify && npm run react:18 && REACT_VERSION=18 npm run vite:build:es && KEEP_DIST=true npm run vite:build:umd && npm run react:19 && REACT_VERSION=19 KEEP_DIST=true npm run vite:build:es && npm run react:default",
77
+ "dev": "npx npm-run-all --parallel vite:dev tailwindcss:watch",
74
78
  "build:18": "npm run tailwindcss:minify && npm run react:18 && REACT_VERSION=18 npm run vite:build:es && KEEP_DIST=true npm run vite:build:umd",
75
79
  "build:19": "npm run tailwindcss:minify && npm run react:19 && REACT_VERSION=19 npm run vite:build:es",
76
80
  "build:default": "npm run tailwindcss:minify && npm run vite:build",
81
+ "build": "npm run tailwindcss:minify && npm run react:18 && REACT_VERSION=18 npm run vite:build:es && KEEP_DIST=true npm run vite:build:umd && npm run react:19 && REACT_VERSION=19 KEEP_DIST=true npm run vite:build:es && npm run react:default",
77
82
  "preview": "npm run tailwindcss && npm run vite:preview",
78
83
  "lint": "eslint .",
79
84
  "test": "vitest",
@@ -86,7 +91,7 @@
86
91
  "changelog": "node ./scripts/changelog.cjs"
87
92
  },
88
93
  "dependencies": {
89
- "@ai-sdk/google": "^2.0.7",
94
+ "@ai-sdk/google": "^2.0.17",
90
95
  "@connectycube/use-calls": "^0.12.1",
91
96
  "@connectycube/use-chat": "^0.27.0",
92
97
  "@radix-ui/react-alert-dialog": "^1.1.15",
@@ -99,23 +104,23 @@
99
104
  "@radix-ui/react-switch": "^1.2.6",
100
105
  "@radix-ui/react-tabs": "^1.1.13",
101
106
  "@radix-ui/react-tooltip": "^1.2.8",
102
- "ai": "^5.0.18",
107
+ "ai": "^5.0.54",
103
108
  "class-variance-authority": "^0.7.1",
104
109
  "clsx": "^2.1.1",
105
- "connectycube": "^4.7.1",
106
- "get-browser-fingerprint": "^4.1.0",
107
- "i18next": "^25.3.6",
110
+ "connectycube": "^4.7.2",
111
+ "get-browser-fingerprint": "^4.1.1",
112
+ "i18next": "^25.5.2",
108
113
  "linkify-react": "^4.3.2",
109
114
  "linkifyjs": "^4.3.2",
110
- "lucide-react": "^0.540.0",
115
+ "lucide-react": "^0.544.0",
111
116
  "next-themes": "^0.4.6",
112
- "react-hook-form": "^7.62.0",
113
- "react-i18next": "^15.6.1",
117
+ "react-hook-form": "^7.63.0",
118
+ "react-i18next": "^16.0.0",
114
119
  "react-icons": "^5.5.0",
115
120
  "react-intersection-observer": "^9.16.0",
116
121
  "react-player": "^2.16.1",
117
122
  "sonner": "^2.0.7",
118
- "virtua": "^0.41.5",
123
+ "virtua": "^0.43.4",
119
124
  "zustand": "^5.0.8"
120
125
  },
121
126
  "peerDependencies": {
@@ -123,33 +128,33 @@
123
128
  "react-dom": ">=18"
124
129
  },
125
130
  "devDependencies": {
126
- "@eslint/js": "^9.33.0",
127
- "@tailwindcss/postcss": "^4.1.12",
128
- "@tailwindcss/vite": "^4.1.12",
129
- "@types/node": "^24.3.0",
130
- "@types/react": "^19.1.10",
131
- "@types/react-dom": "^19.1.7",
132
- "@vitejs/plugin-react": "^5.0.1",
131
+ "@eslint/js": "^9.36.0",
132
+ "@tailwindcss/postcss": "^4.1.13",
133
+ "@tailwindcss/vite": "^4.1.13",
134
+ "@types/node": "^24.5.2",
135
+ "@types/react": "^19.1.13",
136
+ "@types/react-dom": "^19.1.9",
137
+ "@vitejs/plugin-react": "^5.0.3",
133
138
  "@vitest/coverage-v8": "^3.2.4",
134
- "eslint": "^9.33.0",
139
+ "eslint": "^9.36.0",
135
140
  "eslint-plugin-react-hooks": "^5.2.0",
136
- "eslint-plugin-react-refresh": "^0.4.20",
137
- "globals": "^16.3.0",
138
- "jsdom": "^26.1.0",
141
+ "eslint-plugin-react-refresh": "^0.4.22",
142
+ "globals": "^16.4.0",
143
+ "jsdom": "^27.0.0",
139
144
  "prettier": "3.6.2",
140
145
  "tailwind-merge": "^3.3.1",
141
146
  "tailwind-scrollbar": "^4.0.2",
142
- "tailwindcss": "^4.1.12",
143
- "tw-animate-css": "^1.3.7",
147
+ "tailwindcss": "^4.1.13",
148
+ "tw-animate-css": "^1.4.0",
144
149
  "typescript": "^5.9.2",
145
- "typescript-eslint": "^8.40.0",
146
- "vite": "^7.1.3",
150
+ "typescript-eslint": "^8.44.1",
151
+ "vite": "^7.1.7",
147
152
  "vite-plugin-dts": "^4.5.4",
148
153
  "vitest": "^3.2.4"
149
154
  },
150
155
  "optionalDependencies": {
151
- "@rollup/rollup-linux-x64-gnu": "4.46.4",
152
- "@tailwindcss/oxide-linux-x64-gnu": "^4.1.12",
156
+ "@rollup/rollup-linux-x64-gnu": "4.52.2",
157
+ "@tailwindcss/oxide-linux-x64-gnu": "^4.1.13",
153
158
  "lightningcss-linux-x64-gnu": "^1.30.1"
154
159
  },
155
160
  "engines": {