widget-chatbot 1.0.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/.prettierrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "tabWidth": 4,
3
+ "semi": true,
4
+ "singleQuote": true,
5
+ "printWidth": 100,
6
+ "trailingComma": "es5"
7
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,614 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ### [1.0.2](https://https///compare/v1.0.1...v1.0.2) (2023-03-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * update node-sass to support node12+ ([#458](https://https//undefined/issues/458)) ([5070d24](https://https///commit/5070d24410786b2ad4acc632fa81ab6b49441bc7))
11
+
12
+ ### [1.0.1](https://https///compare/v1.0.0...v1.0.1) (2021-04-15)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * readme typo ([f0fa78c](https://https///commit/f0fa78c048d71e52b8a8d2c863e8e2269f2fb834))
18
+ * socket io ([4c1562d](https://https///commit/4c1562d5d62df7f70e12910edcbe093e4dc48e80))
19
+
20
+ ### [1.0.1](https://https///compare/v1.0.0...v1.0.1) (2021-04-15)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * readme typo ([f0fa78c](https://https///commit/f0fa78c048d71e52b8a8d2c863e8e2269f2fb834))
26
+ * socket io ([4c1562d](https://https///commit/4c1562d5d62df7f70e12910edcbe093e4dc48e80))
27
+
28
+ ## [1.0.0](https://https///compare/v0.11.12...v1.0.0) (2021-02-01)
29
+
30
+ ### [0.11.12](https://https///compare/v0.11.11...v0.11.12) (2021-01-19)
31
+
32
+
33
+ ### Features
34
+
35
+ * expose getSessionId ([c8cbda7](https://https///commit/c8cbda78ec9b746f2697aa8c279c84f1b260fd1f))
36
+
37
+ ### [0.11.11](https://https///compare/v0.11.10...v0.11.11) (2020-10-21)
38
+
39
+ ### [0.11.10](https://https///compare/v0.11.9...v0.11.10) (2020-10-16)
40
+
41
+
42
+ ### Features
43
+
44
+ * image size in markdown ([990f4bb](https://https///commit/990f4bb113da8ae1c29528c9b48a279d5efc8393))
45
+
46
+ ### [0.11.9](https://https///compare/v0.11.8...v0.11.9) (2020-10-14)
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * custom responses ([ae7072c](https://https///commit/ae7072c0dca010dc719d8ecb067726fe8e0e7f9e))
52
+ * image size in markdown ([cee6286](https://https///commit/cee62866b3e61806d389d1728b32864da8f02554))
53
+
54
+ ### [0.11.8](https://https///compare/v0.11.7...v0.11.8) (2020-09-28)
55
+
56
+
57
+ ### Features
58
+
59
+ * possibility to send a payload on tooltip close ([38cf679](https://https///commit/38cf67976ba634ad2a6097c6f684ff105ede04e6))
60
+
61
+ ### [0.11.7](https://https///compare/v0.11.6...v0.11.7) (2020-09-16)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * colors on buttons using color props ([dbfebe6](https://https///commit/dbfebe63699f67c9baf5551ca0aa588ca4df76d6))
67
+
68
+ ### [0.11.6](https://https///compare/v0.11.5...v0.11.6) (2020-08-27)
69
+
70
+
71
+ ### Bug Fixes
72
+
73
+ * code formatting on readme ([2a4f94c](https://https///commit/2a4f94cde3137aff1f73080ce296eadafed8bc25))
74
+ * reload in edge cases ([db6d3d1](https://https///commit/db6d3d140db90e1e417b52c264b0a524489c4a8d))
75
+
76
+ ### [0.11.5](https://https///compare/v0.11.4...v0.11.5) (2020-06-24)
77
+
78
+
79
+ ### Features
80
+
81
+ * choose tooltip placement ([aba68c8](https://https///commit/aba68c8b2ad883b85cdf8931d876d809f2beb79e))
82
+
83
+ ### [0.11.4](https://https///compare/v0.11.3...v0.11.4) (2020-06-24)
84
+
85
+ ### [0.11.3](https://https///compare/v0.11.2...v0.11.3) (2020-06-24)
86
+
87
+
88
+ ### Bug Fixes
89
+
90
+ * sequence with highlights ([2c69f08](https://https///commit/2c69f08930ab213c1548ec6b1d7d8fac59bae010))
91
+
92
+ ### [0.11.2](https://https///compare/v0.11.1...v0.11.2) (2020-06-23)
93
+
94
+
95
+ ### Bug Fixes
96
+
97
+ * bullet points in tooltips ([2c9e92f](https://https///commit/2c9e92f9d20d672ad7d8c991ec7b3db4358bc3a7))
98
+
99
+ ### [0.11.1](https://https///compare/v0.11.0...v0.11.1) (2020-06-23)
100
+
101
+
102
+ ### Bug Fixes
103
+
104
+ * webchat opening ([14f457f](https://https///commit/14f457f6a142a1fbde7db972d2f6de0b2063fa34))
105
+
106
+ ## [0.11.0](https://https///compare/v0.10.4...v0.11.0) (2020-06-23)
107
+
108
+
109
+ ### Features
110
+
111
+ * auto clear storage on new version to prevent errors ([db2df1e](https://https///commit/db2df1eec7841e2bbcdc20e228c143361218d4dc))
112
+ * placed tooltips ([6857448](https://https///commit/6857448bee206b53c9a10ed3975f6c7247070253))
113
+ * tooltip sequences ([80f048f](https://https///commit/80f048f516b29f032337f07ff85cb787824f3e70))
114
+
115
+ ### [0.10.4](https://https///compare/v0.10.3...v0.10.4) (2020-06-06)
116
+
117
+
118
+ ### Features
119
+
120
+ * customize colors ([b2650b5](https://https///commit/b2650b5e5f3aaaf7b5bae7240ddadf8d7bafa27a))
121
+
122
+
123
+ ### Bug Fixes
124
+
125
+ * minor style issue on typing indicator ([0b9eb22](https://https///commit/0b9eb228e0573db38c0b77a84571bd279cbbd6f0))
126
+
127
+ ### [0.10.3](https://https///compare/v0.10.2...v0.10.3) (2020-06-01)
128
+
129
+
130
+ ### Bug Fixes
131
+
132
+ * auto scrolling ([9c91876](https://https///commit/9c91876aa15b42ba7dbde32ff071b947473776bf))
133
+
134
+ ### [0.10.2](https://https///compare/v0.10.1...v0.10.2) (2020-05-28)
135
+
136
+
137
+ ### Bug Fixes
138
+
139
+ * page refresh when pressing enter on firefox ([174d9b9](https://https///commit/174d9b9b0cbff81f7fe832c5e46e5d0a313a254a))
140
+
141
+ ### [0.10.1](https://https///compare/v0.10.0...v0.10.1) (2020-05-27)
142
+
143
+ ## [0.10.0](https://https///compare/v0.9.1...v0.10.0) (2020-05-27)
144
+
145
+
146
+ ### Features
147
+
148
+ * message input multiline ([cef1002](https://https///commit/cef10021aee0e4a32a0fd1061dd8b3a884591623))
149
+ * persistent button ([498f1d4](https://https///commit/498f1d4bb5118cb87c3aebcf6373481a123534d3))
150
+
151
+
152
+ ### Bug Fixes
153
+
154
+ * markdown lists when embedded mode is active ([46427d1](https://https///commit/46427d143bcd56d8f53f19e4cb07bcd50e73a53f))
155
+ * styles when widget is in full screen mode ([74a95e9](https://https///commit/74a95e9ede83a94b1c0e985a528cf8bc3b8b4912))
156
+
157
+ ### [0.9.1](https://https///compare/v0.9.0...v0.9.1) (2020-05-21)
158
+
159
+
160
+ ### Bug Fixes
161
+
162
+ * allow session re-use by re-reading session_id from local storage ([6ea3ffc](https://https///commit/6ea3ffcceb2abc47f1d6fe1cf5c0821cd69fa216))
163
+
164
+ ## [0.9.0](https://https///compare/v0.8.9...v0.9.0) (2020-05-11)
165
+
166
+ ### [0.8.9](https://https///compare/v0.8.8...v0.8.9) (2020-05-05)
167
+
168
+
169
+ ### Features
170
+
171
+ * carousels ([98ee08f](https://https///commit/98ee08f96fe4fec504375931c211a6db8abacdba))
172
+
173
+ ### [0.8.8](https://https///compare/v0.8.7...v0.8.8) (2020-04-24)
174
+
175
+
176
+ ### Features
177
+
178
+ * allow disabling/enabling input ([333baea](https://https///commit/333baea0c1b87c6d7a99455a0902a6a0f927b20d))
179
+ * change the color of the send button when input is not empty ([#214](https://https//undefined/issues/214)) ([bd75cc5](https://https///commit/bd75cc50b39aab935e6b54281c7d7caa87a9b4c5))
180
+
181
+ ### [0.8.7](https://https///compare/v0.8.6...v0.8.7) (2020-04-16)
182
+
183
+
184
+ ### Bug Fixes
185
+
186
+ * scroll to highlight centered on mobile ([560e44b](https://https///commit/560e44b077b55d8a3038736e62bd88a040dcefe9))
187
+
188
+ ### [0.8.6](https://https///compare/v0.8.5...v0.8.6) (2020-04-16)
189
+
190
+
191
+ ### Features
192
+
193
+ * automatically scroll to highlights ([47daa28](https://https///commit/47daa287fdb2d6028f12cf6f3c1cb52847e59815))
194
+
195
+
196
+ ### Bug Fixes
197
+
198
+ * markdown was not working any more ([#211](https://https//undefined/issues/211)) ([ba2fe55](https://https///commit/ba2fe5502ce6687068c7538be7ce374a9fea4a86))
199
+ * safari blinking animation ([d121a51](https://https///commit/d121a51544bcd589ac91159a1f30fed17000a1c5))
200
+ * scrolling to highligh with chat open ([a967527](https://https///commit/a967527e26be9505c5d4f82e3c0addc461d45851))
201
+
202
+ ### [0.8.5](https://https///compare/v0.8.4...v0.8.5) (2020-04-10)
203
+
204
+ ### [0.8.4](https://https///compare/v0.8.3...v0.8.4) (2020-04-08)
205
+
206
+ ### [0.8.3](https://https///compare/v0.8.2...v0.8.3) (2020-04-06)
207
+
208
+ ### [0.8.2](https://https///compare/v0.8.1...v0.8.2) (2020-04-01)
209
+
210
+
211
+ ### Bug Fixes
212
+
213
+ * subtitles display ([3f330f7](https://https///commit/3f330f7ffac1ada84c51348a43899c2fd993aacc))
214
+
215
+ ### [0.8.1](https://https///compare/v0.8.0...v0.8.1) (2020-03-26)
216
+
217
+ ## [0.8.0](https://https///compare/v0.7.23...v0.8.0) (2020-03-25)
218
+
219
+
220
+ ### Bug Fixes
221
+
222
+ * message duplicate appearing as a tooltip when closing the chat ([9586994](https://https///commit/958699441987579e8290687343335e619e7d102a))
223
+
224
+ ### [0.7.23](https://https///compare/v0.7.22...v0.7.23) (2020-03-20)
225
+
226
+ ### [0.7.22](https://https///compare/v0.7.21...v0.7.22) (2020-03-19)
227
+
228
+
229
+ ### Features
230
+
231
+ * close button for tooltips ([229d90d](https://https///commit/229d90df95d56de5e717cbb1483235c753e14802))
232
+ * support images in tooltips ([104644d](https://https///commit/104644d4623c82e061f317a8eecbb3de7aee41a6))
233
+ * support quick replies in tooltips ([09e9f97](https://https///commit/09e9f9735a469efa219db3af7b1dea5c943b35e9))
234
+
235
+
236
+ ### Bug Fixes
237
+
238
+ * removed session_confirm race condition ([ed16933](https://https///commit/ed1693336a72de15fde7a46295b3386921d7bcf3))
239
+
240
+ ### [0.7.21](https://https///compare/v0.7.20...v0.7.21) (2020-02-20)
241
+
242
+
243
+ ### Features
244
+
245
+ * sockjs transport can receive multiple messages at once ([ad108de](https://https///commit/ad108de2db807b564c58a99554d5e565c6426801))
246
+
247
+ ### [0.7.20](https://https///compare/v0.7.19...v0.7.20) (2020-02-18)
248
+
249
+ ### [0.7.19](https://https///compare/v0.7.17...v0.7.19) (2020-02-18)
250
+
251
+
252
+ ### Features
253
+
254
+ * **sockjs:** session_confirm can contain props ([5f60300](https://https///commit/5f60300813ce25dd3bc15d6d35de37e640621e6c))
255
+ * **sockjs:** session_confirm can contain props ([0102be5](https://https///commit/0102be559b662a954c85428c5f067848d2ab8c29))
256
+
257
+
258
+ ### Bug Fixes
259
+
260
+ * crash when trying to hightlight with bad selector ([289b104](https://https///commit/289b1044e3f766eabd9ce506265c5d17507fc29a))
261
+ * default css animations ([dd365ba](https://https///commit/dd365ba0ef7b31e28fa167e924204c2d420d643e))
262
+ * quick replies after refresh ([2fb4c1d](https://https///commit/2fb4c1ddfd25f1dc8c2a13a72a7f4ce7d41c1716))
263
+
264
+ ### [0.7.17](https://https///compare/v0.7.16...v0.7.17) (2020-02-03)
265
+
266
+
267
+ ### Bug Fixes
268
+
269
+ * fixed socket update on props update ([ccfbb40](https://https///commit/ccfbb408e898ca9a940ec234aaa0dcbf643765b0))
270
+
271
+ ### [0.7.16](https://https///compare/v0.7.15...v0.7.16) (2020-01-30)
272
+
273
+
274
+ ### Features
275
+
276
+ * initial support for pageEventCallbacks ([caf129b](https://https///commit/caf129b3b1d07c829732dde9c9d29d5d9c8311ce))
277
+
278
+
279
+ ### Bug Fixes
280
+
281
+ * webchat stuck on typing after refresh ([6d6d2f2](https://https///commit/6d6d2f2c08b571c028bda225eb8443b5b4aeb3dc))
282
+
283
+ ### [0.7.15](https://https///compare/v0.7.14...v0.7.15) (2020-01-29)
284
+
285
+ ### [0.7.14](https://https///compare/v0.7.13...v0.7.14) (2020-01-29)
286
+
287
+ ### [0.7.13](https://https///compare/v0.7.12...v0.7.13) (2020-01-27)
288
+
289
+ ### [0.7.12](https://https///compare/v0.7.11...v0.7.12) (2020-01-22)
290
+
291
+
292
+ ### Bug Fixes
293
+
294
+ * reverted to opening links in new tab ([50b4b63](https://https///commit/50b4b63))
295
+
296
+ ### [0.7.11](https://https///compare/v0.7.10...v0.7.11) (2020-01-22)
297
+
298
+
299
+ ### Bug Fixes
300
+
301
+ * wrong parameters in initStore ([75fec82](https://https///commit/75fec82))
302
+
303
+ ### [0.7.10](https://https///compare/v0.7.9...v0.7.10) (2020-01-17)
304
+
305
+
306
+ ### Bug Fixes
307
+
308
+ * typo in onWidgetEvent ([c6d8588](https://https///commit/c6d8588))
309
+
310
+ ### [0.7.9](https://https///compare/v0.7.8...v0.7.9) (2020-01-15)
311
+
312
+
313
+ ### Features
314
+
315
+ * add widget even callback ([904cdf1](https://https///commit/904cdf1))
316
+ * allows the use of ref ([c8f7688](https://https///commit/c8f7688))
317
+ * domHightlight metadata support ([6a9a8d2](https://https///commit/6a9a8d2))
318
+ * forceOpen metadata support ([9034e62](https://https///commit/9034e62))
319
+ * new launcher icon ([4d3675b](https://https///commit/4d3675b))
320
+
321
+ ### [0.7.8](https://https///compare/v0.7.4...v0.7.8) (2019-12-27)
322
+
323
+ ### [0.7.4](https://https///compare/v0.7.3...v0.7.4) (2019-12-19)
324
+
325
+
326
+ ### Features
327
+
328
+ * add a send function ([#150](https://https//undefined/issues/150)) ([4221e84](https://https///commit/4221e84))
329
+
330
+ ### [0.7.3](https://https///compare/v0.7.2...v0.7.3) (2019-12-10)
331
+
332
+
333
+ ### Bug Fixes
334
+
335
+ * detect text and qr messages when incoming metadata present ([8dcba98](https://https///commit/8dcba98))
336
+ * use message.content -- limitation from stompjs ([32b1e0b](https://https///commit/32b1e0b))
337
+
338
+ ### [0.7.2](https://https///compare/v0.7.1...v0.7.2) (2019-12-04)
339
+
340
+
341
+ ### Features
342
+
343
+ * add disconnect reason in socketjs LEAVE ([290e356](https://https///commit/290e356))
344
+
345
+ ### [0.7.1](https://https///compare/v0.7.0...v0.7.1) (2019-11-27)
346
+
347
+ ## [0.7.0](https://https///compare/v0.6.6...v0.7.0) (2019-11-21)
348
+
349
+
350
+ ### Bug Fixes
351
+
352
+ * init payload is now sent only when opened ([efebacb](https://https///commit/efebacb))
353
+
354
+
355
+ ### Features
356
+
357
+ * added a prop tooltipDelay ([8c8cd95](https://https///commit/8c8cd95))
358
+ * smart typing delay and typing indication ([8738c63](https://https///commit/8738c63))
359
+ * tooltip popup ([04e1279](https://https///commit/04e1279))
360
+
361
+ ### [0.6.6](https://https///compare/v0.6.5...v0.6.6) (2019-10-30)
362
+
363
+
364
+ ### Bug Fixes
365
+
366
+ * margin 0 is prefered to margin 0px ([2c0ca86](https://https///commit/2c0ca86))
367
+ * no margin on last child only applies to <p> ([4fe3e9b](https://https///commit/4fe3e9b))
368
+
369
+
370
+ ### Features
371
+
372
+ * add margin to <p> to display newline ([c7df04b](https://https///commit/c7df04b))
373
+
374
+ ### [0.6.5](https://https///compare/v0.6.4...v0.6.5) (2019-10-25)
375
+
376
+
377
+ ### Bug Fixes
378
+
379
+ * duplicate registration of connect and disconnect event ([263b847](https://https///commit/263b847))
380
+ * duplicate user connection and small refactoring ([58e8925](https://https///commit/58e8925))
381
+ * function binding ([0a035c0](https://https///commit/0a035c0))
382
+ * invalid date if timestamp not present ([4c7be48](https://https///commit/4c7be48))
383
+ * link and add container-class to quickreplies ([67f7fcf](https://https///commit/67f7fcf))
384
+ * lost of path in sockjs implementation ([46adcab](https://https///commit/46adcab))
385
+ * message's date CSS and removed seconds from date ([e0fe602](https://https///commit/e0fe602))
386
+ * sockjs duplicate connection ([991cc6a](https://https///commit/991cc6a))
387
+
388
+
389
+ ### Features
390
+
391
+ * display message's date on chat ([3fef7c8](https://https///commit/3fef7c8))
392
+
393
+ ### [0.6.4](https://https///compare/v0.6.3...v0.6.4) (2019-10-18)
394
+
395
+
396
+ ### Features
397
+
398
+ * added props connectOn and onSocketEvent ([667c745](https://https///commit/667c745))
399
+
400
+ ### [0.6.3](https://https///compare/v0.6.2...v0.6.3) (2019-10-11)
401
+
402
+
403
+ ### Bug Fixes
404
+
405
+ * displayUnreadCount in index ([9d915ad](https://https///commit/9d915ad))
406
+ * displayUnreadCount props ([21ef8c2](https://https///commit/21ef8c2))
407
+ * revert inputTextFieldHint ([cb94a5e](https://https///commit/cb94a5e))
408
+
409
+
410
+ ### Features
411
+
412
+ * add unread count pastille on openLauncherMessage ([ee37f19](https://https///commit/ee37f19)), closes [#73](https://https///issues/73)
413
+ * regroup messages in conversation by "sender" ([e837844](https://https///commit/e837844))
414
+
415
+ ### [0.6.2](https://https///compare/v0.6.1...v0.6.2) (2019-10-11)
416
+
417
+ ### [0.6.1](https://https///compare/v0.6.0...v0.6.1) (2019-10-11)
418
+
419
+
420
+ ### Bug Fixes
421
+
422
+ * cast messages text into string to prevent crashes ([4778ad8](https://https///commit/4778ad8))
423
+
424
+
425
+ ### Features
426
+
427
+ * experimental sockjs support ([b1f7c9d](https://https///commit/b1f7c9d))
428
+
429
+ ## [0.6.0](https://https///compare/v0.5.9...v0.6.0) (2019-10-03)
430
+
431
+ ### 0.5.10 (2019-10-02)
432
+
433
+
434
+ ### Bug Fixes
435
+
436
+ * links should open in a new tab ([e238af3](https://https///commit/e238af3))
437
+ * update node-sass version to support node12 ([dd3eee9](https://https///commit/dd3eee9))
438
+
439
+
440
+ ### Features
441
+
442
+ * add commitlint and husky ([a040aeb](https://https///commit/a040aeb))
443
+ * add standard version ([573b856](https://https///commit/573b856))
444
+ * add test for quick replies linking ([f95e8f3](https://https///commit/f95e8f3))
445
+ * support web url in quick replies ([ac4b6f1](https://https///commit/ac4b6f1))
446
+
447
+ ### [0.5.10](https://https///compare/v0.5.9...v0.5.10) (2019-10-02)
448
+
449
+
450
+ ### Bug Fixes
451
+
452
+ * links should open in a new tab ([e238af3](https://https///commit/e238af3))
453
+ * update node-sass version to support node12 ([dd3eee9](https://https///commit/dd3eee9))
454
+
455
+
456
+ ### Features
457
+
458
+ * add commitlint and husky ([a040aeb](https://https///commit/a040aeb))
459
+ * add standard version ([573b856](https://https///commit/573b856))
460
+ * add test for quick replies linking ([f95e8f3](https://https///commit/f95e8f3))
461
+ * support web url in quick replies ([ac4b6f1](https://https///commit/ac4b6f1))
462
+
463
+ ### [0.5.9](https://https///compare/v2.1.1...v0.5.9) (2019-06-06)
464
+
465
+
466
+
467
+ ### 0.5.8 (2019-05-07)
468
+
469
+
470
+ ### Bug Fixes
471
+
472
+ * css scope ([6c4f7d3](https://https///commit/6c4f7d3))
473
+
474
+
475
+
476
+ ### 0.5.7 (2019-04-29)
477
+
478
+
479
+
480
+ ### 0.5.6 (2019-03-06)
481
+
482
+
483
+
484
+ ### 0.5.5 (2019-02-27)
485
+
486
+
487
+
488
+ ### 0.5.4 (2019-01-16)
489
+
490
+
491
+
492
+ ### 0.5.3 (2018-12-21)
493
+
494
+
495
+
496
+ ### 0.5.2 (2018-12-17)
497
+
498
+
499
+ ### Bug Fixes
500
+
501
+ * it was impossible to click behind the empty space of widget button ([8e63321](https://https///commit/8e63321))
502
+
503
+
504
+
505
+ ### 0.5.1 (2018-12-03)
506
+
507
+
508
+
509
+ ## 0.5.0 (2018-11-28)
510
+
511
+
512
+
513
+ ### 0.4.2 (2018-11-14)
514
+
515
+
516
+ ### Features
517
+
518
+ * 🎸 Add max-width to images and expose image params ([2d3482b](https://https///commit/2d3482b))
519
+
520
+
521
+ ### BREAKING CHANGES
522
+
523
+ * \
524
+
525
+
526
+
527
+ ### 0.4.1 (2018-10-29)
528
+
529
+
530
+
531
+ ## 0.4.0 (2018-10-19)
532
+
533
+
534
+
535
+ ### 0.3.4 (2018-10-12)
536
+
537
+
538
+
539
+ ### 0.3.3 (2018-10-06)
540
+
541
+
542
+
543
+ ### 0.3.2 (2018-10-06)
544
+
545
+
546
+ ### Bug Fixes
547
+
548
+ * testing suite completing appropriately ([e89087e](https://https///commit/e89087e))
549
+
550
+
551
+
552
+ ### 0.3.1 (2018-07-11)
553
+
554
+
555
+
556
+ ## 0.3.0 (2018-07-06)
557
+
558
+
559
+
560
+ ### 0.1.1 (2018-04-29)
561
+
562
+
563
+
564
+ ## 0.1.0 (2018-04-11)
565
+
566
+
567
+
568
+ ## 0.5.8
569
+ - Namespaced all css declarations so that they don't affect styles outside of the widget.
570
+
571
+ ## 0.5.7
572
+ - Fixed a bug where the connection would not close down when the component unmounted and continued polling indefinitely in the background.
573
+
574
+ ## 0.5.6
575
+ - Fixed a bug where named links would not render in a received message
576
+
577
+ ## 0.5.5
578
+ - New prop, `docViewer`, if this props is true, this will treat every link in received messages as a document and will open it in a popup using docs.google.com/viewer (note: this is an experimental feature and should be used with caution)
579
+
580
+ ## 0.5.4
581
+ - When reconnecting to an existing chat session, the bot will send a message contained in the localStorage key specified by the `NEXT_MESSAGE` constant. The message should be stringified JSON with a `message` property describing the message and an `expiry` property set to a UNIX timestamp in milliseconds after which this message should not be sent.
582
+
583
+ ## 0.5.3
584
+ - Added the parameter hideWhenNotConnected to not display the widget when the server is not connected (defaults to true)
585
+ - Fixed issue where the 'connected' property was being loaded from previous session instead of being triggered on actual connection
586
+ - Reduced the size of the widget container on mobile and in fullscreen mode (blocking clicks)
587
+
588
+ ## 0.5.2
589
+ - Added support for custom images for open and close buttons of chatWidget interface
590
+ - Fixed size of chatWidget when closed preventing to take more space than the open button so that we can click around the open button with no problem
591
+
592
+ ## 0.5.0
593
+ - Added session persistence with Rasa Core
594
+
595
+ ## 0.4.3
596
+ - Implemented session persistence for chat widget.
597
+ - Chat messages and widget state params are stored in storage of the browser.
598
+ - Sessions are synchronized with server by a session_id.
599
+ - The param `storage` is exposed which allows the user to specify where the session is stored.
600
+ - In the case of `session`, session storage of the browser is used, and the session persists as long as the browser is open, and is erased after it is closed.
601
+ - In the case of `local`, local storage of the browser is used and the session persists even after the browser is closed. The session is erased when the browser's cookies are cleared.
602
+ - Implemented connecting notifier and disabled input field before session_confirm is received from the server and the session is generated and synchronized.
603
+ - Separate connecting to server and sending initPayload. Server is connected when the component mounts, while initPayload is sent when the chat is toggled open and the server is connected.
604
+
605
+ ## 0.4.2
606
+ - Added a image size property to widget initialization, in order to crop-scale images returned by bot.
607
+ - Images are crop-scaled to the defined size by the CSS property {object-fit: cover}. The content is sized to maintain its aspect ratio while filling the element’s entire content box. If the object's aspect ratio does not match the aspect ratio of its box then the object will be clipped to fit. The clipping will be taken from the center.
608
+ - `WebChat.toggle()`, `WebChat.open()`, and `WebChat.close` can be used to change the state of the chat box to open or closed.
609
+ - `WebChat.show()` and `WebChat.hide()` can be used to show or hide the entire chat widget.
610
+ - `WebChat.isOpen()` and `WebChat.isVisible()` can be used to get the open state of the chat box and the visibility state of the entire widget.
611
+
612
+ ## 0.4.1
613
+ - Removed Linkify, added markdown support for response messages (urls still are detected automatically but not emails, to ensure a link appears use markdown syntax)
614
+ - Fixed fullScreenMode prop: now dispatches the initPayload when the component mounts, removed border-radius
@@ -0,0 +1,44 @@
1
+ # Contributing
2
+
3
+ First off, thank you for considering contributing to this project! Now, to start contributing:
4
+
5
+ ## Issues and suggestions
6
+
7
+ If you either find a bug or have any suggestion or opinion you want to discuss and share, please open an issue and add the proper label to it so we can get in contact with you.
8
+ There are no wrong opinions! All feedback is welcome to make this the most suitable tool for you to use and for us to grow.
9
+
10
+ ## How to contribute
11
+
12
+ If you have a new feature you want to add or a bug you think you can fix, follow this steps:
13
+
14
+ 1. Fork the repo
15
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
16
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
17
+ 4. Push to the branch (`git push origin my-new-feature`)
18
+ 5. Create new Pull Request with **clear title and description**
19
+
20
+ ## Installation
21
+
22
+ To get this project up and running, you need to build it with
23
+
24
+ ```bash
25
+ npm run build
26
+ ```
27
+
28
+ and then, add it to a dummy project using the file instead of the package. You can use either yarn or npm:
29
+
30
+ ```bash
31
+ npm i <path-to>/rasa-webchat
32
+
33
+ yarn add file:<path-to>/rasa-webchat
34
+ ```
35
+
36
+ ## Testing
37
+
38
+ Your new feature **must** be tested with the proper tools. In this project, we use Jest and Enzyme. Once your tests are written, run:
39
+
40
+ ```bash
41
+ npm run test
42
+ ```
43
+
44
+ If there any view changes, you need to add screenshots for what's been changed for us to see any improvement or your new feature.