@messenger-box/chat-ui 10.0.3-alpha.165 → 10.0.3-alpha.171

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messenger-box/chat-ui",
3
- "version": "10.0.3-alpha.165",
3
+ "version": "10.0.3-alpha.171",
4
4
  "description": "Account browser",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -44,7 +44,7 @@
44
44
  "@chatscope/chat-ui-kit-styles": "^1.4.0",
45
45
  "@chatscope/use-chat": "^3.1.1",
46
46
  "@messenger-box/core": "10.0.3-alpha.165",
47
- "@messenger-box/platform-client": "10.0.3-alpha.165",
47
+ "@messenger-box/platform-client": "10.0.3-alpha.171",
48
48
  "date-fns": "^4.1.0",
49
49
  "date-fns-tz": "^3.2.0",
50
50
  "emoji-mart": "^3.0.1",
@@ -76,5 +76,5 @@
76
76
  "typescript": {
77
77
  "definition": "lib/index.d.ts"
78
78
  },
79
- "gitHead": "8d736ea5f9426350ce771b74fa6fb3b91f5c2646"
79
+ "gitHead": "c1244ee70b3e40dec9916c2ef7e801695ecc7b5a"
80
80
  }
package/CHANGELOG.md DELETED
@@ -1,340 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [10.0.3-alpha.165](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.164...v10.0.3-alpha.165) (2025-12-25)
7
-
8
- **Note:** Version bump only for package @messenger-box/chat-ui
9
-
10
- ## [10.0.3-alpha.164](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.163...v10.0.3-alpha.164) (2025-12-25)
11
-
12
- **Note:** Version bump only for package @messenger-box/chat-ui
13
-
14
- ## [10.0.3-alpha.162](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.161...v10.0.3-alpha.162) (2025-12-24)
15
-
16
- **Note:** Version bump only for package @messenger-box/chat-ui
17
-
18
- ## [10.0.3-alpha.160](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.159...v10.0.3-alpha.160) (2025-12-24)
19
-
20
- **Note:** Version bump only for package @messenger-box/chat-ui
21
-
22
- ## [10.0.3-alpha.158](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.157...v10.0.3-alpha.158) (2025-12-23)
23
-
24
- **Note:** Version bump only for package @messenger-box/chat-ui
25
-
26
- ## [10.0.3-alpha.154](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.153...v10.0.3-alpha.154) (2025-12-20)
27
-
28
- **Note:** Version bump only for package @messenger-box/chat-ui
29
-
30
- ## [10.0.3-alpha.152](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.151...v10.0.3-alpha.152) (2025-12-19)
31
-
32
- **Note:** Version bump only for package @messenger-box/chat-ui
33
-
34
- ## [10.0.3-alpha.151](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.150...v10.0.3-alpha.151) (2025-12-19)
35
-
36
- **Note:** Version bump only for package @messenger-box/chat-ui
37
-
38
- ## [10.0.3-alpha.150](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.149...v10.0.3-alpha.150) (2025-12-19)
39
-
40
- **Note:** Version bump only for package @messenger-box/chat-ui
41
-
42
- ## [10.0.3-alpha.148](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.147...v10.0.3-alpha.148) (2025-12-18)
43
-
44
- **Note:** Version bump only for package @messenger-box/chat-ui
45
-
46
- ## [10.0.3-alpha.147](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.146...v10.0.3-alpha.147) (2025-12-18)
47
-
48
- **Note:** Version bump only for package @messenger-box/chat-ui
49
-
50
- ## [10.0.3-alpha.145](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.144...v10.0.3-alpha.145) (2025-12-11)
51
-
52
- **Note:** Version bump only for package @messenger-box/chat-ui
53
-
54
- ## [10.0.3-alpha.143](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.142...v10.0.3-alpha.143) (2025-12-08)
55
-
56
- **Note:** Version bump only for package @messenger-box/chat-ui
57
-
58
- ## [10.0.3-alpha.138](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.137...v10.0.3-alpha.138) (2025-12-05)
59
-
60
- **Note:** Version bump only for package @messenger-box/chat-ui
61
-
62
- ## [10.0.3-alpha.136](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.135...v10.0.3-alpha.136) (2025-12-02)
63
-
64
- **Note:** Version bump only for package @messenger-box/chat-ui
65
-
66
- ## [10.0.3-alpha.135](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.134...v10.0.3-alpha.135) (2025-11-28)
67
-
68
- **Note:** Version bump only for package @messenger-box/chat-ui
69
-
70
- ## [10.0.3-alpha.129](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.128...v10.0.3-alpha.129) (2025-11-17)
71
-
72
- **Note:** Version bump only for package @messenger-box/chat-ui
73
-
74
- ## [10.0.3-alpha.126](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.125...v10.0.3-alpha.126) (2025-11-08)
75
-
76
- **Note:** Version bump only for package @messenger-box/chat-ui
77
-
78
- ## [10.0.3-alpha.125](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.124...v10.0.3-alpha.125) (2025-11-08)
79
-
80
- **Note:** Version bump only for package @messenger-box/chat-ui
81
-
82
- ## [10.0.3-alpha.123](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.122...v10.0.3-alpha.123) (2025-11-05)
83
-
84
- **Note:** Version bump only for package @messenger-box/chat-ui
85
-
86
- ## [10.0.3-alpha.120](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.119...v10.0.3-alpha.120) (2025-10-30)
87
-
88
- **Note:** Version bump only for package @messenger-box/chat-ui
89
-
90
- ## [10.0.3-alpha.119](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.118...v10.0.3-alpha.119) (2025-10-29)
91
-
92
- **Note:** Version bump only for package @messenger-box/chat-ui
93
-
94
- ## [10.0.3-alpha.117](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.116...v10.0.3-alpha.117) (2025-10-27)
95
-
96
- **Note:** Version bump only for package @messenger-box/chat-ui
97
-
98
- ## [10.0.3-alpha.113](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.112...v10.0.3-alpha.113) (2025-10-23)
99
-
100
- **Note:** Version bump only for package @messenger-box/chat-ui
101
-
102
- ## [10.0.3-alpha.109](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.108...v10.0.3-alpha.109) (2025-10-17)
103
-
104
- **Note:** Version bump only for package @messenger-box/chat-ui
105
-
106
- ## [10.0.3-alpha.104](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.103...v10.0.3-alpha.104) (2025-10-11)
107
-
108
- **Note:** Version bump only for package @messenger-box/chat-ui
109
-
110
- ## [10.0.3-alpha.102](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.101...v10.0.3-alpha.102) (2025-10-11)
111
-
112
- **Note:** Version bump only for package @messenger-box/chat-ui
113
-
114
- ## [10.0.3-alpha.101](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.100...v10.0.3-alpha.101) (2025-10-11)
115
-
116
- **Note:** Version bump only for package @messenger-box/chat-ui
117
-
118
- ## [10.0.3-alpha.100](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.99...v10.0.3-alpha.100) (2025-10-09)
119
-
120
- **Note:** Version bump only for package @messenger-box/chat-ui
121
-
122
- ## [10.0.3-alpha.99](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.98...v10.0.3-alpha.99) (2025-09-29)
123
-
124
- **Note:** Version bump only for package @messenger-box/chat-ui
125
-
126
- ## [10.0.3-alpha.97](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.96...v10.0.3-alpha.97) (2025-09-25)
127
-
128
- **Note:** Version bump only for package @messenger-box/chat-ui
129
-
130
- ## [10.0.3-alpha.96](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.95...v10.0.3-alpha.96) (2025-09-23)
131
-
132
- **Note:** Version bump only for package @messenger-box/chat-ui
133
-
134
- ## [10.0.3-alpha.95](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.94...v10.0.3-alpha.95) (2025-09-23)
135
-
136
- **Note:** Version bump only for package @messenger-box/chat-ui
137
-
138
- ## [10.0.3-alpha.94](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.93...v10.0.3-alpha.94) (2025-09-22)
139
-
140
- **Note:** Version bump only for package @messenger-box/chat-ui
141
-
142
- ## [10.0.3-alpha.93](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.92...v10.0.3-alpha.93) (2025-09-22)
143
-
144
- **Note:** Version bump only for package @messenger-box/chat-ui
145
-
146
- ## [10.0.3-alpha.84](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.83...v10.0.3-alpha.84) (2025-09-21)
147
-
148
- **Note:** Version bump only for package @messenger-box/chat-ui
149
-
150
- ## [10.0.3-alpha.80](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.79...v10.0.3-alpha.80) (2025-09-20)
151
-
152
- **Note:** Version bump only for package @messenger-box/chat-ui
153
-
154
- ## [10.0.3-alpha.77](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.76...v10.0.3-alpha.77) (2025-09-19)
155
-
156
- **Note:** Version bump only for package @messenger-box/chat-ui
157
-
158
- ## [10.0.3-alpha.74](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.73...v10.0.3-alpha.74) (2025-09-18)
159
-
160
- **Note:** Version bump only for package @messenger-box/chat-ui
161
-
162
- ## [10.0.3-alpha.72](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.71...v10.0.3-alpha.72) (2025-08-28)
163
-
164
- **Note:** Version bump only for package @messenger-box/chat-ui
165
-
166
- ## [10.0.3-alpha.69](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.68...v10.0.3-alpha.69) (2025-08-11)
167
-
168
- **Note:** Version bump only for package @messenger-box/chat-ui
169
-
170
- ## [10.0.3-alpha.67](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.66...v10.0.3-alpha.67) (2025-08-06)
171
-
172
- **Note:** Version bump only for package @messenger-box/chat-ui
173
-
174
- ## [10.0.3-alpha.62](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.61...v10.0.3-alpha.62) (2025-07-30)
175
-
176
- **Note:** Version bump only for package @messenger-box/chat-ui
177
-
178
- ## [10.0.3-alpha.61](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.60...v10.0.3-alpha.61) (2025-07-09)
179
-
180
- **Note:** Version bump only for package @messenger-box/chat-ui
181
-
182
- ## [10.0.3-alpha.56](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.55...v10.0.3-alpha.56) (2025-06-30)
183
-
184
- **Note:** Version bump only for package @messenger-box/chat-ui
185
-
186
- ## [10.0.3-alpha.54](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.53...v10.0.3-alpha.54) (2025-06-29)
187
-
188
- **Note:** Version bump only for package @messenger-box/chat-ui
189
-
190
- ## [10.0.3-alpha.50](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.49...v10.0.3-alpha.50) (2025-06-05)
191
-
192
- **Note:** Version bump only for package @messenger-box/chat-ui
193
-
194
- ## [10.0.3-alpha.48](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.47...v10.0.3-alpha.48) (2025-05-30)
195
-
196
- **Note:** Version bump only for package @messenger-box/chat-ui
197
-
198
- ## [10.0.3-alpha.47](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.46...v10.0.3-alpha.47) (2025-05-26)
199
-
200
- **Note:** Version bump only for package @messenger-box/chat-ui
201
-
202
- ## [10.0.3-alpha.46](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.45...v10.0.3-alpha.46) (2025-05-19)
203
-
204
- **Note:** Version bump only for package @messenger-box/chat-ui
205
-
206
- ## [10.0.3-alpha.43](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.42...v10.0.3-alpha.43) (2025-05-15)
207
-
208
- **Note:** Version bump only for package @messenger-box/chat-ui
209
-
210
- ## [10.0.3-alpha.40](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.39...v10.0.3-alpha.40) (2025-05-14)
211
-
212
- **Note:** Version bump only for package @messenger-box/chat-ui
213
-
214
- ## [10.0.3-alpha.38](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.37...v10.0.3-alpha.38) (2025-04-25)
215
-
216
- **Note:** Version bump only for package @messenger-box/chat-ui
217
-
218
- ## [10.0.3-alpha.37](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.36...v10.0.3-alpha.37) (2025-04-25)
219
-
220
- **Note:** Version bump only for package @messenger-box/chat-ui
221
-
222
- ## [10.0.3-alpha.36](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.35...v10.0.3-alpha.36) (2025-04-23)
223
-
224
- **Note:** Version bump only for package @messenger-box/chat-ui
225
-
226
- ## [10.0.3-alpha.34](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.33...v10.0.3-alpha.34) (2025-04-22)
227
-
228
- **Note:** Version bump only for package @messenger-box/chat-ui
229
-
230
- ## [10.0.3-alpha.33](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.32...v10.0.3-alpha.33) (2025-04-17)
231
-
232
- **Note:** Version bump only for package @messenger-box/chat-ui
233
-
234
- ## [10.0.3-alpha.31](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.30...v10.0.3-alpha.31) (2025-04-16)
235
-
236
- **Note:** Version bump only for package @messenger-box/chat-ui
237
-
238
- ## [10.0.3-alpha.17](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.16...v10.0.3-alpha.17) (2025-04-08)
239
-
240
- **Note:** Version bump only for package @messenger-box/chat-ui
241
-
242
- ## [10.0.3-alpha.16](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.15...v10.0.3-alpha.16) (2025-03-28)
243
-
244
- **Note:** Version bump only for package @messenger-box/chat-ui
245
-
246
- ## [10.0.3-alpha.14](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.13...v10.0.3-alpha.14) (2025-03-27)
247
-
248
- **Note:** Version bump only for package @messenger-box/chat-ui
249
-
250
- ## [10.0.3-alpha.7](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.6...v10.0.3-alpha.7) (2025-02-27)
251
-
252
- **Note:** Version bump only for package @messenger-box/chat-ui
253
-
254
- ## [10.0.3-alpha.5](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.4...v10.0.3-alpha.5) (2025-02-25)
255
-
256
- **Note:** Version bump only for package @messenger-box/chat-ui
257
-
258
- ## [10.0.3-alpha.2](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.1...v10.0.3-alpha.2) (2025-02-24)
259
-
260
- **Note:** Version bump only for package @messenger-box/chat-ui
261
-
262
- ## [10.0.3-alpha.0](https://github.com/cdmbase/messenger-box/compare/v10.0.2-alpha.6...v10.0.3-alpha.0) (2025-02-24)
263
-
264
- **Note:** Version bump only for package @messenger-box/chat-ui
265
-
266
- ## [10.0.2-alpha.5](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.4...v10.0.2-alpha.5) (2025-02-24)
267
-
268
- **Note:** Version bump only for package @messenger-box/chat-ui
269
-
270
- ## [10.0.2-alpha.4](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.3...v10.0.2-alpha.4) (2025-02-10)
271
-
272
- **Note:** Version bump only for package @messenger-box/chat-ui
273
-
274
- ## [10.0.2-alpha.3](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.2...v10.0.2-alpha.3) (2025-02-10)
275
-
276
- **Note:** Version bump only for package @messenger-box/chat-ui
277
-
278
- ## [10.0.2-alpha.2](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.1...v10.0.2-alpha.2) (2025-02-10)
279
-
280
- **Note:** Version bump only for package @messenger-box/chat-ui
281
-
282
- ## [10.0.2-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.2-alpha.0) (2025-02-04)
283
-
284
- **Note:** Version bump only for package @messenger-box/chat-ui
285
-
286
- ## [10.0.1-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.1-alpha.0) (2025-02-04)
287
-
288
- **Note:** Version bump only for package @messenger-box/chat-ui
289
-
290
- ## [9.0.4-alpha.23](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.22...v9.0.4-alpha.23) (2025-02-01)
291
-
292
- **Note:** Version bump only for package @messenger-box/chat-ui
293
-
294
- ## [9.0.4-alpha.22](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.21...v9.0.4-alpha.22) (2025-01-31)
295
-
296
- **Note:** Version bump only for package @messenger-box/chat-ui
297
-
298
- ## [9.0.4-alpha.17](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.16...v9.0.4-alpha.17) (2024-10-17)
299
-
300
- **Note:** Version bump only for package @messenger-box/chat-ui
301
-
302
- ## [9.0.4-alpha.16](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.15...v9.0.4-alpha.16) (2024-10-08)
303
-
304
- **Note:** Version bump only for package @messenger-box/chat-ui
305
-
306
- ## [9.0.4-alpha.15](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.14...v9.0.4-alpha.15) (2024-09-30)
307
-
308
- **Note:** Version bump only for package @messenger-box/chat-ui
309
-
310
- ## [9.0.4-alpha.7](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.6...v9.0.4-alpha.7) (2024-09-20)
311
-
312
- **Note:** Version bump only for package @messenger-box/chat-ui
313
-
314
- ## [9.0.4-alpha.1](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.0...v9.0.4-alpha.1) (2024-09-12)
315
-
316
- **Note:** Version bump only for package @messenger-box/chat-ui
317
-
318
- ## [9.0.2-alpha.0](https://github.com/CDEBase/messenger-box/compare/v7.2.6-alpha.10...v9.0.2-alpha.0) (2024-09-06)
319
-
320
- **Note:** Version bump only for package @messenger-box/chat-ui
321
-
322
- ## [7.2.6-alpha.4](https://github.com/CDEBase/messenger-box/compare/v7.2.6-alpha.3...v7.2.6-alpha.4) (2024-08-12)
323
-
324
- **Note:** Version bump only for package @messenger-box/chat-ui
325
-
326
- ## 7.2.6-alpha.0 (2024-08-11)
327
-
328
- **Note:** Version bump only for package @messenger-box/chat-ui
329
-
330
- ## 7.2.4-alpha.0 (2024-07-19)
331
-
332
- **Note:** Version bump only for package @messenger-box/chat-ui
333
-
334
- ## [7.2.1-alpha.2](https://github.com/CDEBase/messenger-box/compare/v7.2.1-alpha.1...v7.2.1-alpha.2) (2024-07-16)
335
-
336
- **Note:** Version bump only for package @messenger-box/chat-ui
337
-
338
- ## 7.2.1-alpha.0 (2024-07-15)
339
-
340
- **Note:** Version bump only for package @messenger-box/chat-ui
package/jest.config.js DELETED
@@ -1,9 +0,0 @@
1
- const base = require('../../../jest.config.base');
2
- const packageJson = require('./package');
3
-
4
- module.exports = {
5
- ...base,
6
- testEnvironment: 'jsdom', // This is overriden, from the base testEnvironment
7
- name: packageJson.name,
8
- displayName: packageJson.name,
9
- };
package/rollup.config.mjs DELETED
@@ -1,36 +0,0 @@
1
-
2
- import { createRollupConfig } from '../../../rollup.config.base.mjs';
3
-
4
- const additionalPlugins = [];
5
- // Use the createRollupConfig function to merge the base and specific configurations
6
- export default (commandLineArgs) => {
7
- const isWatchMode = commandLineArgs.watch;
8
- return [
9
- createRollupConfig(
10
- {
11
- input: ['src/index.ts'],
12
- plugins: [
13
- // Spread in additional plugins specific to this config
14
- ...additionalPlugins,
15
- ],
16
- output: [
17
- {
18
- dir: 'lib',
19
- format: 'es',
20
- name: 'chat-ui',
21
- compact: true,
22
- exports: 'named',
23
- sourcemap: true,
24
- preserveModules: true,
25
- chunkFileNames: '[name]-[hash].[format].js',
26
- globals: { react: 'React' },
27
- },
28
- ],
29
- },
30
- {
31
- isWatchMode,
32
- generateRoutesJSON: true,
33
- },
34
- ),
35
- ];
36
- };
@@ -1,88 +0,0 @@
1
- import React, { useState, useMemo, useEffect, useCallback, useRef } from 'react';
2
- import {
3
- MainContainer,
4
- Sidebar,
5
- ConversationList,
6
- Conversation,
7
- Avatar,
8
- MessageGroup,
9
- Message,
10
- ChatContainer,
11
- ConversationHeader,
12
- MessageList,
13
- MessageInput,
14
- } from '@chatscope/chat-ui-kit-react';
15
- import { useOnPublicPostAddedSubscription, useSendPublicMessageMutation } from 'common/graphql';
16
- import { uniqBy } from 'lodash-es';
17
-
18
- export const Chat = ({ user, channelId, channelMessages, setChannelMessages }) => {
19
- // Message input value
20
- const [value, setValue] = useState('');
21
- const [totalCount, setTotalCount] = useState(0);
22
-
23
- const [sendMsg] = useSendPublicMessageMutation();
24
-
25
- const chatContainerRef = useRef(null);
26
-
27
- const {
28
- data: newThreadMsg,
29
- loading: newThreadMsgLoading,
30
- error: newThreadMsgError,
31
- } = useOnPublicPostAddedSubscription({
32
- variables: {
33
- channelId: channelId?.toString(),
34
- },
35
- });
36
-
37
- const handleSend = async (text: any) => {
38
- if (!(text && channelId)) {
39
- return;
40
- }
41
-
42
- await sendMsg({
43
- variables: {
44
- channelId: channelId?.toString(),
45
- messageInput: {
46
- content: text?.toString(),
47
- },
48
- },
49
- });
50
- };
51
- React.useEffect(() => {
52
- if (newThreadMsg) {
53
- const msg = newThreadMsg?.publicPostAdded;
54
- setTotalCount((preCount: any) => preCount + 1);
55
- setChannelMessages((oldMessages: any) => uniqBy([...oldMessages, msg], ({ id }) => id));
56
-
57
- // Scroll to the bottom after adding a new message
58
- const chatContainer = chatContainerRef.current;
59
- chatContainer.scrollToBottom();
60
- }
61
- }, []);
62
-
63
- return (
64
- <MainContainer>
65
- <ChatContainer>
66
- <MessageList ref={chatContainerRef}>
67
- {channelMessages.map((g) => (
68
- <MessageGroup key={g.id} direction={'outgoing'}>
69
- <MessageGroup.Messages>
70
- <Message
71
- key={g.id}
72
- model={
73
- {
74
- type: 'text',
75
- payload: g.message,
76
- } as any
77
- }
78
- />
79
- </MessageGroup.Messages>
80
- </MessageGroup>
81
- ))}
82
- </MessageList>
83
-
84
- <MessageInput placeholder="Type message here" onSend={handleSend} />
85
- </ChatContainer>
86
- </MainContainer>
87
- );
88
- };
@@ -1,233 +0,0 @@
1
- import React, { useEffect, useState } from 'react';
2
- import { Box, Button, Image, useMediaQuery } from '@chakra-ui/react';
3
- import { BiConversation } from '@react-icons/all-files/bi/BiConversation.js';
4
- import { BiMessageDetail } from '@react-icons/all-files/bi/BiMessageDetail.js';
5
- import { MdKeyboardArrowDown } from '@react-icons/all-files/md/MdKeyboardArrowDown.js';
6
- import { BsCardText } from '@react-icons/all-files/bs/BsCardText.js';
7
- import { nanoid } from 'nanoid';
8
- import { AutoDraft, BasicStorage, ChatProvider } from '@chatscope/use-chat';
9
- import { ExampleChatService } from '@chatscope/use-chat/dist/examples/index.js';
10
- import { usePublicMessagesQuery } from 'common/graphql';
11
- import { uniqBy } from 'lodash-es';
12
- import { Chat } from './Chat';
13
- import { objectId } from '@messenger-box/core';
14
-
15
- export const CustomerSupportChat = () => {
16
- const [isChat, setIsChat] = useState(false);
17
- const [isChatOpen, setIsChatOpen] = useState(false);
18
- const [channelMessages, setChannelMessages] = useState([]);
19
- const [channelId, setChannelId] = useState<string | null>(null);
20
- const [isMobileView, isNonMobileView] = useMediaQuery(['(max-width: 480px)', '(min-width: 480px)']);
21
-
22
- // Storage needs to generate id for messages and groups
23
- const messageIdGenerator = () => nanoid();
24
- const groupIdGenerator = () => nanoid();
25
-
26
- // Create serviceFactory
27
- const serviceFactory = (storage, updateState) => {
28
- return new ExampleChatService(storage, updateState);
29
- };
30
-
31
- useEffect(() => {
32
- const storeChannelId = localStorage.getItem('channelId');
33
-
34
- if (!storeChannelId || storeChannelId === 'undefined') {
35
- // ID is undefined or not present in localStorage
36
- const newId = objectId();
37
- localStorage.setItem('channelId', newId);
38
- setChannelId(newId);
39
- } else {
40
- setChannelId(storeChannelId.toString());
41
- }
42
- }, []);
43
-
44
- const { data, loading, error } = usePublicMessagesQuery({
45
- variables: {
46
- channelId: channelId?.toString(),
47
- },
48
- });
49
-
50
- React.useEffect(() => {
51
- if (data?.publicMessages?.data) {
52
- const currentConversaion = data?.publicMessages?.data?.slice().reverse();
53
- currentConversaion.map((msg) => {
54
- setChannelMessages((oldMessages: any) => uniqBy([...oldMessages, msg], ({ id }) => id));
55
- });
56
- }
57
- }, [data, isChat]);
58
- const handleChat = () => {
59
- setIsChatOpen(true);
60
- };
61
- const handleChatClick = () => {
62
- setIsChat(true);
63
- };
64
- const chatStorage = new BasicStorage({ groupIdGenerator, messageIdGenerator });
65
-
66
- return (
67
- <>
68
- {!isChat ? (
69
- <Box style={{ position: 'fixed', bottom: '20px', right: '30px', zIndex: '2' }}>
70
- {/* @ts-ignore */}
71
- <Button
72
- background={'#3182ce'}
73
- fontSize={'38px'}
74
- padding={'16px'}
75
- width={'72px'}
76
- height={'72px'}
77
- borderRadius={'50%'}
78
- display={'flex'}
79
- alignItems={'center'}
80
- justifyContent={'center'}
81
- onClick={handleChatClick}
82
- >
83
- <BiConversation />
84
- </Button>
85
- </Box>
86
- ) : (
87
- <Box
88
- style={{
89
- position: 'fixed',
90
- bottom: '20px',
91
- right: '30px',
92
- zIndex: '2',
93
- width: isMobileView ? '80vw' : '25vw',
94
- }}
95
- >
96
- <Box textAlign={'left'} marginBottom={'10px'}>
97
- {/* @ts-ignore */}
98
- <Button
99
- background={'#3182ce'}
100
- fontSize={'42px'}
101
- width={'62px'}
102
- height={'62px'}
103
- borderRadius={'50%'}
104
- display={'flex'}
105
- alignItems={'center'}
106
- justifyContent={'center'}
107
- onClick={() => setIsChat(false)}
108
- >
109
- <MdKeyboardArrowDown />
110
- </Button>
111
- </Box>
112
-
113
- <Box style={{ borderRadius: '20px', background: 'white' }}>
114
- <Box
115
- style={{
116
- display: 'flex',
117
- backgroundColor: '#3182ce',
118
- padding: '20px 30px',
119
- lineHeight: '7vh',
120
- alignItems: 'center',
121
- }}
122
- >
123
- <Box
124
- style={{
125
- background: '#366c96',
126
- padding: '10px',
127
- borderRadius: '54px',
128
- fontSize: '25px',
129
- }}
130
- >
131
- <BiMessageDetail />
132
- </Box>
133
- <Box style={{ fontWeight: '700', fontSize: '18px', marginLeft: '30px' }}>
134
- Conversation(s)
135
- </Box>
136
- </Box>
137
- <Box
138
- style={{
139
- height: '50vh',
140
- background: '#fafafa',
141
- color: 'black',
142
- display: 'flex',
143
- flexDirection: 'column',
144
- alignContent: 'stretch',
145
- justifyContent: 'space-evenly',
146
- alignItems: 'center',
147
- }}
148
- >
149
- {!isChatOpen && !channelMessages.length ? (
150
- <Box textAlign={'center'}>
151
- {/* @ts-ignore */}
152
- <Image
153
- width={'50%'}
154
- margin={'auto'}
155
- src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcThpk_KxVKIRa0_fxwaVgIFcRvTgUem0LbkaA&usqp=CAU"
156
- />
157
- <Box textAlign={'center'}> No ongoing Conversation</Box>
158
- {/* @ts-ignore */}
159
- <Button
160
- style={{
161
- backgroundColor: '#3182ce',
162
- padding: '22px 26px',
163
- marginTop: '20px',
164
- borderRadius: '8px',
165
- color: 'whitesmoke',
166
- }}
167
- leftIcon={<BiMessageDetail fontSize={'22px'} />}
168
- onClick={handleChat}
169
- >
170
- Chat now
171
- </Button>
172
- </Box>
173
- ) : (
174
- <Box w={'100%'} h={'50vh'}>
175
- <ChatProvider
176
- serviceFactory={serviceFactory}
177
- storage={chatStorage}
178
- config={{
179
- typingThrottleTime: 250,
180
- typingDebounceTime: 900,
181
- debounceTyping: true,
182
- autoDraft: AutoDraft.Save | AutoDraft.Restore,
183
- }}
184
- >
185
- <Chat
186
- user={{ name: 'beeena', avatar: '' }}
187
- channelId={channelId}
188
- setChannelMessages={setChannelMessages}
189
- channelMessages={channelMessages}
190
- />
191
- </ChatProvider>
192
- </Box>
193
- )}
194
- </Box>
195
- <Box
196
- style={{
197
- height: '7vh',
198
- background: 'white',
199
- color: 'black',
200
- display: 'flex',
201
- alignContent: 'center',
202
- alignItems: 'center',
203
- padding: '30px 0px',
204
- justifyContent: 'space-evenly',
205
- boxShadow: '0 0 5px rgba(0, 0, 0, 0.9)',
206
- outline: '1px solid transparent',
207
- }}
208
- >
209
- <Box
210
- style={{
211
- display: 'flex',
212
- flexDirection: 'column',
213
- alignItems: 'center',
214
- }}
215
- >
216
- <BiMessageDetail /> Conversation
217
- </Box>
218
- <Box
219
- style={{
220
- display: 'flex',
221
- flexDirection: 'column',
222
- alignItems: 'center',
223
- }}
224
- >
225
- <BsCardText /> Articles{' '}
226
- </Box>
227
- </Box>
228
- </Box>
229
- </Box>
230
- )}
231
- </>
232
- );
233
- };
@@ -1,2 +0,0 @@
1
- export * from './Chat';
2
- export * from './CustomerSupportChat';
@@ -1 +0,0 @@
1
- export { Chat, CustomerSupportChat } from './CustomerSupportChat';
package/src/compute.ts DELETED
@@ -1,18 +0,0 @@
1
- import { getFilteredRoutes } from '@common-stack/client-react/lib/utils/filteredRoutes.js';
2
- const key = 'chat-box';
3
-
4
- const chatBox: any[] = [
5
- {
6
- path: '/chat',
7
- key: key,
8
- exact: false,
9
- auth: 'optional',
10
- extraPermissions: ['*'],
11
- component: () => import('./container/chatBoxWithLoader'),
12
- },
13
- ];
14
-
15
- // get routes
16
- const filteredRoutes = getFilteredRoutes(chatBox);
17
-
18
- export { filteredRoutes };
@@ -1,8 +0,0 @@
1
- import { cleanEnv, num, str } from 'envalid';
2
- import { getEnvironment } from '@common-stack/core';
3
-
4
- const env = getEnvironment();
5
-
6
- export const config = cleanEnv(env, {
7
- LAYOUT_ROOT: str({ default: '/', desc: 'Layout parent route' }),
8
- });
@@ -1 +0,0 @@
1
- export { config } from './env-config';
@@ -1,35 +0,0 @@
1
- import * as React from 'react';
2
- import { ClientContainerService } from '@adminide-stack/core';
3
- import { matchParentRoute } from '@admin-layout/client/lib/utils/parentRoute.js';
4
- import { config } from '../config';
5
- import { CustomerSupportChat } from '../components';
6
-
7
- const ChatBoxWithLoader = (props) => {
8
- return <CustomerSupportChat />;
9
- };
10
- export default ChatBoxWithLoader;
11
-
12
- export const loader = ({ context, request }) => {
13
- const { routeConfig } = context;
14
-
15
- const parentRoute = matchParentRoute(routeConfig, config.LAYOUT_ROOT);
16
-
17
- return { parentRoute };
18
- };
19
-
20
- export async function clientLoader({ request, params, serverLoader }) {
21
- // During client-side navigations, we hit our exposed API endpoints directly
22
- const loaderData = await serverLoader();
23
- const { apolloState } = loaderData;
24
-
25
- try {
26
- const { container } = (window as any).__CLIENT_SERVICE__;
27
- const organizationContext = container.get(ClientContainerService.ApolloErrorHandler);
28
- organizationContext.hydrate(apolloState);
29
- } catch (e) {
30
- console.error('Error in client hydrate');
31
- console.error(e);
32
- }
33
-
34
- return loaderData;
35
- }
package/src/index.ts DELETED
@@ -1,6 +0,0 @@
1
- import { Feature } from '@common-stack/client-react';
2
- import chatBox from './module';
3
-
4
- export { Chat, CustomerSupportChat } from './components';
5
-
6
- export default new Feature(chatBox);
package/src/module.tsx DELETED
@@ -1,7 +0,0 @@
1
- import { Feature } from '@common-stack/client-react';
2
- import { filteredRoutes } from './compute';
3
-
4
- export default new Feature({
5
- routeConfig: filteredRoutes,
6
- stylesInsert: ['@chatscope/chat-ui-kit-styles/dist/default/styles.min.css'],
7
- });
package/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "lib",
6
- "declarationDir": "lib",
7
- "declaration": true,
8
- "declarationMap": true,
9
- "skipLibCheck": true,
10
- "types": ["@types/node", "@types/jest", "../../../typings"]
11
- },
12
- "exclude": ["../../../node_modules", "node_modules", "lib", "dist", "webpack.config.js", "rollup.config.mjs"],
13
- "include": ["src", "./typings/*.d.ts", "type.d.ts"],
14
- }
package/webpack.config.js DELETED
@@ -1,92 +0,0 @@
1
- // eslint-disable-next-line import/no-extraneous-dependencies
2
- const nodeExternals = require('webpack-node-externals');
3
- // eslint-disable-next-line import/no-extraneous-dependencies
4
- const webpack = require('webpack');
5
- const path = require('path');
6
-
7
- const webpackOpts = {
8
- mode: 'development',
9
- entry: {
10
- index: './src/index.ts',
11
- },
12
- target: 'node',
13
- output: {
14
- path: path.join(__dirname, 'lib'),
15
- filename: '[name].js',
16
- libraryTarget: 'commonjs2',
17
- },
18
- resolve: {
19
- extensions: [
20
- '.js',
21
- '.jsx',
22
- '.ts',
23
- '.tsx',
24
- '.graphql',
25
- '.graphqls',
26
- '.gql',
27
- '.native.tsx',
28
- '.native.ts',
29
- '.json',
30
- ],
31
- },
32
- plugins: [
33
- new webpack.LoaderOptionsPlugin({
34
- options: {
35
- test: /\.tsx?$/,
36
- ts: {
37
- compiler: 'typescript',
38
- configFile: 'tsconfig.json',
39
- },
40
- tslint: {
41
- emitErrors: true,
42
- failOnHint: true,
43
- },
44
- },
45
- }),
46
- ],
47
- devtool: 'source-map',
48
- module: {
49
- rules: [
50
- {
51
- test: /\.(tsx)?$/,
52
- use: 'ts-loader',
53
- },
54
- {
55
- test: /\.mjs$/,
56
- include: /node_modules/,
57
- type: 'javascript/auto',
58
- },
59
- {
60
- test: /\.(gql)$/,
61
- exclude: /node_modules/,
62
- use: ['graphql-tag/loader'],
63
- },
64
- {
65
- test: /\.graphql?/,
66
- exclude: /node_modules/,
67
- use: 'raw-loader',
68
- },
69
- {
70
- test: /\.(png|jpg|gif|webp)$/i,
71
- use: {
72
- loader: 'url-loader',
73
- options: {
74
- limit: 8192,
75
- name: 'static/media/[name].[hash:8].[ext]',
76
- },
77
- },
78
- },
79
- {
80
- test: /\.svg$/,
81
- use: ['@svgr/webpack'],
82
- },
83
- {
84
- test: /\.json$/,
85
- loader: 'json-loader',
86
- },
87
- ],
88
- },
89
- externals: [nodeExternals({ modulesDir: '../../../node_modules' }), nodeExternals()],
90
- };
91
-
92
- module.exports = webpackOpts;